Click here to Skip to main content
15,917,645 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Back & Forward Button in browser Pin
Quinten.Miller24-Apr-07 13:12
Quinten.Miller24-Apr-07 13:12 
QuestionDisplaying table contents Pin
krk101124-Apr-07 7:40
krk101124-Apr-07 7:40 
QuestionDisplay a .snp file on a ASP.NET page Pin
Ibuprofen24-Apr-07 7:40
Ibuprofen24-Apr-07 7:40 
QuestionGrab value of input control via Page.FindControls - issue Pin
DeepToot24-Apr-07 5:09
DeepToot24-Apr-07 5:09 
AnswerRe: Grab value of input control via Page.FindControls - issue Pin
badgrs24-Apr-07 5:57
badgrs24-Apr-07 5:57 
GeneralRe: Grab value of input control via Page.FindControls - issue Pin
DeepToot24-Apr-07 6:59
DeepToot24-Apr-07 6:59 
Questionwindow.confirm Pin
Imran Khan Pathan24-Apr-07 4:05
Imran Khan Pathan24-Apr-07 4:05 
AnswerRe: window.confirm Pin
Arun.Immanuel24-Apr-07 4:15
Arun.Immanuel24-Apr-07 4:15 
Hi,
When the page is first rendered, the link button will not have the
onclick attribute.


U R adding the confirmation property after the page has been posted back.
The newly rendered page will have the link button with onclick attribute set.

That is why, the confirmation messaged is displayed for the second time alone.


U will have to add the onclick attribute before the page is loaded for the first time.

Try this:


GV_userlist.Databind();
for(int i=0;i<GV_userlist.Rows.Count;i++)
{
LinkButton bt = (LinkButton)GV_userlist.Rows[i].FindControl("BT_delete");
bt.Attributes.Add("OnClick", "return window.confirm('Are you sure want to remove this user?');");

}







Regards,
Arun Kumar.A

GeneralRe: window.confirm Pin
Sujit Gupta24-Apr-07 7:51
Sujit Gupta24-Apr-07 7:51 
AnswerRe: window.confirm Pin
badgrs24-Apr-07 5:51
badgrs24-Apr-07 5:51 
QuestionPlz find out error in my code. Pin
Care Career24-Apr-07 2:27
Care Career24-Apr-07 2:27 
AnswerRe: Plz find out error in my code. Pin
Colin Angus Mackay24-Apr-07 2:32
Colin Angus Mackay24-Apr-07 2:32 
AnswerRe: Plz find out error in my code. Pin
Russell Jones24-Apr-07 2:42
Russell Jones24-Apr-07 2:42 
AnswerRe: Plz find out error in my code. Pin
Md. Ismail24-Apr-07 2:50
Md. Ismail24-Apr-07 2:50 
AnswerRe: Plz find out error in my code. Pin
Dave Sexton24-Apr-07 3:16
Dave Sexton24-Apr-07 3:16 
GeneralRe: Plz find out error in my code. Pin
DeepToot24-Apr-07 5:11
DeepToot24-Apr-07 5:11 
GeneralRe: Plz find out error in my code. Pin
DeepToot24-Apr-07 5:13
DeepToot24-Apr-07 5:13 
GeneralRe: Plz find out error in my code. Pin
Dave Sexton24-Apr-07 10:36
Dave Sexton24-Apr-07 10:36 
AnswerRe: Plz find out error in my code. Pin
DeepToot24-Apr-07 5:21
DeepToot24-Apr-07 5:21 
AnswerRe: Plz find out error in my code. Pin
Sujit Gupta24-Apr-07 7:57
Sujit Gupta24-Apr-07 7:57 
Questionprint xsl Pin
TheEagle24-Apr-07 2:13
TheEagle24-Apr-07 2:13 
QuestionConfigurationsetting Class? Pin
Care Career24-Apr-07 0:25
Care Career24-Apr-07 0:25 
AnswerRe: Configurationsetting Class? Pin
Colin Angus Mackay24-Apr-07 0:36
Colin Angus Mackay24-Apr-07 0:36 
AnswerRe: Configurationsetting Class? Pin
Sandeep Kumar24-Apr-07 0:50
Sandeep Kumar24-Apr-07 0:50 
AnswerRe: Configurationsetting Class? Pin
Sathesh Sakthivel24-Apr-07 1:40
Sathesh Sakthivel24-Apr-07 1:40 

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.