473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
9 5897
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
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
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
Hi

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

Bhaskardeep Khaund
Nov 18 '05 #5
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Don | last post by:
I want the server-side php script to return a browser page that is essentially a copy of the original client page that contained the <form> which referenced the php script in the first place....
2
by: Dale | last post by:
I am trying to figure out how to have a script dynamically create and then dispose of a text file. A script will generate a text file using the standard I/O functions and then present a link so...
7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
3
by: Kiyomi | last post by:
Hello, I create a Table1 dynamically at run time, and at the same time, I would like to create LinkButton controls, also dynamically, and insert them into each line in my Table1. I would...
7
by: moondaddy | last post by:
I want to dynamically create a JavaScript file and cache it on the client for re-use. I know how to write javascript to a web page from the code behind, but I don't know how to actually create a...
2
by: Quentin Huo | last post by:
Hi: I have a user control and I want to dynamically create a Label control and TextBox control when the button "add more author name" is clicked. I did like this: 1. there is a...
7
by: pmclinn | last post by:
I was wondering if it is possible to dynamically create a structure. Something like this: public sub main sql = "Select Col1, Col2 from Table a" dim al as new arraylist al =...
16
by: flip2flik | last post by:
Hi. I am using visual web developer express edition and I am using vb.net as the programming language. I want to create a new aspx file on a button click. I will have a template that the new...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.