Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2006

Tip: Looking for answers? Try searching our database.

SQL Query by login

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bret - 30 Sep 2006 00:03 GMT
I am VB developer learning ASP.net.
Have successfully creating a Login page and a GridView.  My question is:
After a user successfully logins, I want to capture there login ID and use it
to feed a parameter in the SQL statement in the Gridview (or dataset?) so the
results returned of course are only the logged in user.  What is the best way
to accomplish this?

thanks in advance.
Bret - 30 Sep 2006 01:23 GMT
sorry I've posted this question twice

> I am VB developer learning ASP.net.
> Have successfully creating a Login page and a GridView.  My question is:
[quoted text clipped - 4 lines]
>
> thanks in advance.
Gaurav Vaish (www.EduJiniOnline.com) - 30 Sep 2006 14:55 GMT
> to feed a parameter in the SQL statement in the Gridview (or dataset?) so
> the
> results returned of course are only the logged in user.  What is the best
> way
> to accomplish this?

In VB.Net?
If Request.IsAuthenticated = True Then
   dim username as string

   username = Request.Identity.Name

   'Do whatever you want to with the username...
End If

'And enjoy life :-)

Signature

Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.com
http://www.edujinionline.com
http://articles.edujinionline.com/webservices
-------------------


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.