?
Solved

Cannot run asp code on a redirected page, display only html

Posted on 2003-03-10
6
Medium Priority
?
231 Views
Last Modified: 2010-04-20
I have a web-based application written in asp code on a Win NT machine running IIS. I have also created a virtual directory on a NT PDC. The asp code running on IIS will redirect the page to the virtual directory on the PDC, but on redirection, it stripped off the asp code and only display the HTML, i.e. the asp code has completely no effect on the displayed page. Any help will be appreciated.
0
Comment
Question by:ianinn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 8

Expert Comment

by:heskyttberg
ID: 8110152
Hi!

Could you please explain your setup ?

Are the Win NT machine a server with IIS that maps a shared directory from a PDC to a drive letter on which you create a virtual directory ?

That's the behaviour of ASP it shouldn't be seen on client computer only HTML.

If you have a META REFRESH TAG at top of ASP page the redirection will take place, but nothing in the first called ASP will follow with the redirection ?

You will need a new ASP file in the virtual dir to which you redirect ?

I might be missing something here, but please explain how your setup really looks.

Regards
/Hans - Erik Skyttberg
0
 

Author Comment

by:ianinn
ID: 8110330
I have tried mapping a shared dir as a drive letter or \\computername\conference but it does not work.
0
 
LVL 8

Accepted Solution

by:
heskyttberg earned 300 total points
ID: 8112400
Hi!

A shared dir on any computer isn't called virtual dir.
Virtual dir is something you setup in IIS, which points to a physical dir on HD also called alias.

In order to map a shared dir from a PDC you need one of two things.
1. * Add the NT workstation to the domain.
   * Create an account in the domain.
   * Give everyone full rights to the share on the PDC.
   * Give the group Domain Users at leas READ rights on
     the directory that is shared.
   * Login to the domain on the workstation using, the
     new user you created with the password you used.
   * Now start explorer and press map drive.
   * Choose drive letter, and either browse to the share
     or write it in as follows:
     \\PDCComputerName\sharename not dir name.

2. * Create a user on the PDC.
   * Make sure thw workstation is part of a workgroup
     which has same name as the domain.
   * Create a user on workstation with same username as
     in domain, also make both accounts have same
     password.
   * Give everyone full rights to the share on the PDC.
   * Give the group Domain Users at leas READ rights on
     the directory that is shared.
   * Login on the workstation with the user you just
     created.
   * Now start explorer and press map drive.
   * Choose drive letter, and either browse to the share
     or write it in as follows:
     \\PDCComputerName\sharename not dir name.

This has nothing to do with ASP or IIS, that part was just abit confusing, if this is not an answer you need to explain more exactly what you are trying to do.

Regards
/Hans - Erik Skyttberg
0
 

Author Comment

by:ianinn
ID: 8126001
It is ok now. I have used another machine with IIS and it is working as expected.
Thanks for the help.
0

Featured Post

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question