468,544 Members | 1,759 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,544 developers. It's quick & easy.

What does the function of Register tag in .aspx

ad
I download the source of Portal Starter Kit form
http://www.asp.net/Default.aspx?tabindex=8&tabid=47
I find there are Register tag in many .aspx, like this HtmlModule.ascx , the
first line is

<%@ Register TagPrefix="Portal" TagName="Title"
Src="~/DesktopModuleTitle.ascx"%>

What does the function of Register tag in .aspx
Nov 19 '05 #1
3 5316
"Register TagPrefix" initializes a User Control.

The code for the User Control is in the .ascx file,
and it's initialized in the .aspx file.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espa隳l
Ven, y hablemos de ASP.NET...
======================

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I download the source of Portal Starter Kit form
http://www.asp.net/Default.aspx?tabindex=8&tabid=47
I find there are Register tag in many .aspx, like this HtmlModule.ascx ,
the
first line is

<%@ Register TagPrefix="Portal" TagName="Title"
Src="~/DesktopModuleTitle.ascx"%>

What does the function of Register tag in .aspx

Nov 19 '05 #2
ad
I find some document in MSDN, but I still not understand about this tag.

What is the function of TagPreFix and TagName?

"Juan T. Llibre" <no***********@nowhere.com> 撰寫於郵件新聞
:#c**************@TK2MSFTNGP12.phx.gbl...
"Register TagPrefix" initializes a User Control.

The code for the User Control is in the .ascx file,
and it's initialized in the .aspx file.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espa隳l
Ven, y hablemos de ASP.NET...
======================

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I download the source of Portal Starter Kit form
http://www.asp.net/Default.aspx?tabindex=8&tabid=47
I find there are Register tag in many .aspx, like this HtmlModule.ascx ,
the
first line is

<%@ Register TagPrefix="Portal" TagName="Title"
Src="~/DesktopModuleTitle.ascx"%>

What does the function of Register tag in .aspx


Nov 19 '05 #3
Hello ad,

<%@ Register TagPrefix="Portal" TagName="Title" Src="~/DesktopModuleTitle.ascx"%>

TagPrefix is the prefix used for the tag and TagName is the name (after the
:) of the tag. Given the above example, you'd use this in an aspx file

<Portal:Title id="someId" runat="server"></Portal:Title>

--
Matt Berther
http://www.mattberther.com
I find some document in MSDN, but I still not understand about this
tag.

What is the function of TagPreFix and TagName?

"Juan T. Llibre" <no***********@nowhere.com> 撰寫於郵件新聞
:#c**************@TK2MSFTNGP12.phx.gbl...
"Register TagPrefix" initializes a User Control.

The code for the User Control is in the .ascx file, and it's
initialized in the .aspx file.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espa隳l
Ven, y hablemos de ASP.NET...
======================
"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I download the source of Portal Starter Kit form
http://www.asp.net/Default.aspx?tabindex=8&tabid=47
I find there are Register tag in many .aspx, like this
HtmlModule.ascx ,
the
first line is
<%@ Register TagPrefix="Portal" TagName="Title"
Src="~/DesktopModuleTitle.ascx"%>
What does the function of Register tag in .aspx


Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

43 posts views Thread by Mountain Bikn' Guy | last post: by
6 posts views Thread by jty202 | last post: by
2 posts views Thread by Robert Wagner | last post: by
2 posts views Thread by Benedict Teoh | last post: by
1 post views Thread by RUIZCJ | last post: by
4 posts views Thread by joey.powell | last post: by
1 post views Thread by jeff_m | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.