<%@ Page Language="vb" %>
<html>
<head>
<title>Programmatic Control Example</title>
<script runat="server">
Sub Page_Init()
Dim Message As New Literal()
Message.Text = "This text set from Page_Load!"
PH.Controls.Add(Message)
End Sub
</script>
</head>
<body>
<form runat="server">
<asp:placeholder id="PH" runat="server"/>
</form>
</body>
</html>
|