|
-
Mar 4th, 2005, 06:16 AM
#1
Thread Starter
Fanatic Member
Page_Load event
I have this script in an ASPX page that should execute when the page loads but doesn't and I don't know why:
Code:
<script runat="server">
Sub Page_Load
LabelWelcome.Text = The date and time is " & now()
End Sub
</script>
Does anybody have any ideas?
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Mar 4th, 2005, 07:02 AM
#2
Re: Page_Load event
VB Code:
Sub Page_Load(sender As Object, e As EventArgs)
-
Mar 4th, 2005, 07:11 AM
#3
Thread Starter
Fanatic Member
Re: Page_Load event
It still doesn't work...
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Mar 4th, 2005, 10:09 AM
#4
Addicted Member
Re: Page_Load event
I just tried your code on one of my pages, though I put it Page_Load of my code behind file, and it worked:
Me.Label.text = "The time and date is " & now()
I couldnt get it to work when I tried putting it in the HTML with the <script> tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|