To embed .ascx page in .aspx page just remember to few points.
1->create .ascx page in Application .
2->write TagName , TagPrefix at the time of register.
3->then call that code in a page where you want to display.
4->How to use TagName and TagPrefix
<%@ Register Src="~/folder name/filname.ascx" TagName="userTagName" TagPrefix="nameofTagprefix"%>
then at the time of calling
<nameoftagprefix:usertagname runat="server" id="Idof tag"></nameoftagprefix:usertagname>
examples:--
<search:clentsearch id="cldsrch" runat="server"></search:clentsearch>
1->create .ascx page in Application .
2->write TagName , TagPrefix at the time of register.
3->then call that code in a page where you want to display.
4->How to use TagName and TagPrefix
<%@ Register Src="~/folder name/filname.ascx" TagName="userTagName" TagPrefix="nameofTagprefix"%>
then at the time of calling
<nameoftagprefix:usertagname runat="server" id="Idof tag"></nameoftagprefix:usertagname>
examples:--
<search:clentsearch id="cldsrch" runat="server"></search:clentsearch>
0 comments: