Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add a css class to an updatepanel in ASP.Net?

Tags:

c#

css

asp.net

How can I add a css class to an updatepanel in the c# code behind file of asp.net

like image 800
ErnieStings Avatar asked Jul 29 '09 19:07

ErnieStings


People also ask

How does UpdatePanel work in asp net?

UpdatePanel controls are a central part of AJAX functionality in ASP.NET. They are used with the ScriptManager control to enable partial-page rendering. Partial-page rendering reduces the need for synchronous postbacks and complete page updates when only part of the page has to be updated.

Can we use multiple UpdatePanel in asp net?

By using multiple UpdatePanel controls on a page, you can incrementally update regions of the page separately or together. For more information about partial-page updates, see Partial-Page Rendering Overview and Introduction to the UpdatePanel Control.


1 Answers

you can use single class html attribute

 <asp:UpdatePanel ID="UpdatePanel1" runat="server" class="MyCssClass">  </asp:UpdatePanel> 
like image 191
Milox Avatar answered Sep 17 '22 14:09

Milox