943,814 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 18713
  • ASP.NET RSS
You are currently viewing page 1 of this multi-page discussion thread
May 4th, 2004
0

Create .aspx page at runtime

Expand Post »
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
Similar Threads
Reputation Points: 115
Solved Threads: 7
Practically a Master Poster
Slade is offline Offline
633 posts
since Mar 2004
May 8th, 2004
0

Re: Create .aspx page at runtime

Maybe I am just tried, but what I have read of your question has left me confused? What are you saying with regards to header and inputs are confusing?

Quote ...
ne 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...".
You are talking here about Display Controls, but refer to them as inputs? Is the user to supply the information to create these "inputs" or "controls"?

Why not have the user supply the information, store that information in a cookie, and then redirect to the next aspx page and use the cookie information to generate the "inputs" you need?

Not sure this helps, but your question is a little vague and confusing.....but then again I am tired! :rolleyes:
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
May 9th, 2004
0

Re: Create .aspx page at runtime

lol it's cool buddy... I think that's the info I need. What I'm talking about thought is this:

ASP.NET Syntax (Toggle Plain Text)
  1.  
ASP.NET Syntax (Toggle Plain Text)
  1. <html>
  2. <hea><title>(user input goes here)</title>
  3. <Body>
  4. (User input goes here)
  5. </body>
  6. </html>

does that clear it up for you?
Reputation Points: 115
Solved Threads: 7
Practically a Master Poster
Slade is offline Offline
633 posts
since Mar 2004
May 9th, 2004
0

Re: Create .aspx page at runtime

Yeah that is what I had figured. Glad I could help. ASP.Net is something I am learning right now as well.

Happy coding!!!
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
May 12th, 2004
0

Re: Create .aspx page at runtime

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?
Reputation Points: 115
Solved Threads: 7
Practically a Master Poster
Slade is offline Offline
633 posts
since Mar 2004
May 12th, 2004
0

Re: Create .aspx page at runtime

is it possible for vs .net just to copy an allready existing page and edit that? Like a template?
Reputation Points: 115
Solved Threads: 7
Practically a Master Poster
Slade is offline Offline
633 posts
since Mar 2004
May 14th, 2004
0

Re: Create .aspx page at runtime

You mean modify it on the fly? Hmm, not that I am aware of, but .NET is pretty powerful, I wouldn't doubt there is a way!
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
May 14th, 2004
0

Re: Create .aspx page at runtime

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.
Reputation Points: 115
Solved Threads: 7
Practically a Master Poster
Slade is offline Offline
633 posts
since Mar 2004
May 14th, 2004
0

Re: Create .aspx page at runtime

It is 1:30 am right now, and my mind is mush! But I will see what I can come up with by the end of the weekend dude! But I am sure I have some source code somewhere in my IT Library Drive that may help....no promises. :-)

As of right now I am off to bed.
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
May 14th, 2004
0

Re: Create .aspx page at runtime

THanks dude, you truly are a good help.
Reputation Points: 115
Solved Threads: 7
Practically a Master Poster
Slade is offline Offline
633 posts
since Mar 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: How to send Multiple values for one formula field in crystal reports through vb.net?
Next Thread in ASP.NET Forum Timeline: new webiste opening problem,help needed





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC