Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Developers,

I am a Newbie in .net development. I was assigned a task so as to bind the user related data into a grid view on user login. I have got two web pages, one of which contains Login and authentication information. This goes fine. When user was redirected to second page, I need to provide a GridView control where user details should be automatically updated in grid view control in the back ground.

I have three different fields which were saved in sql table. particular user details need to be retrieved from the sql table on user login and bind the data to grid view automatically.

Have posted this query couple of times, but didn't got any response. Would be much thankful if some can help.

Cheers

Tiffin.Gal
Posted
Comments
Nilesh Patil Kolhapur 22-Feb-12 2:30am    
Try Orcun Iyigun's solution or give a table detail to get exact answer

Well, use a query string or seesion to pass the logged in user info to the second page. On the second page in (!PostBack) method or while loading the page use that query string or session value to pull data from DB. and then bind that query's dataset to your Gridview.

Good luck,
OI
 
Share this answer
 
tiffin...Is There Any Id in That..Table..If s?Write a procedure to retrieve the id using the parameters(i.e, The UID and PWD).And pass the Id To the other Page Using Session["Id"]..and other page_load event...call other Stored_Pro for getting the details...pass the Id..as the parameter for Stored_Pro.And Bind The Dataset to grid..
 
Share this answer
 
Comments
Orcun Iyigun 22-Feb-12 13:18pm    
So you just paraphrase my solution or what because I dont see any difference other that you just asking if he uses any ID or not?!?!

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