Monday, August 1, 2011

How to create a custom server control

Go to File -> Projects -> C# -> ASP.NET Server Control.


Add System.Web.Extension as your reference.


I have already written a article on how to create a custom repeater control which implements paging. Make use of that code to create a class.


Add a reference of that project.


In the aspx page.


<%@ Register assembly="Efficience.Sluice.CustomControls" namespace="DataPagerRepeater" tagprefix="cc1" %>


Where assembly is the ProjectName and namespace is the class namespace name.

No comments:

Post a Comment