ASP.NET Text Box
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
I am having trouble with the ASP.Net textbox. First I'm adding text from database, and when I run the page, in spite of changing it, the value returned is always the one given by the database. why is this? Thanks Andrew
well it appears that you are reloading from the database the same value again from the pageload method of the page objec.t you might want to check to see if you added in the pageload method a mechanism checking for postback. example
... PageLoad( .. ) { if( Page.IsPostBack ) { // save data from textboxs to database and load them into the // page controls } else { // load initial values of the controls on the page } } ...
Danny!