开发者

How to remove the Border of a UpdatePanel?

开发者 https://www.devze.com 2022-12-17 17:05 出处:网络
I can\'t able to remove the border开发者_运维知识库 of the Update panel. It does not support style property.You could have some CSS that\'s affecting <div> elements on the page, but without see

I can't able to remove the border开发者_运维知识库 of the Update panel. It does not support style property.


You could have some CSS that's affecting <div> elements on the page, but without seeing your code it's awfully hard to help.


This might be due to the CSS you are using, you can try to remove the style for <div> generated from update panel through JavaScript.

document.getElementById("<%=UpdatePanel.ClientID %>").style = "";


The UpdatePanel control in ASP.NET 4 has been improved to support setting its style through an expando:

<asp:UpdatePanel runat="server" style="whatever" />

Of course, this doesn't help if you're using a previous version of ASP.NET.

Either way it looks like you found the answer!


U have to use style in fieldset like

<asp:UpdatePanel ID="UpdatePanel2" runat="server"> 
          <ContentTemplate> 
              <fieldset style="border:none" >


Update Panel dosent have any border property, it all the feildset border which is to be set to fieldset style = "border:none", if you dont like


You have to change div tag as below-

<div style="height: 300px; width:650px; overflow-y: auto; border:dotted 1px black;">
<asp:UpdatePanel tag>    
</div>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号