Click here to Skip to main content
15,917,928 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I know that request.form is readonly but is there a way to play over the method and assign to it a value.
example:
Request.form("name")="Sam"
Posted

1 solution

you can use
ViewState["name"]="Sam"; 

for this purpose.
and retrieve by
var_name=(variable type)ViewState["name"];
like
a=(string)ViewState["name"];
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900