1
Answer

Open div jquery on buttion click event cs code in asp.net

Nilesh Gujar

Nilesh Gujar

11y
1.1k
1
Hi.
    
    I have problem to open jqury div by cs code behind file in asp.net.
The code   

/* <head>
    <style type="text/css">
 <pre lang="css">.reminder_c
        {
            height: auto;
            width:1000px;
            background-color: #e2e2e2;
            padding: 17px 10px 10px 10px;
            position: fixed;
            left:50%;
            top: 80px;
            margin-left: -510px;
            z-index: 90;
           display: none;
        }</pre>
 </script>
<pre lang="xml">&lt;script src=&quot;js/myScript.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
        $(document).ready(function () {

        setInterval(function () { $(&quot;.overlay&quot;).fadeIn(200); $(&quot;.reminder_c&quot;).fadeIn(500); }, 5000);

                $(&quot;.close&quot;).click(function () {
                    $(this).parent(&quot;div&quot;).fadeOut(200, function () {
                        $(&quot;.overlay&quot;).fadeOut(200);
                    });
                });</pre>


</hear> */
<body>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />

 <div class="reminder_c">
        <div class="close"></div>
 
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

    </div>

</body>

<pre lang="xml">//________________ cs code _____
&lt;pre lang=&quot;cs&quot;&gt;protected void Button1_Click(object sender, EventArgs e)
{

}&lt;/pre&gt;</pre>

//________________ 

 I want to open write code to open button click event in cs code.

     Please given me the solution for this problem.
 
Answers (1)