i have a fieldset in my asp.net website to make a groupbox look alike.. but its not coming. here's what i am doing :

<fieldset id="fl1" runat="server">
     <legend>My Group</legend>
</fieldset>

screen shot of the page where its not working

only My Group is coming the border isn't coming ... i also used panel but same issue...

i am using ajax toolkit and update panel in this page ...

what should i do?

有帮助吗?

解决方案

The fieldset is visible, it is just the border that isn't. Therefore you, presumably, have a style sheet that is removing the border.

Edit the style sheet so either it doesn't remove the border in the first place, or it adds one in explicitly.

其他提示

You don't have anything in the fieldset so it can't put a border around nothing.

<fieldset id="fl1" runat="server">
    <legend>My Group</legend>
    <!-- Put anything you want to be in the fieldset here. -->
</fieldset>

Asp.net core pages do not seems to support all kind of fieldset elements. It supports but now visible in browsers.

You may use, fieldset like this , As solid reference is supported.

    <fieldset style="border:0.5px solid">

=>>code goes here

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top