A way to #INCLUDE in C#.NET?

  • Thread starter Thread starter Gee
  • Start date Start date
G

Gee

Hi all,

I'm looking for the best method to adopt as a replacement to using
#INCLUDE.

Currently, I have one page with a PANEL that changes the content of the
panel (to another web page) depending on what menu option the user has
selected.

The way I do this currently is with a line of code in the HTML of the
page within the main PANEL:
<%Server.Transfer(DisplayPage());%>

The function DisplayPage() simply returns the physical page location of
the page to load into the panel from an item set in the
Request.QueryString().

I really simply want to INCLUDE the page, rather than transfer control
to another page, so is there another way instead of Server.Transfer or
Response.Redirect?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top