in a ASP.net C# application
I have a Checkbox with a custom css.
the Css file is:
<link href="css/default.css" rel="stylesheet" type="text/css" />
the check box
<input id="boxcheck" runat="server" type="checkbox" checked="checked" class="customCheckbox" onclick="ChangeSett();"/>
Everything works correctly.
But when I put it inside an update panel. The style is lost when I do a partial postback.
Thanks for any help
I had similar problem.
I solved it moving css
<link ..from the<page>to the<header>.Since I use a MasterPage and I don’t want the link in all pages, I found useful putting a ContentPlaceHolder in the MasterPage’s Header
and then the link inside the desired page: