Link to home
Start Free TrialLog in
Avatar of mattfairw
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
ASKER CERTIFIED SOLUTION
Avatar of crisco96
crisco96
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mattfairw
mattfairw

ASKER

ah, right.  been a while since i've done asp.net and i knew it had to be somethin easy.  Thanks for the quick help - it worked great!