Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7706197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:03:48+00:00 2026-06-01T00:03:48+00:00

in a ASP.net C# application I have a Checkbox with a custom css. the

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:03:50+00:00Added an answer on June 1, 2026 at 12:03 am

    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

    <head id="Head1" runat="server">
      ...
      <asp:ContentPlaceHolder ID="HeaderContentPlaceHolder" runat="server"/>
    </head>
    

    and then the link inside the desired page:

    <asp:Content ID="Content2" ContentPlaceHolderID="HeaderContentPlaceHolder"       Runat="Server">
        <link rel="stylesheet" type="text/css" href="CSS/my.css" />
    </asp:Content> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my ASP.NET application I have a web.config file. In the web.config file I
In my ASP .NET MVC application i have a link that refreshes the preview
In my ASP.Net application I have a requirement that when a user clicks on
In my ASP.NET application I have separate projects for the Data, Business and UI
My SSRS report fetches data from my DATAWAREHOUSE. The ASP.NET application I have is
in a ASP.NET application (MVC) I have a foreach loop that loops through a
I have an ASP.NET application where i have more than 100 pages.In each pages
I have a lot of data-entryists using my ASP.NET application and we have all
I'm designing a Data Access layer for an C#/ASP.net application and I have a
Greetings, in my asp.net mvc application I have a listbox rendered as follows: <%=

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.