Solved

Problems with @Register in VS2005

Posted on 2006-06-22
1
336 Views
Last Modified: 2008-02-26
Hello guys

I had a VS2003 ASP.NET application, which I converted to a VS2005 Web Site Project. Now I am converting it to a VS2005 Web Application Project. Most of the things work but not the @Register directive.

I have a control class inheriting from System.Web.UI.WebControls.ImageButton. It's in a .CS file and does not have an .ASCX file. I try to register it like this in the page:

<%@ Register TagPrefix="cc1" Namespace="MyApp.MyButtons" %>

Then I use the control as:

<cc1:MyImageButton id="myButton" runat="server"></cc1:MyImageButton>

The designer underlines the tag and tells me: Element 'MyImageButton' is not a known element. This can occur if there is a compilation error in the Web site.

This worked just fine in VS2003 and also in VS2005 Web Site Project.

Any ideas?

TheAvenger
0
Comment
Question by:TheAvenger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 16

Accepted Solution

by:
Swapnil Piparia earned 500 total points
ID: 16958319
Hi TheAvenger,

do one thing. Add your control's dll (in ur case compiled cs file inherited from imagebutton  ) in ur toolbox and drag and drop that control on designer. it will write whole back code on its own.


Regards,
NetSwap
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question