Ask a Question related to ASP.NET General, Design and Development.
-
Paul M. #1
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> </h3>
<H3>
<asp:RadioButton id="Radio2" Text="Compact" GroupName="RadioGroup1"
runat="server" /><br>
TEST PAGE.</i>
</H3>
<form runat="server" ID="Form1">
<p> </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
-
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. ... -
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()... -
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... -
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... -
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... -
carlos medina #2
Re: Invisible controls problem
put the radiobuttonlist control inside the <form runat=server> tag:
<body>
<form runat="server" ID="Form1">
<h3> </h3>
<H3>
<asp:RadioButton id="Radio2" Text="Compact" GroupName="RadioGroup1"
runat="server" /><br>
TEST PAGE.</i>
</H3>
<p> </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> </h3>
> <H3>
> <asp:RadioButton id="Radio2" Text="Compact" GroupName="RadioGroup1"
> runat="server" /><br>
> TEST PAGE.</i>
> </H3>
> <form runat="server" ID="Form1">
> <p> </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
-
Paul M. #3
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...text,> Hi,
> I am trying to create a simple asp .net page that has some plainBelow> 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!!!> 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> </h3>
> <H3>
> <asp:RadioButton id="Radio2" Text="Compact" GroupName="RadioGroup1"
> runat="server" /><br>
> TEST PAGE.</i>
> </H3>
> <form runat="server" ID="Form1">
> <p> </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



Reply With Quote

