Click here to Skip to main content
15,885,869 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Hello Guy's ,
This is my first question on code project website but access I think last two year's.coming to Question, My question is I have one Pop up window this window make in J-Query. This window hold Two Text Box's and Two Buttons. Text Box are Email id and another is Password and button is Login and Cancel. my Problem is When I Press the Login Button can't fire Clicking event. I have try every type of working but can't success. snippet code is here
XML
<div  id="basic-modal-content">
           <h3><strong>Snindiasoftware Sign in</strong><hr />
               <h3>
               </h3>
               <p style="color:#FFF;">
                   <strong>All fields are required.</strong></p>
               <div class="light_box">
                   <div class="light_boxleft">
                       <a href="Forgot-Password.aspx">Passowrd?/</a><br />
                       <div class="light_boxright">
                           <asp:TextBox ID="Txt_EmailID" runat="server" class="nameInput"></asp:TextBox>
                           <br />
                           <a href="Create-User.aspx">Register</a></div>
                   </div>
                   <div class="light_box_2">
                       <script language="javascript" type="text/javascript">

                           function myclear() {

                               window.print();
                   alert("hadfs");
               }

           </script>
                       <asp:Button ID="Btn_Login" runat="server" class="buttonPro"
                           onclick="Btn_Login_Click" OnClientClick="myclear()" Text="LogIn" />
                       <asp:Button ID="Btn_Cancel" runat="server" class="buttonPro"
                           OnClientClick="clear()" Text="Cancel" />
                   </div>
               </div>
           </h3>
    </div>


But java script is call, I can't understanding why can't the fire Button click.
Thanks for Advance. I waiting your Answer.
Posted
Comments
Do you see that alert after window print?
joginder-banger 8-Dec-13 2:08am    
yes but this is a java script code. I want use server control.
Try like below...

<asp:Button ID="Btn_Login" runat="server" class="buttonPro"
onclick="Btn_Login_Click" OnClientClick="return myclear()" Text="LogIn" />

<script language="javascript" type="text/javascript">
function myclear() {
window.print();
alert("hadfs");
return true;
}
</script>
joginder-banger 8-Dec-13 2:12am    
sir if you have a complete code plz share. I need very urgent.
joginder-banger 8-Dec-13 2:56am    
I think are you can't understanding my problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900