Web Tech Notes
Web Tech Notes
<H1> Headers
<P> Paragraph
<form runat="server">
Name: <asp:TextBox id="name" runat="server" />
<br>
Age: <asp:TextBox id="age" runat="server" />
<br><br>
<asp:Button runat="server" Text="Submit" />
<br><br>
<asp:RequiredFieldValidator
ControlToValidate="name"
Text="The name field is required!"
runat="server" />
</form>
This shows
Name:
Age:
Submit
</body>
</html>
A password TextBox:
<asp:TextBox id="tb2" TextMode="password" runat="server" />
<br><br>
HTML e.g
<input id =Button 1 type= button value=button/>
Standard- ASP e.g
Buttons <asp: button ID= Button2 runat =server Text=Button1/>
Label <asp: Label ID=example1 runat =server text=example12></asp:Label>
Text changes the name of the property.
E.g Button 1 into Button 2
ASP label has events with properties box for example events which is a lightening sign.
Double clicking button activates the handler, a handler allows you to program what the button will
do when a user clicks on it.
For example button2 . Text =hello
Page layout can be done via tables 3 rows 2 columns
Merge first and third cells by modify.
Master pages are used to define sections of website in one place.
Example ASP.NET Page
<html>
<body>
<form runat="server">
<asp:Button id="button1" Text="Click me!" OnClick="submit" runat="server" >
</form>
</body>
</html>
Add the master page, using the masterpage add the menu from navigation
Add each individual webform for the different pages e.g home contact us find us etc
Add the new data source this can be done by adding the root and the parent from menu and edit
menu, this is where u can add the different links to your page.
The site map allows you to link all pages with the masterpage this can be done by adding the url of
the aspx file e.g find us would be linked to the map, when the user clics find us they would be
directed to the map etc.