Hi
How the below code works
C#
private void ShowPopUpData()
{
try
{
StringBuilder sb = new StringBuilder();
sb.Append(@"");
sb.Append(@"$('#modal_form_horizontal').modal('show');");
sb.Append(@"");
ClientScript.RegisterStartupScript(this.GetType(), "JSScript", sb.ToString());
}
catch (Exception ex)
{
ShowMessage("Oops...", ex.Message, "error");
}
}Thanks

Abhishek YadavRank #217 · 11.3K reputationPosted Oct 25, 2022, 12:51 PM EDT
Aravind GovindarajRank #430 · 5.8K reputationPosted Oct 25, 2022, 10:59 AM EDT
Please refer to the below URL, may get some idea about the same
https://learn.microsoft.com/en-us/dotnet/api/system.web.ui.clientscriptmanager.registerstartupscript?view=netframework-4.8