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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:59:26+00:00 2026-06-13T21:59:26+00:00

I am exploring possible implementation of roslyn framework as a dynamic code generator for

  • 0

I am exploring possible implementation of roslyn framework as a dynamic code generator for asp.net . So far, it looks amazing. At the moment I am stuck at generating code behind implementation for asp.net page (web application). I have managed to create an assembly, which contains both page.design.cs and page.aspx.cs code, but I do not know how to link the result to the existing .aspx page (this scenario worked well when I set the code behind in (one) separate class within my project, and in Inherit attribute I set the namespace.class_name to it). I have changed the Inhertit attribute to point to class, which is the result of the roslyn code generation. However, this does not seem to work, since (I guess) the .aspx page is expecting code behind instance to be available at compile time, but I am trying to supply this definition at runtime.

Is there any way I can trick the .aspx to think that it has code behind definition, which I can supply at runtime, and how can I link my custom code behind class with .aspx page?

Best regards.

  • 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-13T21:59:27+00:00Added an answer on June 13, 2026 at 9:59 pm

    After doing a small research on similar possibilities in ASP.NET, it seems that it is much easier to perform this task with MVC controllers and views, rather than messing with code behind classes of plain ASP.NET. Here is an interesting link on this subject, which turns out to be an answer to my question. If someone has an suggestion regarding ASP.NET, I will be more than happy to hear it.

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

Sidebar

Related Questions

I'm exploring the possibilities of the ASP.net Webpages 2 with Razor, and trying to
Has anyone tried using ASP.NET MVC's WebForms view engine to do code generaiton? I
I've been exploring ways that it might be possible to promote the business of
Here's a scenario I'm exploring for a plugin framework: A third party plugin developer
We're exploring the Restler framework. What we need is a custom route like: [host]/:sessionid/{class}/{method}?param1=x&param2=y
I am building an application in ASP.NET MVC 3 in which I have implemented
I'm new to Extension Methods and exploring what they can do. Is it possible
We've recently hired a design/ui/accessibility guy to give our asp.net MVC app a coat
Last time I'm exploring PHP pretty much and I was curious if it's possible
It looks like it is possible using a custom module with a menu callback,

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.