Solved

create session for loginname

Posted on 2007-04-06
4
568 Views
Last Modified: 2008-02-01
this  code writes on my page the login name of the authenticated user <asp:LoginName ID="LoginName1" runat="server" BackColor="Transparent" Width="172px" CssClass="bodybold" />

how can i create a session  of that name so i can insert into db
0
Comment
Question by:gianitoo
  • 2
  • 2
4 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
ID: 18865424
You mean something like this?

Session("ThisSession")=LoginName1
0
 
LVL 1

Author Comment

by:gianitoo
ID: 18865433
yes.  so that will create a session and i can do whatever i want with that name?
0
 
LVL 1

Author Comment

by:gianitoo
ID: 18866249
is not working it gives me this as the result  System.Web.UI.WebControls.LoginName

how can i create a sesion  for the name of the authenticated user by using windows authentication
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18866481
Sorry for the delay - glad you got it sorted.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question