I believe if you want to inherit from a control like this, you cannot use a custom control. You have to create a Class file and use that. This will be compiled into a DLL, if you compile the site, but it will stay in the project under the App_Code folder. This is no different than the .ascx.cs file with the custom control anyway.
The code below is an example that I've done to inherit from gridview.
Main Topics
Browse All Topics





by: A_x_e_lPosted on 2009-10-04 at 03:10:48ID: 25488714
I have downloaded Reflector to check the assembly which contains the GridView control, and have changed the code for CodeFileBaseClass of ScrollGridview.ascx (see below) but I am still getting unrecognized tag prefix. Do I need to mention the namespace in the tag line of the html code somehow?
Select allOpen in new window