Posts

Showing posts from March, 2023

Z 6 ) MVC Razor

  Razor Controller :-   using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace WebApplication1.Controllers {     public class StudentController : Controller     {         // GET: Student         public ActionResult Index()         {             return View();         }     } } Model :-  using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebApplication1.Models {     public class Stud     {     } } View :-( empty , No use Layout ) @model WebApplication1.Models.Stud @{     var h1 = "This is a Razor Application"; } <h1>@h1</h1>     // Call using @ Razor View Engine Interview Questions Answers 1. What is Razor View Engine ? :- Razor View Engine is a markup syntax which ...

Z 5 ) MVC (Model view Controller)

Image
  MVC (Model view Controller)    Model View Controller   The first version of  MVC is called MVED(Model View Editor) MVC is to multi layer architecture  Model         (class and variables) View          (.cshtml) Controller   (Logic building) MVC is directly operate html page in this reason it is called light weight environment. MVC Block Diagrame   .NET Framework  ASP.NET MVC ASP.Net Webform Benefits of MVC application It is manage complex application Direct control use in html It provide test driven development testing to (url http/data)

Z 4 ) 3-Tier Architecture

  3-Tier Architecture 3-Tier Architecture use 3 different layer  Presentation Layer :-  Design Bussiness Layer     :-  Attribute Data Layer             :-  DataBase Coding                                                              

Z 3 ) State Manangement

Image
 State Manangement Application state management is another technique for maintaining the state on the server-side. The data persisting in the application state is shared by all users and that data can be accessed from anywhere within the application.   Source Code :-  Ac1.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ac1.aspx.cs" Inherits="WebApplication1.Ac1" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title> </head> <body>     <form id="form1" runat="server">         <div>             <br />             <br /> &nbsp; Email             <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>             <br />             ...

Z 2 ) Server DataBase

Image
   Server DataBase There are following parameters in server database. IP Adress :- 188.138.122.60 User Name :- demouser1 Password :- demodb@2022$84 DataBase Name :- demodatabase       Server database connection string  * Thare are following parameters in server database connection string   DataSource              :-  IP Adress  Network Library       :-  DBMSSOCN Connection Timeout  :- Value(connection close at the end of code ex cn.close()) Packet Size                :- > 5000 Integrated Security    :- No  (password all time no ) Initial catalog             :- Database Name  Username  Password  Encrypt                       :- No Max Pool Size            :- Mo...

Z 1 ) Short Tricks (Auto Redirect concept , AutoZoom , Random Generate No , Save Any Language(Nvarchar) ) , Previous Back Button

Image
  Short Tricks * Auto Redirect concept *  Auto Redirect with the help of  < Meta > Tag. < Meta > use inside the < head > tag. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Z6_shorttrick_Autoredirect.aspx.cs" Inherits="ZZZAutoredirect" %> Source Code :- Autoredirect.Aspx   ( Page Or Website ) <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <meta http-equiv="refresh" content="2; URL=http://nrsolution4u.com" /> </head> <body>     <form id="form1" runat="server">     <div>              <br /> &nbsp;<h1><strong>&nbsp;this is Auto redirect concept</strong></h1>         <p>             &nbsp;</p>         <p>   ...

Z ) XML DataBase

Image
  XML DataBase  XML :- Xtensionale Markup Languag XML is markup language similar to Html , But without Predefined tag in use  User Defined Html concept  All tag is created by the User. Using System.Data.XML;   Q)    How to create XML  Step :-  Create folder -- Select route -- C# -- XML File -- xml file name (Student.xml) --                          Browser -- select folder -- ok. Q ) How create XML Database     * XML is reserve very less space           XMLFile Code :-  XMLsimple.xml <guestbook>   <entry name="ajay" city="pune">jhi</entry>   <entry name="kanchan" city="bhopal">All The Best</entry>   <entry name="raman" city="bhopal">save details</entry>   <entry name="shubham" city="bhopal">save details</entry>   <entry name="sourabh" cit...

Y ) IFrame

  IFrame   :-  Iframe Property is 0     Iframe Simple View Video in Ifrme Tag      Source Code :- IframeSimple.Aspx  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Z3_iframm(simple).aspx.cs" Inherits="INFRAME" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <style type="text/css">         .auto-style1 {             width: 285px;             height: 82px;         }     </style> </head> <body>     <form id="form1" runat="server">     <div>         HOW to use iframe in dotnet<br />         <br />   ...