Groups | Blog | Home
all groups > asp.net > april 2006 >

asp.net : Format SQL query string using asp:loginname


Loopsludge
4/27/2006 9:24:13 PM
ASP.NET 2.0/ SQL Server 2005/ Login Controls

Does anyone know how to format a SQL query string using asp:loginname
in the WHERE clause?

Alternatively would I need to store the login name upon login w/in a
Session variable?

Can someone give me an example?

Thanks,
Loopsludge
NIan
4/28/2006 12:21:53 AM
login control, requires you to install Role Management schema for
SQL.(I think)
clickon
4/28/2006 1:09:01 AM
Well you could use a parameter for the where clause and then set that
parameter to be a ControlParameter that with the ControlID property set to
the ID of your <asp:LigonNAme> control.

[quoted text, click to view]
Loopsludge
4/28/2006 7:58:15 AM
Sounds reasonable. Do you have an example on how that may look?

Loopsludge
AddThis Social Bookmark Button