Posts

New html

 padding: 10px;             margin-top: 15px;             background: #28a745;             border: none;             color: white;             font-size: 16px;             border-radius: 4px;             cursor: pointer;         }         .btn:hover {             background: #218838;         }         .message {             margin-top: 10px;             text-align: center;             font-weight: bold;         }     </style> </head> <body>     <form id="form1" runat="server">         <div clas...

Html css

  } .btn:hover { background: #218838; } .message { margin-top: 10px; text-align: center; font-weight: bold; } </style> </head> <body> <form id="form1" runat="server"> <div class="container"> <h2>Register</h2> <label for="txtName">Full Name</label> <asp:TextBox ID="txtName" CssClass="textbox" runat="server"></asp:TextBox> <label for="txtEmail">Email</label> <asp:TextBox ID="txtEmail" CssClass="textbox" runat="server"></asp:TextBox> <label for="txtPassword">Password</label> <asp:TextBox ID="txtPassword" CssClass="textbox" runat="server" TextMode=...

Dot net Validations

  Dot net Validations:- (progaspx validation) How to active validation controls <% @   Page   Language ="C#"   AutoEventWireup ="true"   CodeBehind ="Datavalidation.aspx.cs"   Inherits ="progaspx_validation.Datavalidation"   %>   <! DOCTYPE   html >   < html   xmlns ="http://www.w3.org/1999/xhtml"> < head   runat ="server">      < title ></ title > </ head > < body >      < form   id ="form1"   runat ="server">          < div >               Validation control implemtation                < br   />              < br   />          ...

validation settings

 <appSettings>  <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />  </appSettings>

Adding reference in layers .

right click on the layer -> add refernce -> assemble -> system.confirgutaion find the lib and install

3 tier

  NEW FOLDER (newtier) userBO   using  System; using  System.Collections.Generic; using  System.Linq; using  System.Text; using  System.Threading.Tasks;   namespace  BussinessObject {        public   class   UserBO       {          private   int  _Roll;          private   string  _Name;            public   int  Roll         {              get             {                  return  _Roll;               }   ...

l 3-tier architecture (TIER)

DAY - 28-06-2003   l  3-tier architecture (TIER) 1.  3tier architecture provides three specific layer A.  BussinessObject layer B.  BussinessLogic layer C.  DataAcess layer   A.  BussinessObject layer :- It only created data member as per database column.   B.  BussinessLogic Layer  :- This layer only communicated with aspx page.   C.  DataAcess layer  :- In this layer we work on database .   l  How to create 3 tier architecture? Step 1 :- create layer GO TO SOLUTION EXPLOSER -> RIGHT CLICK ON SOLUTION-------->CLICK ON NEW PROJECT ->SELECT CLASS LIBRARY (.NET FRAMEWORK)C# -> NAME OF LIBRARY. Step 2 :- create a class in each layer 1.  BussinessLogic - classname=userBL. 2.  BussinessObject - classname=userBO. 3.  DataAccess-classname=userDA   How to create a class :- Rightclick on the layer -> add class Step 3 - change all class to public which we made. All class is used for ...