Results 1 to 3 of 3

Thread: BUTTON control does not appear in browser

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    3

    BUTTON control does not appear in browser

    I have been trying my first VB.NET program by using the example "Creating a Basic Web Forms Page" described in VB.Net Help.

    My problem is that the BUTTON web server control that I add from the Web Forms tab of the toolbox does not appear in the browser. (LABEL and TEXTBOX for example is visible)

    The HTML code of the button is:
    <asp:button id="Button1" runat="server" Text="Button" Width="283px" Height="32px"></asp:button>

    I also tried other examples with e.g. CALENDER control which also does not appear in the browser.
    I am running IIS version 5.0
    Did I miss something in the configuration of my IIS to "support" VB.NET and aspx-files?

    Thanx in advance for any help,
    Danny

  2. #2
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    Its rather difficult to troubleshoot to the root of your problem with the limited details just given

    Maybe, you can post your code here so that ppl here can have a better look
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    3
    I have also installed Visual Basic.Net on two different workstations - but the problem still remains. Could my IIS 5.0 configuration be the problem??
    Here is the full code of my example - as you see nothing more than one BUTTON from the Web Forms Toolbar. I started the program with the "build and browse" command.

    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="Vienna.WebForm1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <title>WebForm1</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:Button id="Button1" style="Z-INDEX: 101; LEFT: 227px; POSITION: absolute; TOP: 61px" runat="server" Text="Button" Width="265px" Height="40px" ForeColor="#C00000" BorderColor="Blue" BackColor="#C0C0FF"></asp:Button>
    </form>
    </body>
    </HTML>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width