Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ASP.NET (C#) Server.Execute Problem

Thread Tools

ASP.NET (C#) Server.Execute Problem

The One of Need
Posts: n/a
This newsgroup is tapped so I must be brief. When
using VB and ASP 3.0, I did the clever dynamic include
method of using "Server.Execute", but switching to
ASP.NET and C#, it does a myriad of things I generally
don't want it to do. The variables I put in it sometimes
are looked as null, or looks at it as a pass to ASP,
(Response.Redirect isn't exactly what I want) so I'm just
generally screwed. Here's basically what I'm trying to

// This is where I want the content to be loaded.
string conAct = Request["content"];
if ( conAct != "" )
if ( Request["content"] == "" )

// This is how the variable 'content' is loaded when a
link is clicked.
<a href="index.aspx?content=<% Response.Write
(Request.ServerVariables["SERVER_HOST"]); %

Reply With Quote
Aaron Bertrand [MVP]
Posts: n/a
> This newsgroup is tapped so I must be brief.

This newsgroup is the wrong newsgroup, so you should go to a more
appropriate one. For example,


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem problem problem :( Need Help Mike ASP General 2 05-11-2004 08:36 AM