I have a HoverMenuExtend er which contains an asp:PlaceHolder , this place
holder has a User Control and this control contrains a Button.
The problem I am having is after the button fires the click event I want to
do a server side function and then refresh the Page where the PlaceHolder
risides.
I have no problem doing the server side function, but the following 'alert'
never shows up after the server side funtion.
I am using the alert function instead of
'__doPostBack(d ocument.getElem entById('upRunn ingJobs'), "test");' just for
testing as simplicity.
ScriptManager.R egisterStartupS cript(this, GetType(), "Refresh",
"alert('test'); ", false);
Here's my button click event:
protected void butCancel_Click (object sender, EventArgs e)
{
RunningJobsCont roller rjc = new RunningJobsCont roller();
rjc.CancelJob(t his.RReport.Ins tanceID);
//
// the alert from the following line never shows up
//
ScriptManager.R egisterStartupS cript(this, GetType(), "Refresh",
"alert('test'); ", false);
}
Thank You.
Peter
holder has a User Control and this control contrains a Button.
The problem I am having is after the button fires the click event I want to
do a server side function and then refresh the Page where the PlaceHolder
risides.
I have no problem doing the server side function, but the following 'alert'
never shows up after the server side funtion.
I am using the alert function instead of
'__doPostBack(d ocument.getElem entById('upRunn ingJobs'), "test");' just for
testing as simplicity.
ScriptManager.R egisterStartupS cript(this, GetType(), "Refresh",
"alert('test'); ", false);
Here's my button click event:
protected void butCancel_Click (object sender, EventArgs e)
{
RunningJobsCont roller rjc = new RunningJobsCont roller();
rjc.CancelJob(t his.RReport.Ins tanceID);
//
// the alert from the following line never shows up
//
ScriptManager.R egisterStartupS cript(this, GetType(), "Refresh",
"alert('test'); ", false);
}
Thank You.
Peter
Comment