Click here to Skip to main content
15,609,421 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My (3 tier) architecture code is not firing click event. it should show some error but its not showing it .

What I have tried:

protected void Button1_Click(object sender, EventArgs e)
           BE_MasterEntry MasterEntry_Be = new BE_MasterEntry();
           BL_MasterEntry Master_BL = new BL_MasterEntry();
           MasterEntry_Be.ClietnCode_details = Convert.ToInt32("00003322");
           MasterEntry_Be.FullName = txtName.Text;
           MasterEntry_Be.CitizenNo = txtctzno.Text;
           MasterEntry_Be.Ctzissueorgn = txtissueorz.Text;
           MasterEntry_Be.PAN_ = txtPanNo.Text;
           MasterEntry_Be.DateOfBirth = txtdobn.Text;
           if (RdMale.Checked == true)
               MasterEntry_Be.Gender = Convert.ToString(true);
           //  MasterEntry_Be.Gender = RdMale.Checked;


<pre>  <asp:Button ID="Button1" runat="server" Text="SAVE" Height="32px" Width="81px" BackColor="#99CCFF" OnClick="Button1_Click"  CausesValidation-="False" ClientIDMode="Static"/>
Updated 27-Feb-21 19:27pm
Mike Hankey 28-Feb-21 12:20pm    
Why do you have the -= in this?

20212a 1-Mar-21 10:37am    
Put a breakpoint at BE_MasterEntry MasterEntry_Be = new BE_MasterEntry(); and see what happens.

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