Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user control assembly 1

Status
Not open for further replies.

rotsey

Programmer
Nov 23, 2004
135
AU
Hi,

I have download a DateSelector contol from a web site and it is a user control.

I have the assembly dll called SControls.dll.

I want to use it in my app.

So I registered the assembly with Add Reference.

The web site said include the following in the web page

<%@Register TagPrefix="SControls" TagName="DateSelector" Src="DateSelector.ascx"%>

And then to declare the control

<SCONTROLS:DateSelector id="useDateCal" runat="server" Text="Start Date:"></SCONTROLS:DateSelector>

When I run I get an error saying that

Could not load type 'myWebApp.DateSelector'

Does anyone no why???

rotsey


 
Build the project, Shut down VS.net, Start it back up, Build the project again. Test it. Sometimes that is all it needs. I would also recommend making sure the dll is in your bin folder.
 
so you think I have done the right thing there?
 
I believe everything was done correctly on your part so far, yes. Let me know how it goes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top