Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET Saving webpage layout in a smart and fast way
    text
    copied!<p><a href="http://www.pafo.net/example.png" rel="nofollow noreferrer">alt text http://www.pafo.net/example.png</a>Hello!</p> <p>I don't know what i should title this question regarding ASP.NET and saving a webpage layout. I will be referring to BBC just illustrate what i am after. <a href="http://news.bbc.co.uk/" rel="nofollow noreferrer">http://news.bbc.co.uk/</a></p> <p>The page will have around 10,000-20,000 visitors each day. I have one MS SQL 2008 database and i am programming ASP.NET (C#) 3.5.</p> <p>I am building a magazine/paper like BBC but in a smaller format, now the administrator has to be able to style the general pages (like Economics, Politics etc) and place what articles are to be display and how to display them. On the BBC page (when i'm looking at it now) you have one big article on the first row, then 2 smaller on the second and third row, then a box with "FEATURES, VIEWS, ANALYSIS". I attached a picture with the areas painted in different colors. I wan't to allow the administrator to modify the appearance of the general pages and thus place the news in an arranged order.</p> <ul> <li>The first problem i have is how to save it for optimized speed, both for fetching the webpage but also for editing it. So i thought that saving the page in XML in a XML document would allow me to add the functionallity that i want, since i can modify the XML and also add new tags if i expand the program. But the problem is then loading it to the client, i could create a .aspx page on the server when the administrator presses save or i could dynamically load it every time someone wants to display the webpage. Any ideas on performance?</li> </ul> <p>So the flow is: 1) Administrator changes the layout on a specific page in the admin panel, he or she changes what article to show and where to place them. (Single, Next to another article etc) 2) The administrator then saves the changes. 3) The user can now view the updated layout 4) The administrator can load back the layout to make further changes.</p> <ul> <li>The second problem is that i have small boxes on the right side, the contents in these boxes could either reflect the article/webpage or it could be something different. The administrator chooses what boxes to use when he/she creates the article. Now, how to save that information and load the boxes efficient. The boxes, when they are created, faces the same problem as above, how to save them in a good manner so the articles can load them fast. I was thinking about saving the information, like above, in a XML document. When the administrator creates an article i then save the box id-number in a certain table in the MS SQL 2008 database with an id-number to the correct article. But the same problem arises, should i dynamically load the boxes or create every box as a Web User Control and then load it, something like: WebControl_1234 boxControl = (WebControl_1234)LoadControl("Data path" + box_id_from_sqlserver);</li> </ul> <p>Any ideas?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload