473,385 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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>

Nov 17 '05 #1
2 1131

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." <pa**@nospam.fsnet.co.uk> wrote in message news:bg**********@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>


Nov 17 '05 #2
The answer is given here, tried it and it works! Thanks to those who replied
with suggestions.

http://www.experts-exchange.com/Prog...ges/Dot_Net/Q_
20390476.html

Cheers
Paul M.

"Paul M." <pa**@nospam.fsnet.co.uk> wrote in message
news:bg**********@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>

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Cy | last post by:
I've had good luck with posting in the past, so we'll see how things go this time...:) I have an Access 2000 form. On the form is about 40 objects. I want to set everything to invisible,...
0
by: Dirk Fust | last post by:
Hi! I'm writing a little application, where I want to be noticed, when the mouse leaves my window. Because the window has no border, is non-rectangular (drawn vie GDI+) and nearly completly...
7
by: Martin | last post by:
Hi, I have a page where according to the mode of use, different controls are visible. I had assumed that Page.DataBind() would only bind visible controls, but apparently not. Do I have to...
6
by: John | last post by:
Hi Is there a way to open a form hidden/invisible while it is populating its controls, and then make it visible once it is done? I am using the following code but the form remains visible. ...
7
by: kev | last post by:
Hi folks, Hope you guys can help. I have a form"frmSafetyLevel1" in which users will enter data and once they submit, the results will be displayed on "frmSL1Registration". My problem here is i...
0
by: harkon | last post by:
Hi everybody! I'm just wondering what it would take to make the following: I have an invisible C# frame (opacity 0%) topmost placed, with no control boxes and even no border. Therefore this...
69
by: kabradley | last post by:
Alrighty Guys and Gals, I have another question that I hope you all can help me with. I have a report that uses a cross-tab query as its record source. This cross-tab query is getting all of its...
9
by: Mel | last post by:
I have 10 columns total. 3 of them are invisible. The rest are read- only BoundFields, 3 of which are editable fields using TemplateFields. Upon editing, I want to validate what the user enters...
2
by: snow | last post by:
Hi All, I am using VS 2005. I put some controls within a control panel and the control panel is in a tab control page. For some reason, the controls are invisible at design time. when I run the...
0
by: snow | last post by:
Hi All, I have several controls in a tab control page. they are invisible at design time. I don't know what I did wrong to make them disappear, but I know they are there, and they appear at run...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.