Hi,
I have a textbox and a button on my page. I ran the application and provided some value textbox and then click on button. Page got postbacked and now textbox and that same value in that.
As per my knowledge it is because of viewstate.
am i correct or there is some other reason behind it?
Loading

Sam HobbsRank #108 · 20.5K reputationPosted Oct 20, 2010, 12:44 PM EDT
Pooja Sharma17 reputationPosted Oct 20, 2010, 7:58 PM EDT
Naveen Verma24 reputationPosted Oct 20, 2010, 9:32 PM EDT
The reason is the same page go and come again.
and there is no action perform on the click of the button.
You can use 2 page.Redirect by each other.Then see what happen.
I thing you could find your answer after this.
If it helps reply me.
Pooja Sharma17 reputationPosted Oct 21, 2010, 1:12 AM EDT
Naveen Verma24 reputationPosted Oct 21, 2010, 1:37 AM EDT
Did you try with 2 pages.
Try This.
Thanks.If any question plz feel free to contact me.
Pooja Sharma17 reputationPosted Oct 21, 2010, 9:22 AM EDT
When I added 'b' in textbox on page2 and clicked button. It redirected me to page1. When I checked source in firebug section Response, post and HTML, under Post--paramerter section, it was showing button text and textbox value which was on page2. And one more thing i noted in HTML section page1 had two textboxes and two buttons but when i checked pageViewSource then it was showing only two tags one for textbox and one for button.
BTW, I didn't get what exactly you wanted to show me by redirection between two pages?
Thanks Naveen.
Suthish NairRank #92 · 22.8K reputationPosted Oct 21, 2010, 11:07 AM EDT
Bing/Google it, you will get lots of documentations.
Naveen Verma24 reputationPosted Oct 21, 2010, 11:32 PM EDT