Invisible controls problem

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Invisible controls problem

    Hi,
    I am trying to create a simple asp .net page that has some plain text,
    a button and a label on it. However the plain text shows when I build &
    browse it but the button and label dont, what on earth is going on!!! Below
    is the page html / code.

    My eternal gratitude to anyone who can sort this out!!

    Cheers
    Paul M.
    --------------------------------------------------------------
    <html>
    <head>
    <script language="VB" runat="server">

    Sub SubmitBtn_Click(sender As Object, e As EventArgs)

    If Radio2.Checked Then
    Label1.Text = "You selected " & Radio2.Text
    End If

    End Sub

    </script>
    </head>
    <body>
    <h3>&nbsp;</h3>
    <H3>
    <asp:RadioButton id="Radio2" Text="Compact" GroupName="RadioGroup1"
    runat="server" /><br>
    TEST PAGE.</i>
    </H3>
    <form runat="server" ID="Form1">
    <p>&nbsp;</p>
    <P></P>
    <asp:button text="Submit" OnClick="SubmitBtn_Click" runat="server"
    ID="Button1" />
    <asp:Label id="Label1" font-bold="true" runat="server" />
    </form>
    </P>
    </body>
    </html>



    Paul M. Guest

  2. Similar Questions and Discussions

    1. Possible problem using too many user controls
      Hello Is there any performance problem when you use too many user controls? I would like to know pros and cons about using user controls. ...
    2. Problem Adding Controls
      Hello, I seem to be having a problem loading a div tag with a control. here is what I am doing: Dim oObjCheckBox As CheckBox = New CheckBox()...
    3. User controls problem.
      Hi, Im starting to do the navigation of a portal, and for it, im using usercontrols.... Actually i have a user control in the top of the page...
    4. Controls Problem
      Hi, I have a question. I have created an application using VS.NET and the application runs fine on IE, (I mean all the image buttons, textboxes...
    5. Strange behavior of invisible controls
      Hello: I'm updating multiple rows in the datagrid, using the routine described in the article "Top Questions about the DataGrid Web Server...
  3. #2

    Default Re: Invisible controls problem


    put the radiobuttonlist control inside the <form runat=server> tag:


    <body>
    <form runat="server" ID="Form1">
    <h3>&nbsp;</h3>
    <H3>
    <asp:RadioButton id="Radio2" Text="Compact" GroupName="RadioGroup1"
    runat="server" /><br>
    TEST PAGE.</i>
    </H3>
    <p>&nbsp;</p>
    <P></P>
    <asp:button text="Submit" OnClick="SubmitBtn_Click" runat="server"
    ID="Button1" />
    <asp:Label id="Label1" font-bold="true" runat="server" />
    </form>
    </P>
    </body>


    "Paul M." <paul@nospam.fsnet.co.uk> wrote in message news:bgihhe$6fd$1@newsg1.svr.pol.co.uk...
    > Hi,
    > I am trying to create a simple asp .net page that has some plain text,
    > a button and a label on it. However the plain text shows when I build &
    > browse it but the button and label dont, what on earth is going on!!! Below
    > is the page html / code.
    >
    > My eternal gratitude to anyone who can sort this out!!
    >
    > Cheers
    > Paul M.
    > --------------------------------------------------------------
    > <html>
    > <head>
    > <script language="VB" runat="server">
    >
    > Sub SubmitBtn_Click(sender As Object, e As EventArgs)
    >
    > If Radio2.Checked Then
    > Label1.Text = "You selected " & Radio2.Text
    > End If
    >
    > End Sub
    >
    > </script>
    > </head>
    > <body>
    > <h3>&nbsp;</h3>
    > <H3>
    > <asp:RadioButton id="Radio2" Text="Compact" GroupName="RadioGroup1"
    > runat="server" /><br>
    > TEST PAGE.</i>
    > </H3>
    > <form runat="server" ID="Form1">
    > <p>&nbsp;</p>
    > <P></P>
    > <asp:button text="Submit" OnClick="SubmitBtn_Click" runat="server"
    > ID="Button1" />
    > <asp:Label id="Label1" font-bold="true" runat="server" />
    > </form>
    > </P>
    > </body>
    > </html>
    >
    >
    >
    carlos medina Guest

  4. #3

    Default Re: Invisible controls problem

    The answer is given here, tried it and it works! Thanks to those who replied
    with suggestions.

    [url]http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_[/url]
    20390476.html

    Cheers
    Paul M.

    "Paul M." <paul@nospam.fsnet.co.uk> wrote in message
    news:bgihhe$6fd$1@newsg1.svr.pol.co.uk...
    > Hi,
    > I am trying to create a simple asp .net page that has some plain
    text,
    > a button and a label on it. However the plain text shows when I build &
    > browse it but the button and label dont, what on earth is going on!!!
    Below
    > is the page html / code.
    >
    > My eternal gratitude to anyone who can sort this out!!
    >
    > Cheers
    > Paul M.
    > --------------------------------------------------------------
    > <html>
    > <head>
    > <script language="VB" runat="server">
    >
    > Sub SubmitBtn_Click(sender As Object, e As EventArgs)
    >
    > If Radio2.Checked Then
    > Label1.Text = "You selected " & Radio2.Text
    > End If
    >
    > End Sub
    >
    > </script>
    > </head>
    > <body>
    > <h3>&nbsp;</h3>
    > <H3>
    > <asp:RadioButton id="Radio2" Text="Compact" GroupName="RadioGroup1"
    > runat="server" /><br>
    > TEST PAGE.</i>
    > </H3>
    > <form runat="server" ID="Form1">
    > <p>&nbsp;</p>
    > <P></P>
    > <asp:button text="Submit" OnClick="SubmitBtn_Click" runat="server"
    > ID="Button1" />
    > <asp:Label id="Label1" font-bold="true" runat="server" />
    > </form>
    > </P>
    > </body>
    > </html>
    >
    >
    >

    Paul M. Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139