How to inherit an user control?

D

Danny Ni

Hi,

I have an user control named GuestBook.ascx. I want to create another user
control by inheriting it. So I add a class file named GuestBookNew.vb into
the project. Inside this class file I have:

Public Class GuestBookNew
Inherits GuestBook

Then I tried to use the new control in a web form by adding
<%@ Register TagPrefix="eShop" Namespace="eShop" Assembly="eShop" %>


By the way, eShop is the VB.Net project name.

This is not working at all, I am getting "Error Creating Control" in web
form designer.

Please help.

TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top