在.NET Web服务中提供动态网页 [英] Serving Dynamic web pages in a .NET web service

查看:59
本文介绍了在.NET Web服务中提供动态网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的论坛类别合适。  让我先解释一下我在做什么。

I hope I have the right forum category here.  Let me start out by trying explain what I am doing.

我有一项接受用户数据的服务,例如某人的姓名,地址等。我有另一个项目是一个.NET网页,它在后面的代码中与本地数据库进行对话,以便从发送到Web
服务的数据库中检索此信息。  目前,当发送请求时,我将制作网页的物理副本并将其存储在我的网络服务器上的某个哈希目录路径中,然后将此路径发送回用户,以便他们可以访问此网站并查看他们的网页上的自定义数据

I have a service that accepts data from a user such as a person's name, address, etc.  I have another project that is a .NET web page which in the code behind talks to a local database to retrieve this information from a DB that was sent to the web service.  Currently when a request is sent I will make a physical copy of the web page and store it in some hashed directory path on my web serer and then send this path back to the user so they can in turn visit this site and see their customized data on the web page.

我的问题:

这是提供动态网页的最佳方式吗?  我喜欢这种方法,因为它允许我向用户发送自定义的URL,但我不喜欢它,因为现在我可能在我的网络服务器上有相同页面的几千份副本。

Is this the best of way of serving up a dynamic web page?  I like this method because it allows me to send a customized URL to a user, however I dislike it because now I can potentially have a couple thousand copies of the same page on my web server.

有没有办法生成动态网址,例如:http://www.mydomain.com/feedback/4738492/@492!sdl / form.html 但让它指向相同的表单?

Is there a way to generate a dynamic url, for example:  http://www.mydomain.com/feedback/4738492/@492!sdl/form.html  but have it point to the same form?

任何人都能以最好的方式提供他们的经验以及你想法的理由。

Can anyone offer their experience in the best way to handle this problem as well as the reasoning behind your thoughts.

谢谢!

推荐答案

这实际上是一个ASP.NET问题而不是Web服务问题。请在
http://forums.asp.net 上询问此类问题。
This is really more of an ASP.NET question than a web service question. Please ask such questions at http://forums.asp.net.


这篇关于在.NET Web服务中提供动态网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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