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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:55:19+00:00 2026-05-14T18:55:19+00:00

I know why runat=server is currently required ( ASP.NET why runat=server ), but the

  • 0

I know why runat=”server” is currently required (ASP.NET why runat=”server”), but the consensus is that it should not be required if you incorporate a simple default into the design (I agree of course).

Would it be possible to modify, extend, decompile and recreate, intercept or otherwise change the behavior of how ASP.NET parses ASPX and ASCX files so that runat=”server” would no longer be required? For instance, I assume that a version of Mono could be branched to accomplish this goal.

In case specific requirements are helpful, the following highlights one design:

  • During parsing, when configured namespace tags are encountered (such as “asp”), default the element’s runat property to “server”
  • During parsing, when configured namespace tags are encountered (such as “asp”), if the element’s runat property value is available, then that value should be used in place of the default
  • New page-level setting introduced (can be set in the page directive or web.config) that specifies the default runat value for a specific namespace tag
  • 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-14T18:55:20+00:00Added an answer on May 14, 2026 at 6:55 pm

    I’m afraid you’d have to modify the entire page parser to accomplish this, and I don’t think that’s possible.

    On the other hand, you should be able to create your own. See the buildProviders Element and the BuildProvider class. You should be able to create your own build provider for .aspx pages and use it to replace the built-in provider.

    Unfortunately, the PageBuildProvider class used by ASP.NET is internal, and the PageParser class that it uses to parse pages is sealed. You’ll be entirely on your own.

    Consider that runat="server" has been in ASP.NET for a decade now, and I think you’ll see that this won’t change anytime soon.

    You’d also lose Designer support, but maybe you don’t care about that.

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

Sidebar

Related Questions

<Me:FunctionalParFractal runat="server" ID="stockNextDayProg" MinZ=" I LIKE TO BUT it dynamicly" /> I know that
I'm currently working on an ASP.NET 3.5 project, and I wanted to know your
I'm currently working on a project I've just received that is asp.net + vb.
Currently I have this.. which works fine <asp:ImageButton ID=ImageButton1 runat=server Width=80 Height=60 ImageUrl='<%# Bind(ImageUrl)
I currently have an ASP.NET GridView that displays a few columns to the user
I know you can not set a key value dynamically, but what about the
I know that Phonegap has an event for back button, but it's only available
I know that this sort of question has been asked here before, but still
I know there are lots of tools on the net that can make our
OK, I know how to call a simple old fashion asmx webservice webthod that

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.