mattfairw
asked on
Page_Load not getting called
Ok, this has got to be something dumb....but i can't get the Page_Load to be called, even on something as simple as:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb " Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="vbscript" runat="server">
Sub Page_Load(ByVal s As Object, ByVal e As EventArgs)
lbl.Text = "hey you..."
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="lbl" runat="server" />
</div>
</form>
</body>
</html>
What's going on here...i thought page_load was always called??
Thanks,
-Matt
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="vbscript" runat="server">
Sub Page_Load(ByVal s As Object, ByVal e As EventArgs)
lbl.Text = "hey you..."
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="lbl" runat="server" />
</div>
</form>
</body>
</html>
What's going on here...i thought page_load was always called??
Thanks,
-Matt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER