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
Naveen VermaPosted Oct 22, 2010, 3:32 AM
Suthish NairPosted Oct 21, 2010, 3:07 PM
Bing/Google it, you will get lots of documentations.
Pooja SharmaPosted Oct 21, 2010, 1:22 PM
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.
Naveen VermaPosted Oct 21, 2010, 5:37 AM
Did you try with 2 pages.
Try This.
Thanks.If any question plz feel free to contact me.
Pooja SharmaPosted Oct 21, 2010, 5:12 AM
Naveen VermaPosted Oct 21, 2010, 1:32 AM
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 SharmaPosted Oct 20, 2010, 11:58 PM
Sam HobbsPosted Oct 20, 2010, 4:44 PM