This is a dumping ground of software development topics that I've run across and found interesting (mainly .NET development). Many topics are covered more thoroughly in other places, and much of the information is gleaned from other places, and I'll try to credit those sources when possible.

Wednesday, August 05, 2009

ASP.NET Panel with empty GroupingText

Using the GroupingText property of an asp:Panel will cause a pretty box to surround a group of controls, but sometimes I want to have that box without the text. I set GroupingText=" " hoping it would be interpreted as no text, but instead you can see the space in the box, which is annoying. Checking out the client side HTML (and MSDN documentation), I found the panel is represented as FIELDSET and LEGEND elements. By replacing the asp:Panel elements with fieldset, and not specifying a legend, I get the caption-free box I want. Note that you may have to put your fieldset in a div to get the style you want, like width. Simple example below:

<asp:Panel runat="server" GroupingText="Group of controls" Width="300px">
A panel using GroupingText="Group of controls"
</asp:Panel>
<br />

<asp:Panel runat="server" GroupingText=" " Width="300px">
A panel using GroupingText=" " (see gap in box above?)
</asp:Panel>
<br />

<div style="width: 300px;">
<fieldset runat="server">
A fieldset to get a solid box with no text.
</fieldset>
</div>

23 comments:

Anonymous said...

Thank you so much, I hated the empty spaces in panel.

Anonymous said...

i appreciate your [url=http://www.thenorthfaceoutletsales.org/womens-north-face-jackets/north-face-women-s-denali-jacket][b]North Face Women's Denali Jacket[/b][/url] [url=http://www.thenorthfaceoutletsales.org/the-north-face-backpacks][b]The North Face Backpacks[/b][/url] thinking within this, I felt a trifle [url=http://www.thenorthfaceoutletsales.org/womens-north-face-jackets/north-face-women-s-denali-jacket][b]North Face Women's Denali Jacket[/b][/url] strike by this text. Hey! Wow, I'm absolutely smitten by these photos! I discovered your blog yesterday while I was supposed [url=http://www.thenorthfaceoutletsales.org/products_all][b]All North Face[/b][/url] to study, I find there are so much good information we can learn in this forum,Many thanks again! [url=http://www.thenorthfaceoutletsales.org/womens-north-face-jackets][b]Womens North Face Jackets[/b][/url] You make a good time. Got some wonderful facts here. Just made this for an afternoon potluck and it was SO good. We finished that cake off in no time flat.

Anonymous said...

The Nike golf shoes have different styles in addition [url=http://www.jordango2013.com/Wholesale-air-jordan-shoes-6_c6]wholesale Air Jordan Shoes 6[/url] to designs and styles are increases each day. You can find some Nike shoes almost equity part of the world at all the [url=http://www.jordango2013.com/Wholesale-air-jordan-shoes-5_c5]wholesale Air Jordan Shoes 5[/url] many different leading distributors. The importance of Nike sneakers [url=http://www.jordango2013.com]wholesale nike jordan[/url] When you are thinking about buying stylish and trendy at the same time comfy running [url=http://www.jordango2013.com/Wholesale-air-jordan-shoes-26_c15]wholesale Air Jordan Shoes 26[/url] shoes the [url=http://www.jordango2013.com]wholesale nike jordan[/url] Nike sneakers typically surely the best

Anonymous said...

the broader services of the [url=http://www.ddtshanghaiescort.com]escorts shanghai[/url] mechanical man arm Toe the use of software or a alteration in the annex, the puppet arm can be hands down re-assembled

Anonymous said...

Whοa! This blog loоks eхаctly lіkе
my old one! It's on a entirely different subject but it has pretty much the same page layout and design. Great choice of colors!

my web site: minimalist running shoes

Anonymous said...

Howdy! I could have sworn I've been to this site before but after checking through some of the post I realized it's new to me.
Nonetheless, I'm definitely delighted I found it and I'll be bookmarking and checking back frequently!


My web page huggies diaper coupons printable

Anonymous said...

Whoa! Thiѕ blog loоks exaсtly liκe my
old one! It's on a completely different subject but it has pretty much the same page layout and design. Superb choice of colors!

Also visit my homepage: Electronic Cigarette Brands

Anonymous said...

Hello! I know this is kinda off topic but I'd figured I'd ask.
Would you be interested in exchanging links or maybe guest authoring
a blog post or vice-versa? My blog addresses a
lot of the same topics as yours and I feel we could greatly benefit
from each other. If you are interested feel free to shoot me an email.
I look forward to hearing from you! Awesome blog
by the way!

Take a look at my web-site ... camouflage cargo pants women

Anonymous said...

Hi there! I know this is somewhat off topic but I was wondering
if you knew where I could get a captcha plugin for my
comment form? I'm using the same blog platform as yours and I'm having trouble finding one?

Thanks a lot!

my web page - Garnier Dark Spot Corrector

Anonymous said...

I'm really enjoying the design and layout of your blog. It's a very
easy on the eyes which makes it much more pleasant for me to come
here and visit more often. Did you hire out a developer to create your theme?
Exceptional work!

Also visit my blog: cummins For sale

Anonymous said...

With haνin so much content and articles do you еver run into anу
ρroblems оf plagorism or cоρyright violation?
Μy blog haѕ а lot оf еxcluѕive content Ӏ've either written myself or outsourced but it seems a lot of it is popping it up all over the internet without my agreement. Do you know any solutions to help prevent content from being stolen? I'd
certainlу aρρreciate it.

my wеb-site :: www.sexcenter.net
my web site - Electronic Cigarettes Kit

Anonymous said...

Write more, thats all I have to say. Literally, it seems as
though you relied on the video to make your point.
You definitely know what youre talking about,
why waste your intelligence on just posting videos to your site when
you could be giving us something informative to read?


Feel free to visit my weblog ... dickies cargo pants

Anonymous said...

I am curious to find out what blog platform you happen to
be using? I'm having some small security issues with my latest blog and I'd
like to find something more risk-free. Do you have any solutions?


Also visit my web-site - vera wang lavender shoes
my web site > white by vera wang shoes

Anonymous said...

Have you ever considered creating an e-book or guest authoring on other websites?
I have a blog centered on the same topics you discuss and would love to have
you share some stories/information. I know my readers would appreciate your work.
If you are even remotely interested, feel free to shoot me an email.



Feel free to surf to my web-site; Hawaii Green tea

Anonymous said...

Please let me know if you're looking for a author for your site. You have some really good articles and I believe I would be a good asset. If you ever want to take some of the load off, I'd absolutely
love to write some material for your blog in exchange for a link
back to mine. Please blast me an e-mail if interested.
Many thanks!

Feel free to visit my homepage ... New Methadone

Anonymous said...

Hello! I know this is kinda off topic but I was wondering if
you knew where I could locate a captcha plugin for my comment form?
I'm using the same blog platform as yours and I'm having trouble finding one?
Thanks a lot!

my page: 7th grade math textbook

Anonymous said...

Write more, thats all I have to say. Literally, it seems as though you
relied on the video to make your point. You clearly know what youre talking about,
why throw away your intelligence on just posting videos to your site
when you could be giving us something informative to read?

Here is my web blog: catering austin

Anonymous said...

Wow that was odd. I just wrote an extremely long comment but after I clicked submit my comment didn't appear. Grrrr... well I'm not writing all that over
again. Regardless, just wanted to say excellent blog!


my homepage; Green Diet Tea

Anonymous said...

Hey! I know this is sort of off-topic however I needed to ask.
Does running a well-established website such as yours take a large
amount of work? I am brand new to operating a blog however I do write in my journal every day.
I'd like to start a blog so I can share my experience and thoughts online.
Please let me know if you have any kind of recommendations or
tips for new aspiring blog owners. Thankyou!

Feel free to surf to my web-site :: http://bestwoocommercethemes.blogspot.com

Anonymous said...

I'm truly enjoying the design and layout of your website.
It's a very easy on the eyes which makes it
much more pleasant for me to come here and visit more often. Did you hire out
a designer to create your theme? Superb work!

My web page: đồ chơi xe hơi

Anonymous said...

Oh my goodness! Impressive article dude! Thank you, However I am having issues with your RSS.
I don't understand the reason why I am unable
to join it. Is there anybody else having similar RSS issues?
Anyone that knows the solution can you kindly respond?
Thanx!!

Feel free to surf to my blog :: Hair Fashion Studio Langley BC

Mithun Mithun said...

It is really a great work and the way in which u r sharing the knowledge is excellent.
Thanks for helping me to understand basic concepts. As a beginner in Dot Net programming your post help me a lot.Thanks for your informative article.. dot net training and placement in chennai | best dot net training in chennai

Pavithra M said...

Given so much information in it. its very useful .perfect explanation about Dot net framework.Thanks for your valuable information. dot net training in chennai velachery | dot net training institute in velachery

Followers