View Single Post
  #9 (permalink)  
Old January 26th, 2009, 04:23 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

It all depends on where you get your data from and in what way.

If you're using a SqlDataSource you need to create a parameter for the user and fill it in its Selecting event. If you're using ADO.NET code, you can pass it as a parameter on a Command object. If you're using an ObjectDataSource, you can get the name from the context in your code directly. I could go on for a while with all the other data sources that exist.

So, show me the code, tell me what you're doing and how, and I can recommend something a bit more concrete....


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
Spider (January 27th, 2009)