423,818 Members | 2,266 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,818 IT Pros & Developers. It's quick & easy.

What does the function of Register tag in .aspx

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
"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

P: n/a
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

P: n/a
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.