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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:55:10+00:00 2026-05-11T05:55:10+00:00

I was looking at Blogengine.NET today and he has an interesting setup for Themes,

  • 0

I was looking at Blogengine.NET today and he has an interesting setup for Themes, figured I wanted to do something similar, however.. I can’t make it work at all.

For each theme he has a folder like:

/themes/Indigo/

/themes/Standard/

/themes/Mobile/

Each theme contains a site.master and they all have their own codebehind that looks like this:

public partial class site : System.Web.UI.MasterPage {   protected void Page_Load(object sender, EventArgs e)   {   } } 

Was wondering how he could have one Page_Load for each theme in 3 different places, all beeing partial classes of ‘site’, but I gave it a shot in my VB.NET application and just as I thought it didn’t work

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)  has multiple definitions with identical signatures 

I’m pretty new to this but is there a way to make this work or is it something that just works in C#?

I would like to get different masterpages and usercontrols with something like this:

MasterPageFile = '~/MasterPages/' & Theme & '/Site.master'  uc = LoadControl('~/UserControls/' & Theme & '/Box.ascx') 

Or is there a better way to accomplish this?

Thanks!

  • 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. 2026-05-11T05:55:11+00:00Added an answer on May 11, 2026 at 5:55 am

    Found the solution so I’ll post it here if anyone else is looking for the same thing.

    Multiple identical masterpages works in a .NET Web Site but not in a .NET Web Application. Maybe someone else can explain why, I just know that’s the case.

    So this works in a .NET Web Site:

    Me.MastePageFile = '~/themes/' & Theme & '/site.master' 

    But it won’t work in a .NET Web Applications since there can only be one site.master.

    Makes me wonder if there is another good way to stick with Web Application but still be able to do major theming like WordPress or Blogengine.NET

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

Sidebar

Related Questions

I am just looking at the source code of BlogEngine.Net and was intrigued at
Looking for a open source mature ASP.NET based blog engine which supports themes. I
I'm looking at what is needed to move from wordpress.com to a BlogEngine.NET or
I'm using BlogEngine.NET 2.0 with the boldy theme (can be seen here ). But
Looking for a c# class or similar that can parse or convert wiki-formated text
Looking for a C++ async HTTP library so I can download some zip files
Looking for something like the webkit dev tools for analyzing web pages. Ideally it
looking for windows software who can draw a Use Case diagram like yuml.me anyone
Looking for opinions on if OpenCV could be or has been used to detect
I am looking for a blog engine which has the following features: Should be

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.