Hi, i use simple login with a login page where user place u/n and p/w.
The data are compared to store data from access db. If matches, open a secure page.
So far so goob.

In secure page i wanr to show a gridview with user's data, so he can change/update it.
How can i use his u/n from the login form from login page and use it as querry in secure page? I think it can be done with session.

Thanks.

Recommended Answers

All 3 Replies

hi ,

i think , by using session

add his primarykey to session

add his primarykey to session

Thanks, but how do i do that?

simply when u get the user name from the first form store it in a session variable:
session("user")= me.txtuname.text
and on the second page u can refer to it in your sql:
...where username='" & session("user") & "'"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.