<%@ Page Lauguage=”VB” %>
<Script runat =”server”>
Sub tbMessage_Change(Sendeer As Objet, E As EventArgs)
lblMessage.text = “Hello “ + tbMessage.Text
End Sub
</script>
<html>
<head> <title> asp.net <title>
<link rel=”stylesheet” type= “text/css” href=”my_styles.css”?>
</head>
<body>
<font size =”5”>
Learning ASP.Net
</font>
<hr>
<p>
<% Response.write(“First asp.net page <p>”) %>
<form runat=”server”>
Please enter your name:
<asp:textbox id=”tbMessage”
OnTextChanged=”tbMessage_Change” runat=server/>
<asp:button id=”btSubmit” Text=”Submit”
Runat=server/> <p>
<asp:label id=”lblMessage” font-size=”20pt”
Runat=server/>
</form>
</body>
</html>
Class Notes
CSS
Hr {color: red}
Bgcolor {color: paleblue}
p.center {text-align: center}
p.left {text-align: left}
p.right {text-align: right}
Body
<.center>
Test out tags
</.center>
<hr>
<p>
Hello everyone thanks for attended class
</p>
<a href=”music.wav” > listen to my song. </a>
<a href=”movie.mov”> great move target=”_blank”</a>
Example:
Of the top of page command <a href =”#top”> Top of Page </a>
<body>
<a name=”top” </a>
<p> <H1> This is the text of your page </H1> </p>
<a href= “#top”> Top of Page </a>
</body>
<p id=”BMW”> BMW </p>
<a href=”cars.htm#BMW”> click for a description of BMW </a>
|