473,503 Members | 3,045 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why does asp:panel not have a Text attribute?

I'm curious... asp:Panel renderes a <div> tag, right? And you can have text
in a div tag.... so why not have a Text property for the asp:panel control??

Nov 18 '05 #1
6 1531
It's purpose is that it can be more then just that. It's a container

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"sklett" <as**@fkd.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I'm curious... asp:Panel renderes a <div> tag, right? And you can have text in a div tag.... so why not have a Text property for the asp:panel control??

Nov 18 '05 #2
I'm sure this is an ignorant question.... what would one use a container
for, the most common use you can think of?

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eM**************@TK2MSFTNGP10.phx.gbl...
It's purpose is that it can be more then just that. It's a container

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"sklett" <as**@fkd.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I'm curious... asp:Panel renderes a <div> tag, right? And you can have

text
in a div tag.... so why not have a Text property for the asp:panel

control??



Nov 18 '05 #3
To group other objects together. So if I need to show one group of objects
in one case, and another set in a different case, i can put each set of
objects in their own panel. Then I can make the panel i need to show
visible, and make the other one invisible. So instead of keeping a list of
objects I need to make invisible, and going through each one, I could just
do it all in one line. If I end up adding or deleting objects from either
set, this code would not have to change as I am only changing the Visible
property of the panel.

"sklett" <as**@fkd.com> wrote in message
news:eE**************@TK2MSFTNGP12.phx.gbl...
I'm sure this is an ignorant question.... what would one use a container
for, the most common use you can think of?

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eM**************@TK2MSFTNGP10.phx.gbl...
It's purpose is that it can be more then just that. It's a container

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"sklett" <as**@fkd.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I'm curious... asp:Panel renderes a <div> tag, right? And you can
have text
in a div tag.... so why not have a Text property for the asp:panel

control??




Nov 18 '05 #4
You can put ANYHTING in a <div> tag - that's why.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"sklett" <as**@fkd.com> wrote in message
news:#o**************@TK2MSFTNGP10.phx.gbl...
I'm curious... asp:Panel renderes a <div> tag, right? And you can have text in a div tag.... so why not have a Text property for the asp:panel control??

Nov 18 '05 #5
Cool. Without even realizing it that's what I've done with my
"ProductWizard.aspx" page, hide em all, then show the current step. I see
the value in a panel as a container, but I still don't see why I can't drop
some text in there.

Thanks for the quick response!

"Marina" <so*****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
To group other objects together. So if I need to show one group of objects
in one case, and another set in a different case, i can put each set of
objects in their own panel. Then I can make the panel i need to show
visible, and make the other one invisible. So instead of keeping a list of objects I need to make invisible, and going through each one, I could just
do it all in one line. If I end up adding or deleting objects from either
set, this code would not have to change as I am only changing the Visible
property of the panel.

"sklett" <as**@fkd.com> wrote in message
news:eE**************@TK2MSFTNGP12.phx.gbl...
I'm sure this is an ignorant question.... what would one use a container
for, the most common use you can think of?

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eM**************@TK2MSFTNGP10.phx.gbl...
It's purpose is that it can be more then just that. It's a container

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"sklett" <as**@fkd.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> I'm curious... asp:Panel renderes a <div> tag, right? And you can have text
> in a div tag.... so why not have a Text property for the asp:panel
control??
>
>
>



Nov 18 '05 #6
You can, use an asp:Label in it

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"sklett" <as**@fkd.com> wrote in message
news:uy**************@tk2msftngp13.phx.gbl...
Cool. Without even realizing it that's what I've done with my
"ProductWizard.aspx" page, hide em all, then show the current step. I see
the value in a panel as a container, but I still don't see why I can't drop some text in there.

Thanks for the quick response!

"Marina" <so*****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
To group other objects together. So if I need to show one group of objects in one case, and another set in a different case, i can put each set of
objects in their own panel. Then I can make the panel i need to show
visible, and make the other one invisible. So instead of keeping a list

of
objects I need to make invisible, and going through each one, I could just do it all in one line. If I end up adding or deleting objects from either set, this code would not have to change as I am only changing the Visible property of the panel.

"sklett" <as**@fkd.com> wrote in message
news:eE**************@TK2MSFTNGP12.phx.gbl...
I'm sure this is an ignorant question.... what would one use a container for, the most common use you can think of?

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eM**************@TK2MSFTNGP10.phx.gbl...
> It's purpose is that it can be more then just that. It's a container
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> www.Darkfalz.com
>
>
> "sklett" <as**@fkd.com> wrote in message
> news:%2****************@TK2MSFTNGP10.phx.gbl...
> > I'm curious... asp:Panel renderes a <div> tag, right? And you can

have
> text
> > in a div tag.... so why not have a Text property for the asp:panel
> control??
> >
> >
> >
>
>



Nov 18 '05 #7

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

Similar topics

1
1693
by: Harry | last post by:
Hi, Slight problem in asp.net. (c#) I have a asp:panel page set up, with two different panels both of which contain a form. On the second page the user presses submit and the form details are...
3
1879
by: Harry | last post by:
Hi, Can anyone help. I have a asp.net page (c#), with two panels, both of which have asp:textboxes on. When I press the first button, the second panel shows fine. When I press the button in...
2
6002
by: Mark Rae | last post by:
Hi, Is there any way to use the asp:Panel Web control so that it is always created regardless of its Visible property? E.g. if I write the following: <asp:Panel ID=pnlEvent Runat=server...
1
1941
by: Pietro | last post by:
The asp:Panel tag renders a DIV in IE and TABLE in Firefox, where can i configure it to render DIV in both. Thanks Pietro
0
2634
by: mahaq | last post by:
Hi Guys, I like to know if there is any better solution to this issue. I am a front end developer using CSS and asp.net technologies I have a .net page and I am using an external CSS file....
2
2357
by: Darren Carter | last post by:
Hi, I have mutliple asp:Panel controls on a single page, each with a default button defined (each default button resides within its respective asp:Panel). All validation controls and buttons...
2
2470
by: Nathan Sokalski | last post by:
I have an HTML table in which I am using ASP:Panel controls to group together <tr>'s so that I can more easily show/hide them (by setting the ASP:Panel's Visible property). This works fine, but...
0
1015
by: douglas greenshields | last post by:
Hello all, wondering if you can help! This should be a simple one. I currently have an asp:panel in an .ascx file that renders in Firefox as a table with a width="100%" attribute. (The IE...
6
11235
by: phpmel | last post by:
Hi Guys, I have an asp panel,an associated drag panel extender, a label and an OK button that serves as a message popup. i would like this pop up to show up in the centre of the browser window...
0
7193
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
7264
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
7316
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...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.