Hi
I want custom message box . For e.g like below. It is giving error showpopup not defined
public void ShowMessage(String Title, String Text, String Type)
{
Text = Text.Replace("'", "").Replace("/", " ").Replace(";", " ").Replace(":", " ").Replace(",", " ");
Text = System.Text.RegularExpressions.Regex.Replace(Text, @"\t|\n|\r", " ");
if (Common.CommonFunction.IE(Request.Browser.Browser))
{
Common.MessageBox.Show(Text);
}
else
{
ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopUp('" + Title + "', '" + Text + "','" + Type + "');", true);
}
}
private void ShowPopUp()
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append(@"<script language='javascript'>");
sb.Append(@"$('#modal_form_horizontal').modal({backdrop: 'static',keyboard: true, show: true});");
sb.Append(@"</script>");
ClientScript.RegisterStartupScript(this.GetType(), "JSScript", sb.ToString());
}
Thanks