Yes my server handles .NET. I have made small ASP.NET forms which display and work. Now I need to create the entire HTML dynamically. Whenever I run my code, .NET populates it's own HTML to run and never enters the Page_Load event. Here is all my code....
dynamic_page.aspx: (I have set the AutoEventWireup to both True and False...)
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="dynamic_page.aspx.vb" %>
dynamic_page.aspx.vb:
Public Class dynamic_page
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
Response.Write("<html><head></head><body>Eric</body></html>")
End If
End Sub
End Class
HTML returned from server to client box:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
<BODY></BODY></HTML>
*** On another note: Why does my VS.NET always place
Inherits="www.derivetech.us.dynamic_page"
in the "<% @ Page" tag? It causes the page to display an error for line 1.
Thanks for your time and help.
- Eric