Create .aspx page at runtime
Howdy guys! I need help with something (yes, again). What my plan is, is to have two user inputs on a website, one of these inputs will be the header for the html e.g. "DaniWeb TechTalk computer support", the other for the page content, e.g. "Hi, my name is zorba...". This data needs to be saved to an aspx file, and once that has been done, another aspx page has to display the header or title of the page e.g. "Daniweb TechTalk computer support" with a link to the aspx. Now I have thought about this a little and the input from the users can be saved into label controls in the text property. Another thing is I could have an aspx page template so that the page only needs to be copied from that and the labels inserted in the right spot. Now what I don't know is how to do this heh ;) I really hope you guys can help me with this one because I'm not sure I will be able to figure it out by myself. I have faith in you guys.
Thanks heaps for your time,
Slade
Note: I am using VB .NET for the code behind
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7
lol it's cool buddy... I think that's the info I need. What I'm talking about thought is this:
<html>
<hea><title>(user input goes here)</title>
<Body>
(User input goes here)
</body>
</html>
does that clear it up for you?
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7
There is still more problems... how do I save this page on the server (after user inputs have been made) and how do I make the link to the page automatically appear on the home page? (has the same name as the page title). SO we have figured out how to pass the values onto another page, but how do we save that page once the "submit page" button has been pressed?
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7
is it possible for vs .net just to copy an allready existing page and edit that? Like a template?
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7
can you think of any other ways I can do this? Just so that a user can put inputs for the title of the html page and also the body. PLEASE! if you can think of a way to do this than I would give you a special thanks on the actual site, paladine, tekmaven, you allready get one.
Slade
p.s. you too dani, and a link to this site because it is the best lot of forums I have come across.
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7
THanks dude, you truly are a good help.
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7
oh I see, so I can't just link the template page to a style sheet?
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7
Do you know any of the code for this?
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7
Yeah it does thanks! But what code do I use to transfer it from page to page as a cookie? Sorry lol, I'm really new to cookies on asp .net and my knowledge is very limited.
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7
so you store them in a cookie, and I can call back that cookie value on another page?
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7