Question

I have a website in asp.net which contains a User Input form page where user can enter various details like Name, Id, Contact No, Address etc. Now as per my requirement I have to make this webpage generic such that in future if the Client wants to change the Name with Employee Name, Id to wwid, Contact No to Mobile No etc. it should be changed. Now I have two points in my mind to try this.

  1. First one will be to make the Content Management system (CMS) and store, retrieve from there.

  2. Now my doubt and question. Can I replace the Contents of the webpage after deployment on Button Click to avoid storing and retrieving from database.

Was it helpful?

Solution

You could put all your human-readable strings in a standard .resx file. You can develop your C# code and ASPX/ASCX controls to read strings from there. The client can edit the .resx file if he wants to. Just make sure that if you deploy a new version, you don't overwrite his changes. Guides: http://msdn.microsoft.com/en-us/library/ms227427.aspx

OTHER TIPS

You can achieve this by storing strings which should be changed in future in database (no matter which) and when loading page read them.

Second alternative is in fejesjoco post.

You can render your pages and use the client-side (Javascript/jquery) to modify the structure of the page. Maybe you can use ajax posts to wait only for parts of the page instead of waiting for the whole page to appear, depends on your situation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top