Visual Studio creates UserControls as wrong type

C

Carlo Razzeto

Hey, I've got a couple of production UserControls going in my companies web
system, but I'm having a couple of annoying issues with them. One of them,
for instance is a ScannerButton control which launches an in house scanning
application from a web page. When vs.net 2005 add the variable to the
..aspx.desginer.vb file it adds it as System.Web.UserControl rather than
WebAppNameSpace.ScannerButton which is what the object actually is. Is there
any way around this? The control is registered through out the web system
via the web.config system.web / pages / controls / add XML tag. It looks
something like this..

<system.web>
<pages>
<controls>
<add tagPrefix="Empiric" tagName="ScannerButton"
src="~/UserControls/ScannerButton.ascx" />
<add tagPrefix="Empiric" tagName="DateBox"
src="~/UserControls/DateBox.ascx" />
</controls>
</pages>
</system.web>
 
A

Akram

Carlo Razzeto said:
Hey, I've got a couple of production UserControls going in my companies
web system, but I'm having a couple of annoying issues with them. One of
them, for instance is a ScannerButton control which launches an in house
scanning application from a web page. When vs.net 2005 add the variable to
the .aspx.desginer.vb file it adds it as System.Web.UserControl rather
than WebAppNameSpace.ScannerButton which is what the object actually is.
Is there any way around this? The control is registered through out the
web system via the web.config system.web / pages / controls / add XML tag.
It looks something like this..

<system.web>
<pages>
<controls>
<add tagPrefix="Empiric" tagName="ScannerButton"
src="~/UserControls/ScannerButton.ascx" />
<add tagPrefix="Empiric" tagName="DateBox"
src="~/UserControls/DateBox.ascx" />
</controls>
</pages>
</system.web>
 

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,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top