I have a scenario.... Suppose someone login any website from my Laptop. Now I want to get that password from viewstate. I know it is possible but I have no idea???
NEED SUGGESTION.....
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Oct 21, 2013, 2:02 AM
Actually view state is able to store data on client side in page.... and it is valid for only on current session or up to the page access(means if we close the browser or redirect to other page than we cannot get view state data)...
so as per me view state has very short life so you cannot do this using view state...
Ravi ShekharPosted Oct 21, 2013, 2:17 AM
Ravi ShekharPosted Oct 21, 2013, 1:53 AM
I am talking about some other user. Some one comes on my laptop and login on any website which store password using viewstate.
Now ii want to get password using viewstate
Jignesh TrivediPosted Oct 21, 2013, 12:45 AM
I think it is not possible.... you may use session instead.....
but you can definate do this with cookeis...
Please refer
http://www.aspsnippets.com/Articles/Remember-UserName-and-Password-using-RememberMe-CheckBox-and-Cookies-in-ASPNet.aspx
http://www.freedotnetapps.com/asp-net/how-to-store-or-remember-username-and-password-after-login/
hope this will help you.
Ravi ShekharPosted Oct 21, 2013, 12:17 AM
then???
Jaganathan BantheswaranPosted Oct 20, 2013, 9:02 AM
No, You cant. No one[site] will store the password in ViewState as its not recommended to store important values in ViewState.