开发者

ASP.NET website structure / flow

ASP.NET, web form model.

Is there any sample code/site that demonstrate a couple samples for regular website patterns/ templates? Like if I want to use tab to switch between different pages, should I put the code in a single page or in different page, and treat each tab as a page.

Or if in a search page (just a single search bar and button), should I display my result panel in same page using dynam开发者_StackOverflow中文版ically enable the result panel, or just to another page?

I want to find a general design pattern/ template. Please advise, thanks.


I don't know if this answer will be helpful to you or not. Correct me if I am wrong.

You are specifying demonstration about web designing. It seems the functionality you want is clearly saying to choose from weather you want to use AJAX or not. I suggest why don't you use jQuery Framework for all this functionality.


I would give this a read and consider what best fits your application and your programming style, no one size fits all with paterns.

http://msdn.microsoft.com/en-us/magazine/dd252940.aspx

After you have a general idea, head over to google.com and look for the patterns that catch your eye for simple tutorials

Edit: For the specific question about whether you should modularize your code. The answer is almost always yes. If you think there is a chance that the component will be used somewhere else then doing this a head of time can save you a lot of headache later. This practice also makes maintaining a lot easier because it gives a clear scope of what could be causing a bug. Instead of having to look threw an entire page of unrelated code for things changing state unexpectedly in the page life cycle.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜