I was create asp.net application...In that case I read value from "sql server" to "textbox" I want update that value & send it to database again at run time..

my question is my new value was ignore & again get my befour value as new value... how i update values

Recommended Answers

All 2 Replies

Hi there
Seems like its postback issue, use this code

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
      If Not IsPostBack Then
          'Your code here .....

     end if
End Sub

Mark as solved if it helps you!!!

Yes its postback issue definitely. Wrap your page load event within the condition below:

If Not IsPostBack Then
          'Your code here .....
end if
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.