I have an asp.net page with a datalist with few textboxes, and a submit button.
when i cahnge the text in the textbox, and click submit, the value i get in the vb code is the old value and not the one i just entered.
Any idea?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two possible reasons for this.
Either (1) the part of your code that sets this value is being run at postback, thus resetting it, or (2) your textbox is disabled in .NET code (and enabled in javascript) so that .NET assumes that its value cannot have changed, and doesn’t check the POST data.
Sorry for C# code examples, but i’m sure you’ll work it out:
1:
2: