Monday 27 August 2012

How to embed .ascx page to .aspx page in asp.net code inline

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>
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: