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

  • Home
  • SEARCH
  • 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 4608536
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:51:32+00:00 2026-05-22T00:51:32+00:00

The project I am working on was a project that was originally WebForms and

  • 0

The project I am working on was a project that was originally WebForms and later migrated to Asp.Net MVC. 3 pages are still using Webforms and it’s not worth the effort to rewrite them.

To prevent having to maintain two separate master pages that look identical I have two master pages, MVC.Master and Webforms.Master. Webforms.Master has MVC.Master set as its master page, so that whenever I add a new tool link to my menu it always shows no matter if the user is looking at a Webforms or MVC page. The Webforms.Master has nothing but an ajaxToolkit Script manager on it.

Everything has been working fine until now, where I am adding Telerik support. The problem is that you cannot use Html helpers in WebForm pages, as you get the exception A ViewMasterPage can be used only with content pages that derive from ViewPage or ViewPage<TModel>.

Since I do not care if Telerik’s script and stylesheet registrars are run for Webform pages, I ideally would like to do something like

<% if (!PageIsWebforms) 
   {
       Html.Telerik().....
   }
%>

Unfortunately, I can’t think of a good way to successfully determine if the inner page is a WebForms page or not. Does anyone have any ideas how I can accomplish this?

  • 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-22T00:51:33+00:00Added an answer on May 22, 2026 at 12:51 am

    MVC pages inherit something other than System.Web.UI.Page, could you test Page is System.Web.MVC.ViewPage.
    You could make that a property to make the markup easier.

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

Sidebar

Related Questions

I am working with an ASP.NET MVC project which was originally started from the
I am working a project that does not have a trunk / branches /
I am working on a project that was originally created by someone else, they
(This is cross-posted to the ASP.NET forms) I'm working on the WebGit .NET project,
I have a project I'm working on that requires our WPF application read SMS
I'm working on project that lets users choose some scientific authors and columnists and
I have project that I'm working on that is going to require a webserver.
The project I am working on has a rich text box that can have
The Project I'm working on a relatively simple iPhone OS project that's navigation controller
I have a small project that I will be working on shortly that collects

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.