Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

generic page

Status
Not open for further replies.

shams123

Programmer
Jan 27, 2006
81
MY
Hi,

My client wants to generate new asp.net pages from the admin section. It should work fine, if I make a single asp.net page and all these new pages could be called by "xxx.aspx?page=1" or "xxx.aspx?page=2" etc.

However, the client wants to name these pages individually rather than using a variable to query the database.

I would appreciate if somebody could point me the right direction.

Thanks!
 
They want to give each page a name, say "news.aspx" for a page, or "updates.aspx" which would describe what this new page is supposed to do.
 
But what do you mean they want to generate new asp.net pages? Do they want a way to dynamically create pages?
 
Well all they want is to show the pages with the names they provide, I assume I will need to find a way to generate these pages unless a solution's found :)
 
What are you expecting these pages to do? You can't dynamically create any ASP.NET code for them so they will have to just contain simple HTML.

I think you are maybe looking to do some kind of URL Rewriting but I'm not really sure from what you've posted...


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
i think he is looking for a content management system? where the clients can create and manage pages at run time???

in this case you have only one alternative solution (and a better one):

generate one ASPX or HTML file for each page created in the admin (hope you control the CMS)...

Known is handfull, Unknown is worldfull
 
Hi,

I am not sure how can I generate as ASPX page from the code? Should it be compiled to use?
 
nope, when i meant an ASPX file i mean a pure HTML file with ASPX extension. the data in the page is DB controlled right? i mentioned ASPX just because some users might want that extension. this ASPX file will just have PURE HTML content, so NO compiling whatsoever...

Known is handfull, Unknown is worldfull
 
It is still very unclear what you want to do, and what the client wants.
 
Interesting, so can I actually put asp script in the page and set the extension as .aspx? If yes, can you please tell me how.

Thanks!
 
Ok, let me put the requirements again (hopefully in a clearer manner). My client wants to create pages for the front-end (lets say bunch of text to appear on these pages) and want to provide a name of the page as well.

The whole system is in asp.net and therefore these new pages have to be named as tom.aspx, dick.aspx, harry.aspx etc.

Let me know if this helps mate.

Ta!
 
hi dude,

this is an example.

client creates some content for a page called "hi.aspx".

The client will enter this content and page name in a screen right?

create a new file called "hi.aspx" using the file object in .NET, paste the content of the client into it.

thats it! why would you want to paste scripts into it???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top