how to create an aspx page dynamically in one asp.net web apllication
-
The problem is in an ASP.NET web applcation their is an option called addnew page, so the users will create his own pages in that page . An aspx page should be added to users account dynamically so that he can add his contents in that page.
santosh
-
The problem is in an ASP.NET web applcation their is an option called addnew page, so the users will create his own pages in that page . An aspx page should be added to users account dynamically so that he can add his contents in that page.
santosh
Hi santoshkumarB, So, what is your point? Please more specific.
Regard, Edwin :)
-
Hi santoshkumarB, So, what is your point? Please more specific.
Regard, Edwin :)
hi edwin, thank you, well my problem is in an asp.net application user has an option of add new page in his account. So that a new ASPX page has to be added into his account.. Consider an example... This is basically an ecommerce project . if their is an user called xyz. he wants to add a new page in his account so that an aspx page should be dynamically added only to his account.And xyz is going to add his own images ,template in that page. thank you
santosh
-
hi edwin, thank you, well my problem is in an asp.net application user has an option of add new page in his account. So that a new ASPX page has to be added into his account.. Consider an example... This is basically an ecommerce project . if their is an user called xyz. he wants to add a new page in his account so that an aspx page should be dynamically added only to his account.And xyz is going to add his own images ,template in that page. thank you
santosh
Ohh... I see. santoshkumarB, u should use CMS. Have U ever heard about CMS? This CMS will solve your problems.:)
Regard, Edwin :)
-
The problem is in an ASP.NET web applcation their is an option called addnew page, so the users will create his own pages in that page . An aspx page should be added to users account dynamically so that he can add his contents in that page.
santosh
Data for content management like this is usually persisted in some data storage mechanism, like a database or xml file. The file/data describes the page and content, and then a generic pages is used to read this data and build the page on teh fly. Look at iGoogle. Each page for each user is different. But Google don't create a new page for each user, they store the users layout in a DB.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
-
Ohh... I see. santoshkumarB, u should use CMS. Have U ever heard about CMS? This CMS will solve your problems.:)
Regard, Edwin :)
Thank you sir, no i havn't heard abt CMS. Can u tell me wat is tis CMS But can we use xml,xslt to solve this problem....
santosh
-
Data for content management like this is usually persisted in some data storage mechanism, like a database or xml file. The file/data describes the page and content, and then a generic pages is used to read this data and build the page on teh fly. Look at iGoogle. Each page for each user is different. But Google don't create a new page for each user, they store the users layout in a DB.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
Thank you,, Will xml and xslt sove this problem .....
santosh
-
Thank you,, Will xml and xslt sove this problem .....
santosh
Yes. Store the data in Xml, apply an xlst translation to it and, as if by magic, you have a web page. You need to work on the xml layout to ensure the page is described well. It is not a 30 minute job either, but certainly better than writing a HTML code generator, which is what you would need to do for your original idea.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
-
hi edwin, thank you, well my problem is in an asp.net application user has an option of add new page in his account. So that a new ASPX page has to be added into his account.. Consider an example... This is basically an ecommerce project . if their is an user called xyz. he wants to add a new page in his account so that an aspx page should be dynamically added only to his account.And xyz is going to add his own images ,template in that page. thank you
santosh
Something like a content management system ? You can open existing ASPX files using filestream and write it to the disk with other name. Put some special tags where your content need to be replaced. Replace this special tags with your content when page is creating. But keep it in mind that this will work if you are using ASP.NET 2.0, in ASP.NET 1.1, code behind data will be wrapped in dll's. So creating a simple aspx file won't do work. Alternative approach would be using
UrlRewriting
. In this case, you won't be having files, all the URL's you are seeing will be virtual.
-
Thank you sir, no i havn't heard abt CMS. Can u tell me wat is tis CMS But can we use xml,xslt to solve this problem....
santosh
CMS (Content Management System). In ASP.NET 2.0 U will find it in ToolBox Web Part. Or other way U can Save every user settings in database. But I suggest U to use web parts. U can find it at msdn how to use it. Of course U can use xml.
Regard, Edwin :)
-
The problem is in an ASP.NET web applcation their is an option called addnew page, so the users will create his own pages in that page . An aspx page should be added to users account dynamically so that he can add his contents in that page.
santosh
Be aware of exposing dynamic WebForms to user. Unless you have enough NTFS permissions in place, you are opening up the Pandorra's box on your server.:)
Vasudevan Deepak Kumar Personal Homepage Tech Gossips