Note that there are some explanatory texts on larger screens.

plurals
  1. PO_doPostBack not defined
    primarykey
    data
    text
    <p>I have written the script dynamically using string builder as follows</p> <pre><code>public static void ShowMessage1(ENUM_MessageType pMessageType, string pMessage, Button c) { StringBuilder strScript = new StringBuilder(); strScript.Append("&lt;script type=\"text/javascript\" src=\"").Append("/Scripts/jquery-1.4.1.js").Append("\"&gt;&lt;/script&gt;"); strScript.Append("&lt;script type=\"text/javascript\" src=\"").Append("/Scripts/jquery.msgBox.js").Append("\"&gt;&lt;/script&gt;"); strScript.Append("&lt;link rel=\"stylesheet\" type=\"text/css\" href=\"").Append("/Styles/msgBoxLight.css").Append("\" /&gt;"); strScript.Append("&lt;script type=\"text/javascript\"&gt;"); strScript.Append("(function example()"); strScript.Append("{"); strScript.Append("$.msgBox({"); strScript.Append("title:'" + lMessageType + "'"); strScript.Append(","); strScript.Append("content:'" + pMessage + "'"); strScript.Append(","); strScript.Append("type:'" + lOptionType + "'"); strScript.Append(","); strScript.Append("buttons: [{ value: 'Yes' }, { value: 'No'}],"); strScript.Append("success: function (result) {"); strScript.Append("if(result == 'Yes'){"); strScript.Append("javascript:_doPostBack('" + c.ClientID + "','');"); strScript.Append("}"); strScript.Append("}"); strScript.Append("});"); strScript.Append("})();"); strScript.Append("&lt;/script&gt;"); if (page != null &amp;&amp; !page.ClientScript.IsClientScriptBlockRegistered("alert")) { page.ClientScript.RegisterClientScriptBlock(typeof(enumClass), "info", strScript.ToString()); } } </code></pre> <p>I am getting the exception as <code>ReferenceError: _doPostBack is not defined</code> can some one help me</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload