or
| <telerik:RadAjaxManager ID="ramManager" runat="server" DefaultLoadingPanelID="alpPan1" UpdatePanelsRenderMode="Inline" RequestQueueSize="6"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="ramManager"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="lblOne" /> |
| <telerik:AjaxUpdatedControl ControlID="lblTwo" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
protected void btnResetPwd_Click(object sender, EventArgs e)
{
* here is my button event click
* I want logic here, then if good......run that radalert(); script
}
| // Type cstype = GetType(); |
| // const string csname = "GroupLabelScript"; |
| // ClientScriptManager cs = Page.ClientScript; |
| StringBuilder script = new StringBuilder(); |
| script.AppendFormat("<script type=\"text/javascript\">{0}", Environment.NewLine); |
| script.AppendFormat("{0}",Environment.NewLine); |
| script.AppendFormat("$telerik.$(document).ready(function() {0} {1}", @"{", Environment.NewLine); |
| for (int i = 0; i < (7 * 3); i++) |
| { |
| script.AppendFormat("$telerik.$(\".rsHorizontalHeaderTable tr:last th:eq({0})\").addClass(\"{1}\");{2}", i, (i % 2 == 0) ? "Red" : "Green", Environment.NewLine); |
| } |
| script.AppendFormat("{0});{1}", @"}", Environment.NewLine); |
| script.Append(Environment.NewLine); |
| script.AppendFormat("</script>{0}", Environment.NewLine); |
| // How do I add my script to the RadScriptManager1 ?! |
| RadScriptManager1.Scripts.Add(script.ToString()); |
| // cs.RegisterClientScriptBlock(cstype, csname, script.ToString(), false); |