Posts

MVC(MODEL-VIEW-CONTROLLER)

 *********MVC(MODEL-VIEW-CONTROLLER)********** Introduction 1.MVC is model view controller structure 2.It provide the layer architecturein dot net application 3.MVC is provide 4 specific component    i]dot net framework    ii]asp.net mvc    iii] webform    iv]IIS 4.mvc code is to be relies by mspl(microsoft public licence) 5.mvc is manage complexity of application 6.mvc provide light weight application 7.provide more interactive and responsive application 8.mvc is provide tdd(test driven development) *****WHAT IS MVC PATTERN***** a model view controller design pattern is prefer c,c++,java and c# mvc(model view editor previously) ****MVC Architecture***** model:-inside the model create only class view:-only used design section(UI) and work with html.extention:-.cshtml controller:-(coading)it handle communication from the user overall application(logic building).controller manage http url *****MVC Lifecycle***** application lifecycle:-work with...

DATATABLES

Image
 *****IMP DATA TABLE****** 1.it used to searchable gridview 2.it is pre defined library step 1:-save data table in project folder  step 2:-include following css inside the page step 3:-inclue the script in web page after the </form> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <link href="datatables/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" /> <link type="text/css" rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" /> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css" />   <script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script>   <script type="text/javascript" src="https://cdn.datatabl...

WEB APPLICATION PRACTICALS

Image
 Program:- Page navigation concepts basics Design:- default page Code:-    using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page {     protected void Page_Load(object sender, EventArgs e)     {     }     protected void Button1_Click(object sender, EventArgs e)     {         Response.Write("welcome to my page");     }     protected void Button2_Click(object sender, EventArgs e)     {         //on page navigation         Response.Redirect("contact.aspx");     }     protected void Button3_Click(object sender, EventArgs e)     {         //off page navigation         Server.Transfer("contact.aspx");     } } Design:-contact.aspx...

DotNet Database Development

 *****DATABASE CONNECTIVITY(MIMP)***** HOW TO CONNECT DATABASE IN WEB APPLICATION :- file-> new website->c# -> asp.net empty website->browse->folder name  there are two concept used in data base connectivity  1.connectivity step 2.code step 1.connectivity step step 1:-include data base library    i.sql server -> sqlclient ii.xml -> xml iii.msaccess/exel->oledb how to include library:- syntax:- using system.data.libraryname; step 2:- createdatabase object(before the page load) 1.connection object->connection object is representinng database location. sqlconnection objname; sqlconnection cn; 2.sqlcommand object->sqlcommand objectb represent all query(insert,update,delete,select) sqlcommand objname; sqlcommand cm; 3.sqldatareader object->only use reading data from database.It only used select query. sqldatareader objname; sqldatareader dr; step 3:-break the page reloading process we have to use page load event if(!ispostb...

C# console applications

BASIC PROGRAM  1 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace basicprogramming {     class Program     {         static void Main(string[] args)         {             int a = 10;             Console.WriteLine("the value of a" +" " + a);             Console.WriteLine("this is my first consol program");             Console.WriteLine("welcome to my program");             Console.ReadKey();//break to output screen          }     } } BASIC PROGRAM  2: INPUT FROM USER using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace userinputpro {     class Program     {         int a;         void accep...