Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 9th, 2004, 01:37 AM
Registered User
 
Join Date: Mar 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Newbie Need Help Badly!

Hi All,
I juz started on ASP.net today ... i am trying out a HelloWorld Program and I am having some problem with it ...
Below is my code:

WebForm.2apsx
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm2.aspx.vb" Inherits="HelloWorld.WebForm2"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
   <HEAD>
       <title>WebForm2</title>
       <meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
       <meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
       <meta name="vs_defaultClientScript" content="JavaScript">
       <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
   </HEAD>
   <body MS_POSITIONING="GridLayout">
       <form id="Form1" method="post" runat="server">
           <asp:Label id="lblText" style="Z-INDEX: 101; LEFT: 20px; POSITION: absolute; TOP: 21px" runat="server" Width="98px"></asp:Label>
           <asp:Button id="btnSubmit" style="Z-INDEX: 102; LEFT: 21px; POSITION: absolute; TOP: 61px" runat="server" Width="77px" Text="Submit"></asp:Button>
       </form>
   </body>
</HTML>

WebForm.2apsx.vb
Public Class WebForm2
   Inherits System.Web.UI.Page
   Protected WithEvents lblText As System.Web.UI.WebControls.Label
   Protected WithEvents btnSubmit As System.Web.UI.WebControls.Button

#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

   Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
       'Put user code to initialize the page here
   End Sub

   Private Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
       lblText.Text = "Hello World"

   End Sub
End Class

The program is when i deploy my asp page ... the button does not display at all ... can someone please help me? :(
Thanks.

  #2 (permalink)  
Old March 9th, 2004, 03:32 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

WHat happens when you look at the source of the page in the browser? Does it still display the <asp:Button? declaration?

If that's the case, your server may not be setup correctly for ASP.NET. Did you install IIS before the framework?

You may want to take a look at this thread, or do a search on this forum for aspnet_regiis.exe (the tool you need to run if you installed IIS after you installed the framework).

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #3 (permalink)  
Old March 10th, 2004, 12:34 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You used the word "deploy" which jumped out at me. What exactly do you mean by "when i deploy my asp page "?
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
drop down box.Help needed badly s_srivi1 Access 4 November 12th, 2007 02:49 AM
Newbie Help! TheShadow Javascript 1 March 21st, 2005 03:42 AM
Access behaving badly mega Classic ASP Databases 6 November 17th, 2003 02:27 PM



All times are GMT -4. The time now is 04:56 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.