Upload
shyam-chawda
View
200
Download
5
Embed Size (px)
DESCRIPTION
basic of ASP.NET
Citation preview
INTRODUCTION OF ASP.NETShyam N. Chawda 07874391191
www.shyamsir.com
CODING MODELS
Shyam N. Chawda 9374928879
Inline code (single-file)
Code behind file
INLINE Need to write the
Script code + HTML code
in the same file.
Shyam N. Chawda 9374928879
CODE BEHIND
Shyam N. Chawda 9374928879
4
CODE BEHIND Script code and the HTML code in
separate files
These two files are then linked together to run the Web application.
Shyam N. Chawda 9374928879
5
CODE BEHIND
2 separate files.
Designing in HTML (.aspx) Coding in Vb.net (.aspx.vb)
Shyam N. Chawda 9374928879
6
COMPARE Easy Designer working on the markup while a
programmer Code can be reused for multiple pages.
Single-file page is easier to rename. send to another programmer because there is
only one file.Shyam N. Chawda 9374928879
7
CODE RENDER BLOCKS Code render blocks are used to
write inline code or inline expressions inside the .aspx page.
Shyam N. Chawda 9374928879
8
CODE RENDER BLOCKS
<% inline code %> <%=inline expression %>
Shyam N. Chawda 9374928879
9
CODE RENDER BLOCKS
<% Dim I as integer %>
<font size=<%=I%>>
Shyam N. Chawda 9374928879
10
CODE RENDER BLOCKS
Exercise <hr> <font>
Shyam N. Chawda 9374928879
11
TYPES OF CONTROL
Standard Controls
Validation Controls
Rich Controls
Data Controls
Navigation Controls
Login Controls
Webpart Controls
HTML Controls
SERVER CONTROLS
They are programmable objects Server side objects. HTML conrtols <runat =server> System.Web.UI.WebControls
Shyam N. Chawda 9374928879
14
HTML CONTROLS
System.Web.UI.HTMLControls
Shyam N. Chawda 9374928879
15
VALIDATION CONTROL RequiredFieldValidator CompareValidator RangeValidator RegularExpressionValidat
or CustomValidator
Shyam N. Chawda 9374928879
16
DIRECTORY STRUCUTRE
App_Browsers App_Code App_Data App_GlobalResources App_LocalResources
DIRECTORY STRUCUTRE
App_Themes App_WebReferences Bin
Shyam N. Chawda 9374928879
19
Any Questions
Thanks