User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 423,552 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,911 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting

My first attempt at ASP.NET...

Join Date: Aug 2004
Posts: 22
Reputation: ecashwell is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
ecashwell ecashwell is offline Offline
Newbie Poster

Re: My first attempt at ASP.NET...

  #3  
Aug 10th, 2004
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
Reply With Quote  
All times are GMT -4. The time now is 6:09 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC