Ask a Question related to ASP.NET General, Design and Development.
-
Andy Ogden #1
New TextBox value ignored
I am using a datagrid and using an edit template to update one of the
rows. The code below comes from the Update method that I have written.
The original value of the row appears in the edit box, I then update
this to the new value. When I click update, the new value is ignored
and the original value is used in the code. The code below is
supposed to get the new value of the textbox and display it in the
label, only the original value is displayed.
TextBox EditText= null;
EditText= (TextBox)e.Item.FindControl("txtText");
MyLabel.Text="You changed text to " + EditText.Text;
This is really annoying because I am using the same method to retrieve
the value to insert into the database, the update works fine as I am
able to hard code a string to be inserted.
What am I doing wrong ?
Please help
Cheers
Andy
Andy Ogden Guest
-
TextBox Value
I have TextBox column in datagrid. I would like to update database with values when user click on button (outside datagrid). Dim cell As... -
textbox
i would like modify font texybox in verdana in onpage_load textbox.font=? -
ASP:TextBox
I am a newbie to ASP.NET... What I was trying to do... but yet to succeed in... I am building a customer info database... and on default, I... -
runat="server"....a simple html textbox or a webform server textbox...that is the question.
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the... -
VERY STRANGE BUG? Adding a textbox control causes other textbox control to fail???
I've had this happen a few times too. I'm still not positive of what exactly causes it but all that's happening is the control that no longer...



Reply With Quote

