It is basically a next generation of asp but not an upgraded version of asp. It is not fully backward compatible with asp.
Like ASP, ASP.net is a server side scripting technology that enables scripts embedded in html pages to be executed by an internet sever.
extension of asp.net file is .aspx
advantages over asp
- reduced amt of code
- easier and quicker programming
- increased performance by running compiled code
- user authentication
- event driven programming
- it doesnt support VBScript
- asp doesnt maintain viewstate
%Response.Write(now())%
Server Controls ----these are tags understood by server
problem in classic ASP---spaghetti code problem.............u cant separate executable code from html
but server controls in ASP.NET has solved dis pblm. There are 3 kinds of server controls
- html
- web
- validation
- runat="server" attribute is added to html ctrls
- syntax for creating web server controls::::::::::asp:control_name id="some_id" runat="server"
- syntax of writing an event Sub function_name(Source as object, e as Event Args) body End Sub
- asp:RangeValidatorControl ToValidate="tbox1" MinimumValue="1" MaximumValue="100" Type="Integer" Text="The value must be from 1 to 100!" runat="server" /
- Page.IsPostBack property it is false when page is loaded for the first time
- ViewState is automatically maintained in asp.net, if u wana disable it then write %@ Page EnableViewState="false" % directive
1 comment:
ohhhhhhh wow megs, kafi padhai chal rahi hai :)
n gud u hv put it here, kabhi koi prob hogi den v ll c to it..
al d best to ya dear..
tel us abt ur results
Post a Comment