Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

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

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
ianinn
Asked:
ianinn
  • 2
  • 2
1 Solution
 
heskyttbergCommented:
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
 
ianinnAuthor Commented:
I have tried mapping a shared dir as a drive letter or \\computername\conference but it does not work.
0
 
heskyttbergCommented:
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
 
ianinnAuthor Commented:
It is ok now. I have used another machine with IIS and it is working as expected.
Thanks for the help.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now