473,385 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

about Login1_LoggedIn(object sender, EventArgs e)

i want to invoke something after login.

so i write in Login1_LoggedIn event of LoginView like below..

to execute i need user Id ..but it 's always null..

protected void Login1_LoggedIn(object sender, EventArgs e)
{
string userId = HttpContext.Current.User.Identity.Name; => null
//string userId = Context.User.Identity.Name; =>
null
//bool i = Context.User.Identity.IsAuthenticated; => false

PointManager.LoginPoint(userId);
}

Nov 19 '05 #1
2 3994
What about e...

--
Daniel Fisher(lennybacon)
http://www.lennybacon.com
"mike" <so**********@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
i want to invoke something after login.

so i write in Login1_LoggedIn event of LoginView like below..

to execute i need user Id ..but it 's always null..

protected void Login1_LoggedIn(object sender, EventArgs e)
{
string userId = HttpContext.Current.User.Identity.Name; => null
//string userId = Context.User.Identity.Name; =>
null
//bool i = Context.User.Identity.IsAuthenticated; => false

PointManager.LoginPoint(userId);
}

Nov 19 '05 #2
e???
you mean e as EventArgs ?

there is no way using e i think...

"Daniel Fisher(lennybacon)" <in**@lennybacon.com> wrote in message
news:uX**************@TK2MSFTNGP09.phx.gbl...
What about e...

--
Daniel Fisher(lennybacon)
http://www.lennybacon.com
"mike" <so**********@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
i want to invoke something after login.

so i write in Login1_LoggedIn event of LoginView like below..

to execute i need user Id ..but it 's always null..

protected void Login1_LoggedIn(object sender, EventArgs e)
{
string userId = HttpContext.Current.User.Identity.Name; => null
//string userId = Context.User.Identity.Name; =>
null
//bool i = Context.User.Identity.IsAuthenticated; => false

PointManager.LoginPoint(userId);
}


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: flamesrock | last post by:
ok, so to my knowledge, object oriented means splitting something into the simplest number of parts and going from there. But the question is- when is it enough? For example I have the following...
5
by: Martin | last post by:
When was inheritance intruduced into object oriented programming? More generally, does anyone know or have any sources on when the different features were introduced into object oriented...
7
by: johny smith | last post by:
Based on my experience there is two ways to instantiate an object. Method 1: Car* car1 = new Car();
1
by: Ruchir | last post by:
Hi, I have to check the sender of the mail to my exchange server 5.5 and log the information about the mail if it comes from a specific user. Can anyone guide me what should I need to do...do...
3
by: STom | last post by:
Ok, if I have a class: Public Class MyXClass Public Property X as Integer ..... End Class In my code if I have two instances of this class: Dim myX1 as new MyXClass
6
by: Charles Law | last post by:
As a matter of practice, where would people put the following elements of object creation/initialisation: Create shared member objects Initialise shared member objects Create non-shared member...
0
by: sowencheung | last post by:
think about we have a private hashtable object (variable) we initialize the objects in some methods, now we create a cleanup method, we can either new 1) hash = new HashTable(); or
4
by: gg9h0st | last post by:
i worte a simple code below. ------------------------------------------------------------------------------------ #include "stdafx.h" class Object { public: int a;
4
by: Jess | last post by:
Hello, I tried several books to find out the details of object initialization. Unfortunately, I'm still confused by two specific concepts, namely default-initialization and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.