Posts

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 ...

l HOW TO ACCESS HTML CONTROL INSIDE DOTNET FRAMEWORK ? (DATAHTML.ASPX)

  DAY - 18-06-2025   l  HOW TO ACCESS HTML CONTROL INSIDE DOTNET FRAMEWORK ? (DATAHTML.ASPX)     < asp : Button   ID ="Button1"   runat ="server"   Text ="DISPLAY"   OnClick ="Button1_Click"   />                  < input   type ="text"   id ="T1"   runat ="server"   />         string  msg = Request.Form[ "T1" ];   // here this from is now has element of html so we are using [] bracket           Response.Write(msg);       l  Date time conversion:- For this concept we have to use culture info library.     // create date time object           DateTime dt = DateTime.ParseExact(TextBox1.Text, "yyyy-MM-dd" , System.Globalization.CultureInfo.InvariantCulture); // parseexact use to convert date ...