母版页与模板 [英] Masterpage Vs Template

查看:95
本文介绍了母版页与模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有人可以告诉我母版页模板与用户控件之间的区别吗?


谢谢
Ganesh

Hi,

Can anybody tell me difference between Masterpage Vs Template and User Control?


Thanks
Ganesh

推荐答案

Google可以快速回答以下问题:
母版页与用户控件 [
Google can give quick response to this question:
master pages vs templates[^]
master pages vs user controls[^]


我认为您正在尝试评估使用masterpages usercontrols 来实现页面的常见UI元素,即页眉,页脚.

两种方法都是好的,决策实际上取决于需求.我认为您可能会发现这些初学者的指南很有用.您可以了解它们各自的工作原理以及使用它们的利弊.

ASP.NET中初学者入门指南 [ ^ ]
了解模板化用户控件的初学者教程 [ ^ ]
初学者教程-了解ASP.NET中的ControlState [ ^ ]

如果我的理解不正确,请告诉我,我将尝试完善答案.
I think you are trying to evaluate the use of masterpages or usercontrols to implement the common UI elements of page i.e. header, footer.

Both the approaches are good and the decision actually relies on the requirements. I think you may find these beginners'' guides useful. you can get the understanding of how each of them works and what could be the pros and cons of using them.

Beginner''s Tutorial on Master Pages in ASP.NET[^]
A Beginner''s Tutorial for Understanding Templated User Controls[^]
A Beginner''s Tutorial - Understanding ControlState in ASP.NET[^]

Let me know if my understanding is not correct and I will try to refine my answer.


这篇关于母版页与模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆