Re: 2 questions please



On Jul 11, 12:35 pm, cke...@xxxxxxxxxx wrote:
I have a page that has a LogInView. Inside of it is a LogIn control.
The login control is in the anonymous template and a staus view is in
the logged on template. (Names: LogInView1, Login1, & LogInStatus1.)

quest 1. How can I set focus to the UserName textbox of the LogIn
control (inside of LogInView)?

quest 2. I want to assign the UserName value to a session variable
when the LogIn btn is clicked, how can I do this?

tia

ck

Hi

User Javascript to set focus to the textbox..... of the login control

and in loggedin event of the logincontrol user the following code to
save the user name

Session["UserName"] = Page.User.Identity.Name;

by the way why you need to save the user name in session?

you always have "Page.User.Identity.Name" to get the current username

Thanks
Md. Masudur Rahman ( Munna )
kaz Software Ltd.
http://www.kaz.com.bd
http://munnacs.110mb.com

.



Relevant Pages

  • Re: 2 questions please
    ... The login control is in the anonymous template and a staus view is in ... How can I set focus to the UserName textbox of the LogIn ...
    (microsoft.public.dotnet.framework.aspnet)
  • 2 questions please
    ... I have a page that has a LogInView. ... Inside of it is a LogIn control. ... quest 1. ... How can I set focus to the UserName textbox of the LogIn ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to implement a automatic login function
    ... Have you got any progress or idea on this issue or does the suggesetion in ... our previous message help some? ... Ideally all this can be done so that the username and password is not ... How can a post request be fed to whatever class the login control ...
    (microsoft.public.dotnet.framework.aspnet)
  • How to get UserName of logon control from code
    ... I have added a Login control to a Master Page. ... I noticed that the Login control has a UserName property but it's in ...
    (microsoft.public.dotnet.framework.aspnet)
  • Login in control without UserName taxt box
    ... I am implementing a login page using ASP.NET 2.0 Login control. ... Authenticate even handler, but I get a "LayoutTemplate does not ... contain an IEditableTextControl with ID UserName for the username." ... Error during page load because I useed Email as the ID of the textbox ...
    (microsoft.public.dotnet.framework.aspnet)