Tuesday, September 3, 2013

how to call .ascx page / user control in aspx page

user controls can be called inside an aspx page by registering it first

write this tag inside aspx page

<%@ Register Src="~/Test.ascx" TagName="TestAscx" TagPrefix="uc1" %>

Usage:
<uc1:TestAscx ID="asd" runat="server" />

No comments:

Post a Comment