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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:27:34+00:00 2026-05-17T22:27:34+00:00

In a typical web framework func viewHomepage() response.write(template.render(a string variable, [an, array])) is a

  • 0

In a typical web framework

func viewHomepage()
    response.write(template.render("a string variable", ["an", "array"]))

is a fairly standard way of calling a templating engine and writing the output out.

Obviously the situation is reversed in ASP.net, since the templating engine sits in front of the code.

I am dealing with a legacy application that can’t be rewritten. It’s basically a 50 line xxx.aspx with a corresponding 20,000 LOC xxx.aspx.cs. What I want to do is write new “views” as separate ASP.net forms and controls and then include them back into the
xxx.aspx.cs.

Essentially instead of doing:

case "newfeature":
{
    Response.Write("<table>");
    ...
    Response.Write("</table>");
}
break;

I want to do

case "newfeature":
    Response.Write(THEFUNCTIONIMLOOKINGFOR("newfeature.aspx"));
break;

That way there’ll be some notion of modularity and it won’t be reminiscent of a perl CGI script.

Show me a path to sanity pretty-please.

  • 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-17T22:27:35+00:00Added an answer on May 17, 2026 at 10:27 pm

    This can be done quite simply by calling the RenderControl method. You just need to pass it an HtmlTextWriter instance.

    The technique is described here: 4GuysFromRolla.com “Emailing the Rendered Output of an ASP.NET Web Control”

    There’s also the MSDN Reference for the RenderControl method.

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

Sidebar

Related Questions

I have a typical web application in Node that is utilizing the Express framework
We have a typical web-based login system. We want customers to have the ability
We are creating typical web applications secured by https. In order to be able
I have typical web application based on PHP, HTML, and javascript. From an HTML
I have a typical Pyramid web application setup. The application directory (I don't know
I believe for a typical MVC web application the router / dispatcher routine is
I have a web app in production that is used for typical data entry,retrieval,
We have 2 server clusters: the first is made up of typical web applications
What is a typical politeness factor for a web crawler? Apart from always obeying
Hi i have a typical requirement in my web application, i have to fill

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.