Click here to Skip to main content
15,903,175 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Navigating one page to another page Pin
Arun.Immanuel28-Apr-07 23:36
Arun.Immanuel28-Apr-07 23:36 
QuestionRedirect vs Transfer Pin
Tarik Guney28-Apr-07 22:55
Tarik Guney28-Apr-07 22:55 
AnswerRe: Redirect vs Transfer Pin
Guffa29-Apr-07 0:45
Guffa29-Apr-07 0:45 
QuestionVS2003 VS2005 debugging errors Pin
TheEagle28-Apr-07 22:54
TheEagle28-Apr-07 22:54 
QuestionAdding target to a button Pin
Tarik Guney28-Apr-07 21:57
Tarik Guney28-Apr-07 21:57 
AnswerRe: Adding target to a button Pin
yet_alive28-Apr-07 22:09
yet_alive28-Apr-07 22:09 
AnswerRe: Adding target to a button Pin
Guffa29-Apr-07 0:52
Guffa29-Apr-07 0:52 
Questionhow2 add confirmation pop up upon loging out (LoginStatus control) Pin
yet_alive28-Apr-07 19:18
yet_alive28-Apr-07 19:18 
Hello every one Smile | :) i am trying to find a way to add a pop-up confirmation to LoginStatus control when you click Logout.

here is the code i tried.. with no luck of pop up showing up..Confused | :confused: i'd appreciate any thoughts/suggestions/corrections!

i have set the "LoggingOut" event of the LoginStatus control to: (userLoggingOut). My loginStatus control is: logStatus

and then tried both of these codes in the code behind.. still i cant see the confirm message pop up! any idea what i might have been doing wrong?

thank u so much in advance Big Grin | :-D



protected void userLoggingOut(object sender, LoginCancelEventArgs e)
{
LoginStatus lgst1 = (LoginStatus)FindControl("logStatus");
lgst1.Attributes.Add("OnLoggingOut", "return confirm('Are you sure')");

}

======>>>> and i tried this too:

protected void userLoggingOut(object sender, LoginCancelEventArgs e)
{

string Msg = "are u sure";

LoginStatus lgst2 = (LoginStatus)FindControl("logStatus");

lgst2.Attributes.Add("onclick", "javascript:return " + " confirm('" + Msg + "') ");


}



full many flowers blush unseen!

AnswerRe: how2 add confirmation pop up upon loging out (LoginStatus control) Pin
kubben29-Apr-07 2:07
kubben29-Apr-07 2:07 
GeneralRe: how2 add confirmation pop up upon loging out (LoginStatus control) Pin
yet_alive29-Apr-07 2:32
yet_alive29-Apr-07 2:32 
GeneralRe: how2 add confirmation pop up upon loging out (LoginStatus control) Pin
kubben29-Apr-07 3:36
kubben29-Apr-07 3:36 
GeneralRe: how2 add confirmation pop up upon loging out (LoginStatus control) Pin
yet_alive29-Apr-07 19:41
yet_alive29-Apr-07 19:41 
QuestionError in Process.Start Pin
Arun.Immanuel28-Apr-07 17:10
Arun.Immanuel28-Apr-07 17:10 
AnswerRe: Error in Process.Start Pin
kubben29-Apr-07 2:11
kubben29-Apr-07 2:11 
GeneralRe: Error in Process.Start Pin
Arun.Immanuel29-Apr-07 2:30
Arun.Immanuel29-Apr-07 2:30 
GeneralRe: Error in Process.Start Pin
Arun.Immanuel29-Apr-07 4:57
Arun.Immanuel29-Apr-07 4:57 
QuestionClassid for adobe profesional 7.0 Pin
rudemusik28-Apr-07 9:26
rudemusik28-Apr-07 9:26 
QuestionStore Objects in Web.config Pin
Tarik Guney28-Apr-07 8:36
Tarik Guney28-Apr-07 8:36 
AnswerRe: Store Objects in Web.config Pin
Colin Angus Mackay28-Apr-07 8:58
Colin Angus Mackay28-Apr-07 8:58 
GeneralRe: Store Objects in Web.config Pin
Tarik Guney28-Apr-07 9:21
Tarik Guney28-Apr-07 9:21 
GeneralRe: Store Objects in Web.config Pin
Colin Angus Mackay28-Apr-07 9:40
Colin Angus Mackay28-Apr-07 9:40 
AnswerRe: Store Objects in Web.config Pin
Arun.Immanuel28-Apr-07 15:17
Arun.Immanuel28-Apr-07 15:17 
GeneralRe: Store Objects in Web.config Pin
Tarik Guney28-Apr-07 21:55
Tarik Guney28-Apr-07 21:55 
QuestionAjax question Pin
Scott Rider28-Apr-07 5:32
Scott Rider28-Apr-07 5:32 
AnswerRe: Ajax question Pin
Christian Graus28-Apr-07 15:24
protectorChristian Graus28-Apr-07 15:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.