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 576067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:00:28+00:00 2026-05-13T14:00:28+00:00

I have a partial view ( Partial.ascx ), two master pages( Master1.Master and Master2.Master

  • 0

I have a partial view (Partial.ascx), two master pages(Master1.Master and Master2.Master) and two Views(Page1.aspx and Page2.aspx) in my asp.net mvc (C#) application. I have referred different style sheet for each master page.

When i show the partial view (Partial.ascx) as thickbox in View(Page1.aspx) whose Master page is Master1.Master, i need to overwrite the styles of elements inside the thickbox with style sheet referring to Master2.Master, without affecting the styles of the Page1.aspx elements.

I have tried like:

$("link[href*='style1.css']").remove();

But the problem with this query is it reflects in Page1.aspx View, which when i close the thickbox or in the shadow view of the page, the styles of that page are vanished.

How can overwrite the style sheet of elements inside a thickbox using jquery without affecting the main View elements?

  • 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-05-13T14:00:29+00:00Added an answer on May 13, 2026 at 2:00 pm

    Have you tried only removing styles that are within the thickbox it’s self? Something like this where #thickbox is the ID of the thickbox.

    $("link[href*='style1.css']", '#thickbox').remove();

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on ASP.NET MVC3. I have a partial view RestaurantAdminNavigation.ascx which i
I Have 2 views. ProductForm.aspx and Category.ascx. CategoryForm is a Partial View. I Call
We have old ASP.NET Forms pages and new MVC views and partial views in
I have a partial view (UserControl) that implements a simple pager in my Asp.Net
Inside the Views -> Shared folder I have the DateTime.ascx partial view; <%@ Control
I have a view that calls on four different partial views (.ascx) to populate
I have two partial view and I want to call one of them in
I have a partial view that is shared between two controllers and I'm trying
I have ascx partial view with html-layout like that <%=Html.ActionLink<PersonController>(x => x.Publications(param1, param2, ...
I have 4-5 partial view files (.ascx) like abc.ascx, cde.ascx, fgh.ascx. I want to

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.