Sux0rZh@jc0rz
09-17-2003, 04:14 PM
kay. im using www.w3schools.com to learn asp.net and so far i'v learned a ton about it's structure and the most common commands, but i don't quite know the functions yet. like, I know how to add all the form objects but i'm not aquainted with all the functions like in this:
<script runat="server">
Sub Page_Load
if Not Page.IsPostBack then
lbl1.Text="The date and time is " & now()
end if
End Sub
Sub submit(s As Object, e As EventArgs)
lbl2.Text="Hello World!"
End Sub
</script>
I understand the <script runat="server> and i know how to use the sub page_load and Page.IsPostBack parts but not all the functions like & now() ...see?
I also don't know how to do the
Sub submit(s As Object, e As EventArgs)
lbl2.Text="Hello World!"
End Sub
submit is an onclick="do this function" but i don't understand the (s as Object, e as EventArgs)
care to explain that part? i assume its asp.net's version of specifying what is to be changed but I don't see how it is s or e.. S being the object to change and E being the thing to change it to mayby? not sure how they came up with S or E...
<script runat="server">
Sub Page_Load
if Not Page.IsPostBack then
lbl1.Text="The date and time is " & now()
end if
End Sub
Sub submit(s As Object, e As EventArgs)
lbl2.Text="Hello World!"
End Sub
</script>
I understand the <script runat="server> and i know how to use the sub page_load and Page.IsPostBack parts but not all the functions like & now() ...see?
I also don't know how to do the
Sub submit(s As Object, e As EventArgs)
lbl2.Text="Hello World!"
End Sub
submit is an onclick="do this function" but i don't understand the (s as Object, e as EventArgs)
care to explain that part? i assume its asp.net's version of specifying what is to be changed but I don't see how it is s or e.. S being the object to change and E being the thing to change it to mayby? not sure how they came up with S or E...