@ Register和@ Reference的区别

简介:

@ Reference

指示应该根据在其中声明此指令的当前 ASP.NET 文件(网页、用户控件或母版页),对位于某个虚拟路径的另一个用户控件、页源文件或任意文件进行动态编译和链接。

<%@ Reference Page="path to .aspx page"
   Control="path to .ascx file"
   virtualPath="path to file" %>

@ Register

创建标记前缀和自定义控件之间的关联,这为开发人员提供了一种在 ASP.NET 应用程序文件(包括网页、用户控件和母版页)中引用自定义控件的简明方法。

复制代码
<%@ Register tagprefix="tagprefix"
   namespace="namespace"
   assembly="assembly" %>
<%@ Register tagprefix="tagprefix"
   namespace="namespace" %>
<%@ Register tagprefix="tagprefix"
   tagname="tagname"
   src="pathname" %>
复制代码

 


参考链接

@ Reference

@ Register

本文转自陈哈哈博客园博客,原文链接http://www.cnblogs.com/kissazi2/archive/2013/02/20/2918865.html如需转载请自行联系原作者


kissazi2
相关文章
|
11月前
|
存储 缓存 编译器
【C++】register 关键字
我们都知道,CPU主要是负责进行计算的硬件单,但是为了方便运算,一般第一步需要先把数据从内存读取到CPU内,那么也就需要CPU具有一定的数据临时存储能力(CPU并不是当前要计算了,才把特定数据读到CPU里面,那样就太慢了)。
undefined reference to `swr_init+
undefined reference to `swr_init+
90 0
undefined reference to symbol XGetWindowAttributes/cairo_destroy/XShapeGetRectangles
undefined reference to symbol XGetWindowAttributes/cairo_destroy/XShapeGetRectangles
105 0
在main函数中创建新对象时出错 No enclosing instance of type ooo is accessible. Must qualify the allocation with a
在main函数中创建新对象时出错 No enclosing instance of type ooo is accessible. Must qualify the allocation with a
在main函数中创建新对象时出错 No enclosing instance of type ooo is accessible. Must qualify the allocation with a
Kyro - To register this class use: kryo.register
Kyro - To register this class use: kryo.register
259 0
Load和Initialize的区别和使用
Load和Initialize的区别和使用
141 0
No injector for custom defined data type的解决办法
No injector for custom defined data type的解决办法
223 0
No injector for custom defined data type的解决办法
|
程序员 编译器 C语言
解决办法:undefined reference to symbol '_ZTVN10__cxxabiv117__class_type_infoE@@CXXABI_1.3
解决办法:undefined reference to symbol '_ZTVN10__cxxabiv117__class_type_infoE@@CXXABI_1.3
762 0
|
存储 数据格式
function module COM_PRODUCT_GETDETAIL_INTERNAL的内存分配问题
Created by Jerry Wang, last modified on Jul 25, 2014
function module COM_PRODUCT_GETDETAIL_INTERNAL的内存分配问题