Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: ASP.NET - Case sensetive?


Message #1 by philip.hatt@a... on Tue, 28 May 2002 11:50:14
Hello. 

I am coding a webform in VB.NET with EditPad. Im using code behind and got 
everything to work well except page_load event.

this was my code:

sub page_load( source as object, e as eventargs )
 
end sub

But the page load event never was raised.

I change the code to:

sub Page_Load( source as object, e as eventargs )

end sub

Notice that I just change the beginning letter i page & load to uppercase 
and then it worked.

HOw is this possible?
Message #2 by "Sri Vidya" <svsvidya@i...> on Wed, 29 May 2002 11:08:12 +0530
Hi,

I wrote this piece of code and execute the same. Works fine. Could it 
be browser specific or something? Can anyone throw some light on this 
one please?

<script runat="server">
sub page_load(source as object, e as eventargs)
end sub
</script>
<html>
<head>
	<title> test.aspx </title>
</head>
<body>
<form runat="server">
First Name: <asp:TextBox id="txtfname" runat="Server" />
<p>
Last Name: <asp:TextBox id="txtlname" runat="Server" />
</form>
</body>
</html>

Cheers,
Vidiya.


On Tue, 28 May 2002 11:50:14
  philip.hatt@a... wrote:
>Hello. 
>
>I am coding a webform in VB.NET with EditPad. Im using code behind 
>and got 
>everything to work well except page_load event.
>
>this was my code:
>
>sub page_load( source as object, e as eventargs )
>  
>end sub
>
>But the page load event never was raised.
>
>I change the code to:
>
>sub Page_Load( source as object, e as eventargs )
>
>end sub
>
>Notice that I just change the beginning letter i page & load to 
>uppercase 
>and then it worked.
>
>HOw is this possible?

---------------------------------------------
http://mail.indiainfo.com
India's first ISO certified portal
Check world time at http://time.indiainfo.com
Message #3 by philip.hatt@a... on Wed, 29 May 2002 12:53:31
Hello. Did you try to put some code in the page_load event so you really 
know that it is raised? 

> Hi,

I wrote this piece of code and execute the same. Works fine. Could it 
be browser specific or something? Can anyone throw some light on this 
one please? You could try example txtfname.text="page_load" to see that it 
works. I didnt get my example to work but my vb code was code behind so it 
might be some different from yours.

Philip

<script runat="server">
sub page_load(source as object, e as eventargs)
end sub
</script>
<html>
<head>
	<title> test.aspx </title>
</head>
<body>
<form runat="server">
First Name: <asp:TextBox id="txtfname" runat="Server" />
<p>
Last Name: <asp:TextBox id="txtlname" runat="Server" />
</form>
</body>
</html>

Cheers,
Vidiya.


On Tue, 28 May 2002 11:50:14
  philip.hatt@a... wrote:
>Hello. 
>
>I am coding a webform in VB.NET with EditPad. Im using code behind 
>and got 
>everything to work well except page_load event.
>
>this was my code:
>
>sub page_load( source as object, e as eventargs )
>  
>end sub
>
>But the page load event never was raised.
>
>I change the code to:
>
>sub Page_Load( source as object, e as eventargs )
>
>end sub
>
>Notice that I just change the beginning letter i page & load to 
>uppercase 
>and then it worked.
>
>HOw is this possible?

---------------------------------------------
http://mail.indiainfo.com
India's first ISO certified portal
Check world time at http://time.indiainfo.com
Message #4 by "Sri Vidya" <svsvidya@i...> on Thu, 30 May 2002 08:43:19 +0530
Hello,

Yes, I did. I modified the code below 

sub page_load(source as object, e as eventargs)
txtfname.text = "Norman"
end sub

When executed, it works fine. No errors at all.

Cheers,
Vidya.

On Wed, 29 May 2002 12:53:31
  philip.hatt@a... wrote:
>Hello. Did you try to put some code in the page_load event so you 
>really 
>know that it is raised? 
>
>> Hi,
>
>I wrote this piece of code and execute the same. Works fine. Could it 
>be browser specific or something? Can anyone throw some light on this 
>one please? You could try example txtfname.text="page_load" to see 
>that it 
>works. I didnt get my example to work but my vb code was code behind 
>so it 
>might be some different from yours.
>
>Philip
>
><script runat="server">
>sub page_load(source as object, e as eventargs)
>end sub
></script>
><html>
><head>
>	<title> test.aspx </title>
></head>
><body>
><form runat="server">
>First Name: <asp:TextBox id="txtfname" runat="Server" />
><p>
>Last Name: <asp:TextBox id="txtlname" runat="Server" />
></form>
></body>
></html>
>
>Cheers,
>Vidiya.
>
>
>On Tue, 28 May 2002 11:50:14
>   philip.hatt@a... wrote:
>>Hello. 
>>
>>I am coding a webform in VB.NET with EditPad. Im using code behind 
>>and got 
>>everything to work well except page_load event.
>>
>>this was my code:
>>
>>sub page_load( source as object, e as eventargs )
>>  
>>end sub
>>
>>But the page load event never was raised.
>>
>>I change the code to:
>>
>>sub Page_Load( source as object, e as eventargs )
>>
>>end sub
>>
>>Notice that I just change the beginning letter i page & load to 
>>uppercase 
>>and then it worked.
>>
>>HOw is this possible?
>
>---------------------------------------------
>http://mail.indiainfo.com
>India's first ISO certified portal
>Check world time at http://time.indiainfo.com

---------------------------------------------
http://mail.indiainfo.com
India's first ISO certified portal
Check world time at http://time.indiainfo.com

  Return to Index