Click here to Skip to main content
15,888,157 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a requirement of creating .aspx and .aspx.cs pages dynamically when the user enters a question into my applications ui , we want to create an aspx page dynamically along with some inbuilt functionality with the page name same as question.

Ex: in the ui user enters a question as which is the biggest state in us , then i want to create a page with the name whichisbiggeststateinus.aspx and i want to display that page immediately to the user by loading some content in to the page.

here my question is wether the webserver will recompile the whole application or it will compile and load only the newly created .aspx and .aspx.cs page ?


any help is greately appreciated,
Posted
Updated 3-Jun-13 2:49am
v2
Comments
VICK 3-Jun-13 7:51am    
Can you ellaborate your question a little bit more??

1 solution

What's important here is the content and not the page. Your design is BAD. You are thinking of creating asp.net pages on runtime? I don't think that is even possible.
Send all requests to one page. Have a placeholder control on it. Based on the question, create the content of the page and rewrite the URL as required.
 
Share this answer
 
Comments
Ganeshh2 3-Jun-13 9:35am    
If i am not creating a new page it is difficult to create a page with the question as the title of the page and it is difficult to create meta tags since my pages should be seo friendly and it should be crawalable by the google robot. when user searches in the google , it should display my page. Is it possible to do all these things by loading content dynamically.

help is greately appreciated,

regards
Giri
Ankur\m/ 4-Jun-13 2:51am    
You can create title, meta tags dynamically as well.
You must have predefined pages anyways for those pages to be crawl-able by any search engine. You must understand how crawlers work. They will search through the links in you page and do that recursively through those links. Now if you are creating a link dynamically, there is no link present on your page to be crawled.
There is no real limit to the no. of questions a user can type, leave apart the grammar. You should have a set of defined question and page against them. Ask user to select from these questions rather than typing there own. Or are you trying to create something like wolfrom alpha. But even that has it's syntax defined.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900