> 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
[quoted text clipped - 9 lines]
>
> ck
>On Jul 11, 12:35 pm, cke...@refuse.net wrote:
>> I have a page that has a LogInView. Inside of it is a LogIn control.
[quoted text clipped - 29 lines]
>http://www.kaz.com.bd
>http://munnacs.110mb.com
Should i put the javascript to set focus in the body tag? How should
it look since the control I'm going for is nested?
I have tried this:
Protected Sub Login1_LoggedIn(ByVal sender As Object, ByVal e As
System.EventArgs)
MsgBox(Me.LoginView1.Page.User.Identity.Name)
MsgBox(Page.User.Identity.Name.ToString())
End Sub
but both boxes come up empty. Do I need to include a namespace here?
I want to capture the uname and pw so I can a) log all login attempts
and b) I want to use session(pw") and session("un") as parameters in
my SQL statements to pull the corresponding records from tables.
I am pretty good at asp classic, but I am trying to teach myself
.net...it is challenging in some areas, easy in others. Any help you
could give is greatly appreciated.
ck
Masudur - 12 Jul 2007 05:45 GMT
On Jul 11, 11:06 pm, cke...@refuse.net wrote:
> >On Jul 11, 12:35 pm, cke...@refuse.net wrote:
> >> I have a page that has a LogInView. Inside of it is a LogIn control.
[quoted text clipped - 52 lines]
>
> ck
hi...
oh i think we are missing the point here...
you got to login first to use Page.User.Identity.Name ,
and un authenticated page have this property empty...
well i think you want to populate the username textbox for returnning
user...
in that case you got to save the username in cookie... and the use
that cookie to populate your textbox...
after log in you can save it in session ... but after the user close
the browser.,.... session will be useless... and if use again come to
visit a new session will be created... so session is usefull as log as
you remain in same site...
so bottom line is if you want to implement prepopulated usename
textbox for returnning user... use cookie to populate...
Thanks
Md. Masudur Rahman (Munna)
kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com
Cubaman - 12 Jul 2007 10:22 GMT
On Jul 11, 7:06 pm, cke...@refuse.net wrote:
> >On Jul 11, 12:35 pm, cke...@refuse.net wrote:
> >> I have a page that has a LogInView. Inside of it is a LogIn control.
[quoted text clipped - 54 lines]
>
> - Show quoted text -
No need of javascript to do that, just add a property to your form
called defaultfocus and asign to it the name of the control you want
to focus..
<form id="form1" runat="server" defaultfocus="ctrLogin" >
Best regards,
Oscar Acosta