动态创建ASP.NET页面并保存到Web服务器 [英] create an ASP.NET page dynamically and save to web server

查看:80
本文介绍了动态创建ASP.NET页面并保存到Web服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法动态创建页面并将其保存回网页

服务器?我需要能够为人们创建自定义页面。


谢谢,

Joe

解决方案

您好


您可以这样做,但您需要拥有该目录的写入权限,这是一个潜在的攻击点。所以,请确保你这样做。如果您正在使用,您可以通过创建一个带有扩展名的新文件,并以适当的结构编写它。


问候,

Bhaskardeep Khaund


我最终创建了一个HTML文件来创建页面。


谢谢。


" Joe Bonavita" < JBonavita _ @ _ caminus.com>在消息中写道

新闻:Om **************** @ TK2MSFTNGP10.phx.gbl ...

有没有如何动态创建页面并将其保存回Web服务器?我需要能够为人们创建自定义页面。

谢谢,
Joe



现在我必须处理写入服务器的问题。

如果我尝试编写文件,它会提示我输入服务器的用户/ pw。

当然这不是我想要的。


我认为只要ASPNET用户有权访问就行了。这不是

是否正确?

" Joe Bonavita" < JBonavita _ @ _ caminus.com>在消息中写道

新闻:OH ************** @ TK2MSFTNGP10.phx.gbl ...

我最终创建了一个用于创建页面的HTML文件。

谢谢。

Joe Bonavita < JBonavita _ @ _ caminus.com>在消息中写道
新闻:Om **************** @ TK2MSFTNGP10.phx.gbl ...

有没有办法创建一个页面动态并将其保存回网页
服务器?我需要能够为人们创建自定义页面。

谢谢,
Joe




Is there a way to create a page dynamically and save it back to the web
server? I need to be able to create custom pages for people.

Thanks,
Joe

解决方案

Hi

You can do that, but you would need to have write permission on that directory, which is a potential attack point. So, make sure you do it. If you are use u can do it by creating a new file with extension whatever u want, and writing it in a proper structure.

Regards,
Bhaskardeep Khaund


I ended up creating a HTML file to create the page.

Thanks.

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
news:Om****************@TK2MSFTNGP10.phx.gbl...

Is there a way to create a page dynamically and save it back to the web
server? I need to be able to create custom pages for people.

Thanks,
Joe



Now I have to deal with the write problem to the server.
If I try and write the file it prompts me for the user/pw for the server. Of
course this isn''t what I want.

I thought that as long as ASPNET user has access this will work. Is this not
correct?
"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
news:OH**************@TK2MSFTNGP10.phx.gbl...

I ended up creating a HTML file to create the page.

Thanks.

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
news:Om****************@TK2MSFTNGP10.phx.gbl...

Is there a way to create a page dynamically and save it back to the web
server? I need to be able to create custom pages for people.

Thanks,
Joe




这篇关于动态创建ASP.NET页面并保存到Web服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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