create session for loginname

Posted on 2007-04-06
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
Question by:gianitoo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 67

Accepted Solution

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


Author Comment

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

Author Comment

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
LVL 67

Expert Comment

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

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

636 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