Re: 2 questions please
- From: Masudur <munnacs@xxxxxxxxx>
- Date: Wed, 11 Jul 2007 08:30:35 -0000
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
.
- Follow-Ups:
- Re: 2 questions please
- From: ckerns
- Re: 2 questions please
- References:
- 2 questions please
- From: ckerns
- 2 questions please
- Prev by Date: Would AJAX be the best solution?
- Next by Date: Re: ObjectDataSource OnSelected event raised twice
- Previous by thread: 2 questions please
- Next by thread: Re: 2 questions please
- Index(es):
Relevant Pages
|