Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i am using window.opener method in the child aspx page and getting value of the selected row from grid view of child aspx page to parent aspx page. i am getting value in textbox of parent aspx page but when i click ok button in the child window i have to check the selected row value with database table field and need to display the corresponding field value in textbox of parent window & when i click the Save button in parent window the child window value is disappearing in the parent window

How to Solve? can you Help?
Posted

What about using properties? Else simply you can sue hidden fields...
 
Share this answer
 
Use
ASP.NET Session[^] state to store and retrieve values for a user
or
Cookies[^], because a cookie contains information about the Web application which can be read whenever the user visits the site, unless it was destoyed by the browser.
 
Share this answer
 
Hi Vivek
Solution 2 is best . I am just giving you example how to use session.
Session["name"]=txt_name.text;


now you can access anywhere name you entered in textbox throughout project .like this on any page of your current project until session expires

string name = Convert.ToString(Session["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