469,625 Members | 1,127 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

How to pass in username as query parameter?


I'm using asp.net 2.0 and sql server 2000 for my first ever project.
On one of the page in the application, I want to limit what the user
can see based on his/her login. It's a page that has sensitive
personal info like social security number and I only want user to see
their own information and no one else. Can anybody please tell me how
to pass in the username as a query parameter? I used a DetailsView
control to and configure the sqlDataSource's Select statement to
SELECT ... FROM ... WHERE username = @username. For the @username
parameter, I need to pass in the username of the login user. Can
somebody please help me?


Jul 2 '07 #1
0 1346

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by HH | last post: by
7 posts views Thread by Zlatko Matić | last post: by
2 posts views Thread by Alex Nitulescu | last post: by
15 posts views Thread by Eugene Anthony | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.