将不存在的IIS目录传递给ASP参数 [英] Passing non existing IIS directory to ASP parameter

查看:63
本文介绍了将不存在的IIS目录传递给ASP参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好,


我有一个网站,其中7个页面一次又一次地重复数千个文件夹。为什么?因为我想保留用户视图,漂亮的

url www.myweb.com/username/pageX.asp


你可以想象,这会使维护变得困难,因为当我制作

一些更新,我必须运行一个程序将更改传播到

xthousands目录。


解决方案是更改网址
www.myweb.com/pageX.asp?u =用户名,但网址不会那么容易

记住,可能它不会喜欢我们的用户。


我的问题是,在哪种方式可以模拟这最后的行为,但是

维持漂亮的行为。网址,不仅用于访问,而且在

导航期间。诀窍是抓住不存在的目录名

并将其作为参数传递给所需的页面。


我已经向很多人询问了这个问题,并且没人能帮忙。我会

感谢有人帮我这个。


提前致谢,

Nungon。

解决方案



" nungon" < NU **** @ gmail.com>在消息中写道

news:11 ********************** @ g44g2000cwa.googlegr oups.com ...

早上好,

我有一个网站,其中7个页面一次又一次地重复数千个文件夹。为什么?因为我想在用户视图中保留漂亮的网址 www.myweb.com/username/pageX.asp

你可以想象,这会使维护变得困难,因为当我进行一些更新时,我必须运行一个程序将更改传播到数千个目录。

解决方案是将URL更改为
www.myweb.com/pageX.asp?u=username 但网址不会那么容易记住,可能它不会喜欢我们的用户。

我的问题是,我可以通过哪种方式模拟最后的行为,但是保持漂亮的行为。网址,不仅用于访问,还包括
导航期间。诀窍是捕获不存在的目录名称
并将其作为参数传递给所需的页面。

我已经向很多人询问过这个问题,没有人可以提供帮助。我会感谢你们中的某些人可以帮助我。

提前致谢,Nungon。




如果我理解正确的话......


将每个用户的页面设置为Server.Transfer to a common page

系统中的其他地方...对公共页面的更改将在每个用户的页面中自动反映




Chris


< blockquote>谢谢Chris。

这个howerver并没有解决问题,因为我将不得不保留
xthousands目录。

我想要摆脱它们,只是模拟它们存在。

此外,使用该解决方案,用户将看不到漂亮。 url

导航期间。


Rgds ... Nungon。




" nungon" < NU **** @ gmail.com>在消息中写道

news:11 ********************* @ g44g2000cwa.googlegro ups.com ...

谢谢Chris。
这个,howerver,并没有解决问题,因为我将不得不保留xthousands目录。
我想摆脱它们,只是模拟它它们存在。
此外,使用该解决方案,用户将看不到漂亮。 url
导航过程中。

Rgds ... Nungon。




使用Apache,您可以使用Mod_Rewrite来翻译' '漂亮''URL到

实用网址。没有直接的等价物,但有第三方ISAPI

过滤器会做同样的事情,但很明显你将不得不支付这些......

例如...

www.mydomain.com/user/page.asp 转换为
www.mydomain.com/commonpage.asp?username=user ...

http://www.iistoolshed.com /tools.aspx

Chris


Good morning,

I have a web site in which 7 pages repeat once and again in thousands
of folders. Why? because I want to keep, to the user view, the pretty
url www.myweb.com/username/pageX.asp.

As you can imagine, this makes maintenance hard, because when I make
some update, I have to run a program to spread the change to the
xthousands directories.

A solution would be to change the url to
www.myweb.com/pageX.asp?u=username but the url wont be so easy to
remember, and probably it will not like our users.

My question is, in which way can I simulate this last behaviour, but
maintaining the "pretty" url, not only for accessing, but during the
navigation. The trick would be to catch the inexisting directory name
and pass it to the desired page as a parameter.

I have asked many people about that, and nobody can help. I would
appreciate someone of you can help me with this.

Thanks in advance,
Nungon.

解决方案


"nungon" <nu****@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...

Good morning,

I have a web site in which 7 pages repeat once and again in thousands
of folders. Why? because I want to keep, to the user view, the pretty
url www.myweb.com/username/pageX.asp.

As you can imagine, this makes maintenance hard, because when I make
some update, I have to run a program to spread the change to the
xthousands directories.

A solution would be to change the url to
www.myweb.com/pageX.asp?u=username but the url wont be so easy to
remember, and probably it will not like our users.

My question is, in which way can I simulate this last behaviour, but
maintaining the "pretty" url, not only for accessing, but during the
navigation. The trick would be to catch the inexisting directory name
and pass it to the desired page as a parameter.

I have asked many people about that, and nobody can help. I would
appreciate someone of you can help me with this.

Thanks in advance,
Nungon.



If I understand you correctly...

Set the page for each user to simply Server.Transfer to a common page
elsewhere in the system... Changes to the common page will be reflected
automatically in the pages for each user.

Chris


Thanks Chris.
This, howerver, does not solve the problem, since I will had to keep
the xthousands directories.
I want to get rid of them, and just simulate that they exist.
Moreover, with that solution, the user will not see the "pretty" url
during the navigation.

Rgds...Nungon.



"nungon" <nu****@gmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...

Thanks Chris.
This, howerver, does not solve the problem, since I will had to keep
the xthousands directories.
I want to get rid of them, and just simulate that they exist.
Moreover, with that solution, the user will not see the "pretty" url
during the navigation.

Rgds...Nungon.



With Apache, you can use Mod_Rewrite to translate the ''pretty'' URL in to the
practical URL. There is no direct equivalent, but there are 3rd-party ISAPI
filters that will do the same thing, but obvious you will have to pay for
these...

Eg...

www.mydomain.com/user/page.asp translates to
www.mydomain.com/commonpage.asp?username=user...

I''ve just noticed that IISToolshed has a free ISAPI filter listed:
http://www.iistoolshed.com/tools.aspx
Chris


这篇关于将不存在的IIS目录传递给ASP参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆