I have two pages as Parent.aspx and Child.aspx in my asp.net web application. The values obtained from parent.aspx need to pass to child.aspx code behind page.
The redirect from parent to child happens through javascript. Parent page contains empId which needs to be passed to child page code behind file as the same ID could be used to fetch the details of the employee such as name, age, PIN, bank account details etc.
How to do the same?
thanks!
Check out ASP.NET QueryString Usage or any other resources on ASP.NET Query String access. A full example follows.
On the client side:
On the server side (in code behind):
Why not using a session or something similar?
Then in the page load event of ur child page , check that session if not null, then retrieve the data.