使用ascx或aspx,效果更好吗? [英] use ascx or aspx, wich better?

查看:95
本文介绍了使用ascx或aspx,效果更好吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 使用加载控件ASCX或使用母版页ASPX哪个更好?为什么?
我为我的英语不好感到抱歉.

解决方案

ASPX是一个Webform页面扩展,而ASCX是一个用户控件扩展.

它们完全不同,其用法很容易定义应使用的内容.单独的ASPX可以托管在应用程序中,并且可以浏览,但ASCX不能.要访问ASCX的控件,您需要一些ASPX.通常,ASCX将是在各个地方使用的控件的集合,而ASPX是一个普通的网页,其中将包含各种控件和ASCX.

根据需要使用一个.


hi use load controls ASCX or use master page ASPX which is better? why?
i''m sorry for my poor english.

解决方案

ASPX is a webform page extension where as ASCX is a usercontrol extension.

They are totally different and their usage easily defines what should be used. ASPX alone can be hosted in an app and can be browsed but ASCX cannot. To access controls of ASCX, you need some ASPX. Generally, ASCX will be collection of controls that is used at various place whereas ASPX is a normal webpage that will have various controls and ASCX in them.

Use the one based on your need.


这篇关于使用ascx或aspx,效果更好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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