I have the following code which should call a function called ShowPopup in my client side script but for reason, when I call this function nothing happens.
string pg = "Test";
ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup(pg);", true);
If I do the following:
ClientScript.RegisterStartupScript(
this.GetType(), "Popup", "ShowPopup('Test');", true);
it works fine. It does show up in the popup. Any idea what I may be doing wrong.