473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

EnableViewProperty

hi,

I have a web page and it has three textboxes. It has already some
text. When I edit the text boxes and click on Edit button the button
supposed to epdate the data in the database. But when I debug it the
value of textboxes gives me the previous value not the edited value
may be in postback it lost it's new value. I set enableviewstate
property to True but even then it doesn't work.

Thanks in advance.

hahii

Apr 16 '07 #1
2 898
Where is the original value of the textbox being set?
I suspect you're accidentally overwriting the user entered value with that
same value upon each postback.
It's a common error.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
<bb****@yahoo.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
hi,

I have a web page and it has three textboxes. It has already some
text. When I edit the text boxes and click on Edit button the button
supposed to epdate the data in the database. But when I debug it the
value of textboxes gives me the previous value not the edited value
may be in postback it lost it's new value. I set enableviewstate
property to True but even then it doesn't work.

Thanks in advance.

hahii
Apr 16 '07 #2
On Apr 16, 1:27 pm, "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]"
<S...@Orr.netwrote:
Where is the original value of the textbox being set?
I suspect you're accidentally overwriting the user entered value with that
same value upon each postback.
It's a common error.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsiderhttp://SteveOrr.net

<bba...@yahoo.comwrote in message

news:11**********************@b75g2000hsg.googlegr oups.com...
hi,
I have a web page and it has three textboxes. It has already some
text. When I edit the text boxes and click on Edit button the button
supposed to epdate the data in the database. But when I debug it the
value of textboxes gives me the previous value not the edited value
may be in postback it lost it's new value. I set enableviewstate
property to True but even then it doesn't work.
Thanks in advance.
hahii- Hide quoted text -

- Show quoted text -
No, I am not entering the same value.

Apr 16 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.