By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,634 Members | 1,888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,634 IT Pros & Developers. It's quick & easy.

create an ASP.NET page dynamically and save to web server

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
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
Nov 18 '05 #2

P: n/a
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

Nov 18 '05 #3

P: n/a
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


Nov 18 '05 #4

P: n/a
Hi

Set write permission for the user MACHINE\IUSER_MACHINE for that particular directory.

Bhaskardeep Khaund
Nov 18 '05 #5

P: n/a
Does MACHINE refer to the machine the server is running on? Does this cause a big security risk?

"Bhaskardeep Khaund" <bh*********@hotmail.com> wrote in message news:OA**************@TK2MSFTNGP09.phx.gbl...
Hi

Set write permission for the user MACHINE\IUSER_MACHINE for that particular directory.

Bhaskardeep Khaund
Nov 18 '05 #6

P: n/a
Hi,

MACHINE refers to ur machine name. Yes, write permission can create a backdoor, b'coz anybody can upload an exe file and run it.

Bhaskardeep

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message news:ui**************@TK2MSFTNGP12.phx.gbl...
Does MACHINE refer to the machine the server is running on? Does this cause a big security risk?

"Bhaskardeep Khaund" <bh*********@hotmail.com> wrote in message news:OA**************@TK2MSFTNGP09.phx.gbl...
Hi

Set write permission for the user MACHINE\IUSER_MACHINE for that particular directory.

Bhaskardeep Khaund
Nov 18 '05 #7

P: n/a
So what would be another way of doing this? I know a lot of web sites create pages on the fly and email a link to this new page that expires in a given length of time.

"Bhaskardeep Khaund" <bh*********@hotmail.com> wrote in message news:Ow**************@TK2MSFTNGP11.phx.gbl...
Hi,

MACHINE refers to ur machine name. Yes, write permission can create a backdoor, b'coz anybody can upload an exe file and run it.

Bhaskardeep

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message news:ui**************@TK2MSFTNGP12.phx.gbl...
Does MACHINE refer to the machine the server is running on? Does this cause a big security risk?

"Bhaskardeep Khaund" <bh*********@hotmail.com> wrote in message news:OA**************@TK2MSFTNGP09.phx.gbl...
Hi

Set write permission for the user MACHINE\IUSER_MACHINE for that particular directory.

Bhaskardeep Khaund
Nov 18 '05 #8

P: n/a
This can be done with a HttpHandler that dynamically creates a page that can expire, and/or only allow certain users to see the page. You can pretty much do whatever you want with the HttpHandler. That link can be sent to the HttpHandler page which would enforce the expiration rule.
"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message news:ej*************@TK2MSFTNGP10.phx.gbl...
So what would be another way of doing this? I know a lot of web sites create pages on the fly and email a link to this new page that expires in a given length of time.

"Bhaskardeep Khaund" <bh*********@hotmail.com> wrote in message news:Ow**************@TK2MSFTNGP11.phx.gbl...
Hi,

MACHINE refers to ur machine name. Yes, write permission can create a backdoor, b'coz anybody can upload an exe file and run it.

Bhaskardeep

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message news:ui**************@TK2MSFTNGP12.phx.gbl...
Does MACHINE refer to the machine the server is running on? Does this cause a big security risk?

"Bhaskardeep Khaund" <bh*********@hotmail.com> wrote in message news:OA**************@TK2MSFTNGP09.phx.gbl...
Hi

Set write permission for the user MACHINE\IUSER_MACHINE for that particular directory.

Bhaskardeep Khaund
Nov 18 '05 #9

P: n/a
any examples of how to do this? (I'm new to ASP.NET)
"Scot Kelly" <sc********@hotmail.com> wrote in message news:uM**************@TK2MSFTNGP09.phx.gbl...
This can be done with a HttpHandler that dynamically creates a page that can expire, and/or only allow certain users to see the page. You can pretty much do whatever you want with the HttpHandler. That link can be sent to the HttpHandler page which would enforce the expiration rule.
"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message news:ej*************@TK2MSFTNGP10.phx.gbl...
So what would be another way of doing this? I know a lot of web sites create pages on the fly and email a link to this new page that expires in a given length of time.

"Bhaskardeep Khaund" <bh*********@hotmail.com> wrote in message news:Ow**************@TK2MSFTNGP11.phx.gbl...
Hi,

MACHINE refers to ur machine name. Yes, write permission can create a backdoor, b'coz anybody can upload an exe file and run it.

Bhaskardeep

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message news:ui**************@TK2MSFTNGP12.phx.gbl...
Does MACHINE refer to the machine the server is running on? Does this cause a big security risk?

"Bhaskardeep Khaund" <bh*********@hotmail.com> wrote in message news:OA**************@TK2MSFTNGP09.phx.gbl...
Hi

Set write permission for the user MACHINE\IUSER_MACHINE for that particular directory.

Bhaskardeep Khaund
Nov 18 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.