title: How to call serverside function with button click in jQuery uidialogbox?
body: <p>If I add a serverside function in masterlayout, the popup will display in all the pages. However, once I click the "no" button, it doesn't show anymore. For that, I have to use session, but we can't set the session value in jQuery.</p>
  
  <p>The code behind I use in masterlayout is:</p>
  
  <pre><code>     &lt;script runat="server"&gt;
        protected void btnCancel_Click(object sender, EventArgs e)
        {
          Session["sesvalue"] = 1;
  
        }
       &lt;/script&gt;
  </code></pre>
  
  <p>but the method doesn't fire on button click</p>