473,387 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Format SQL query string using asp:loginname

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

Apr 28 '06 #1
4 3453
login control, requires you to install Role Management schema for
SQL.(I think)

Apr 28 '06 #2
login control, requires you to install Role Management schema for
SQL.(I think)

Apr 28 '06 #3
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.

"Loopsludge" wrote:
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

Apr 28 '06 #4
Sounds reasonable. Do you have an example on how that may look?

Loopsludge

Apr 28 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: paulwragg2323 | last post by:
Hi We have a script that allows customers to change the users of the database including the database owner. This script can be run at any time. However, sometimes (and it really is only...
5
by: Hennie | last post by:
Hi Can anybody point me to good articles or sites on using stored proc's in a grid or details view in ASP2.0 Also how can I return the username of the current logged in user as a parameter...
2
by: scatfly | last post by:
I am getting this error: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/xxxxx/public_html/login.php on line 164 Couldn't execute select query. from this...
8
by: Matsam | last post by:
Hi, I am using a HTML page as login page and my 2nd page is in ASP. I want to pass the values in the text boxes login name & password to the 2nd page and want to check its validity there. But I...
2
by: sklett | last post by:
I *think* I've got the asp.net membership controls setup to use MySql and when I login entering credentials from my database (IE: not active directory) the login succeeds but the LoginName controls...
6
by: dragiton | last post by:
ASP Code Redirect Error Hello I recently relaunched a website containing asp code which used to work perfectly. However, after resetting up the SQL DB and trying to work out some site bugs I have...
0
by: DanWeaver | last post by:
Using asp and SQLserver2005 on shared server and with connection string: <connectionStrings> <remove name="LocalSqlServer"/> <add name="LocalSqlServer" connectionString="Data...
0
by: DanWeaver | last post by:
Using asp and SQLserver2005 on shared server and with connection string: <connectionStrings> <remove name="LocalSqlServer"/> <add name="LocalSqlServer" connectionString="Data...
0
by: AAaron123 | last post by:
<asp:LoginStatus ID="LoginStatus1" runat="server" LoginText="Log In" LogoutAction="Refresh" LogoutText="Log Out" /> <asp:loginname id="LoginName1" runat="server" formatstring=" {0}" /> I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.