Click here to Skip to main content
15,905,071 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do i make the login.aspx page search by name on Default.aspx and display userdata on gridview data by username please guys helps me am stuck
Posted
Comments
Suvendu Shekhar Giri 27-Sep-15 6:29am    
That's not enough information to workout. Share what you have tried so far.
Member 11893772 27-Sep-15 6:51am    
meaning that i have gridview with sname pwd absent present such columns in default.aspx page
and when user clicks on login i want it to redirect to default.aspx with their username and information
and in deep i want the gridview attached to the login

1 solution

Quote:
when user clicks on login i want it to redirect to default.aspx with their username and information
and in deep i want the gridview attached to the login
As far as I understand, you want to keep user details after login so that on the next page, you can identify the user and show some data on GridView accordingly.

If I am correct on this, then you need to use Session to store the UserName, after successful login. Then on the second page check the Session variable and use that value of Session to retrieve records from database and bind that to the Grid.
 
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