0

I am in a situation where I want to set value to a variable from an asp page and retrieve this variable value in aspx page .I understand sending the values through querystring is not a best option.

Please help me .

2 Answers2

1

It is better to encrypt the value and send it in querystring.

or

if the value is based on loggedin user or role, you can save it in database and retrieve it in other page using the same user or role.

  • Its based on logged user,but we can,t use database because its a forgot password section ,the forgot password functionalities are defined in asp page , if the user forgot the password a new password is send to user email .this email id get fom a textbox control in asp page and that email id is which i want to display in aspx page. – vishnu m p Mar 11 '15 at 05:50
  • If the forgot password asp page is within the iframe window of the aspx main page, you can use javascript ie you can assign any variable in the parent widow from the iframe - parent.email= txtEmail.value; – Manivannan Chidambaram Mar 11 '15 at 06:10
0

You can pass the variable via cookie

dvhh
  • 4,724
  • 27
  • 33