Click here to Skip to main content
15,887,477 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Call static method of user control (ascx) prior to loading it in the Page Pin
Mircea Grelus22-Jul-06 5:51
Mircea Grelus22-Jul-06 5:51 
GeneralRe: Call static method of user control (ascx) prior to loading it in the Page Pin
minhpc_bk22-Jul-06 21:11
minhpc_bk22-Jul-06 21:11 
GeneralRe: Call static method of user control (ascx) prior to loading it in the Page Pin
Mircea Grelus23-Jul-06 1:20
Mircea Grelus23-Jul-06 1:20 
Questiontriggering javascript confirm dialog via a function (not button event) Pin
jszpila21-Jul-06 10:24
jszpila21-Jul-06 10:24 
AnswerRe: triggering javascript confirm dialog via a function (not button event) Pin
Grapes-R-Fun21-Jul-06 14:34
Grapes-R-Fun21-Jul-06 14:34 
GeneralRe: triggering javascript confirm dialog via a function (not button event) Pin
RichardGrimmer23-Jul-06 8:26
RichardGrimmer23-Jul-06 8:26 
GeneralRe: triggering javascript confirm dialog via a function (not button event) Pin
Grapes-R-Fun23-Jul-06 9:26
Grapes-R-Fun23-Jul-06 9:26 
GeneralRe: triggering javascript confirm dialog via a function (not button event) Pin
RichardGrimmer24-Jul-06 5:47
RichardGrimmer24-Jul-06 5:47 
Sorry, but I fail to see why the need for the complexity....

Define a js function....

function confirmDialog()
{
  res = confirm(.......)

  if (res) 
  {  
    document.getElementById ('someHiddenField').value = inputFromConfirm
  } 

}


Then to call the function, just set the onclick handler of the buttons, and in Page_Load, Page.RegisterStartupScript for the third case....

Once the function is called, can either __doPostback or just call the default button's click event - look for the hidden value on't server side, et voila!

Can you talk me through how you would implement this...why go to all the trouble and jumping through the hoops you seem to suggest?


"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox

GeneralRe: triggering javascript confirm dialog via a function (not button event) Pin
Grapes-R-Fun24-Jul-06 13:22
Grapes-R-Fun24-Jul-06 13:22 
GeneralRe: triggering javascript confirm dialog via a function (not button event) Pin
RichardGrimmer25-Jul-06 7:16
RichardGrimmer25-Jul-06 7:16 
GeneralRe: triggering javascript confirm dialog via a function (not button event) Pin
Grapes-R-Fun25-Jul-06 8:35
Grapes-R-Fun25-Jul-06 8:35 
QuestionHow to read data from xml file to dataset [modified] Pin
B Desai21-Jul-06 9:56
B Desai21-Jul-06 9:56 
AnswerRe: How to read data from xml file to dataset Pin
Grapes-R-Fun21-Jul-06 15:17
Grapes-R-Fun21-Jul-06 15:17 
GeneralRe: How to read data from xml file to dataset Pin
B Desai22-Jul-06 17:20
B Desai22-Jul-06 17:20 
GeneralRe: How to read data from xml file to dataset Pin
Grapes-R-Fun23-Jul-06 8:25
Grapes-R-Fun23-Jul-06 8:25 
QuestionCrystal Reports fail to load in web comonent Pin
icestatue21-Jul-06 9:11
icestatue21-Jul-06 9:11 
Questionneed help about DataView [modified] Pin
mahesh kukkadapu21-Jul-06 9:07
mahesh kukkadapu21-Jul-06 9:07 
AnswerRe: need help about DataView Pin
leckey21-Jul-06 11:51
leckey21-Jul-06 11:51 
AnswerRe: How to pass List collection to a web method??? Pin
Felipe Dalorzo21-Jul-06 7:48
Felipe Dalorzo21-Jul-06 7:48 
GeneralRe: How to pass List collection to a web method??? Pin
JimFeng21-Jul-06 8:37
JimFeng21-Jul-06 8:37 
AnswerRe: How to pass List collection to a web method??? Pin
Felipe Dalorzo21-Jul-06 10:12
Felipe Dalorzo21-Jul-06 10:12 
GeneralRe: How to pass List collection to a web method??? Pin
JimFeng24-Jul-06 7:04
JimFeng24-Jul-06 7:04 
QuestionNot loading ascx in some websites only Pin
SIJUTHOMASP21-Jul-06 6:36
professionalSIJUTHOMASP21-Jul-06 6:36 
QuestionNon Item Selected on RadioButtonList Pin
Armando_Ramirez21-Jul-06 6:33
Armando_Ramirez21-Jul-06 6:33 
AnswerRe: Non Item Selected on RadioButtonList Pin
Grapes-R-Fun21-Jul-06 14:45
Grapes-R-Fun21-Jul-06 14:45 

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.