473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Visual Studio creates UserControls as wrong type

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>
Nov 9 '06 #1
1 1185

"Carlo Razzeto" <cr******@hotmail.comwrote in message
news:uP**************@TK2MSFTNGP04.phx.gbl...
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>
Nov 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Skc | last post by:
We have a developer who has made an application in Visual Studio 2003 and this will not work in our version of Visual Studio 2002. Error message: Solution file loading error: The selected file...
5
by: Nathan Sokalski | last post by:
I recently upgraded from Visual Studio .NET 2003 to Visual Studio .NET 2005. Visual Studio .NET 2005 does not create the Global.asax files that Visual Studio .NET 2003 did, which I used for...
2
by: Nathan Sokalski | last post by:
Because I wanted the builds for my ASP.NET sites to be a single *.dll in a /bin/ directory (like VSNET 2003), I decided to try the Web Application Project download. However, I am still pulling my...
1
by: Martin | last post by:
Hi Everyone ! First of all, I use Microsoft Visual Studio Team Edition for Software Developers (8.0.50727.42). In a Winform application, I would like to add to a Usercontrol (x) in an other...
6
by: JimmyKoolPantz | last post by:
I have been given the task of converting a program from VFP (visual foxpro) to Visual Basic.net. My question is "Is it possible to generate a DBF file Dynamically(at runtime) using Visual...
0
by: Massimiliano Polito | last post by:
It seems the option '/useenv' is no longer supported in in Microsoft Visual .NET 2005. If I run 'devenv /?' I get the following: ------------------------ Microsoft (R) Visual Studio Version...
0
by: Nathan Sokalski | last post by:
I have several UserControls (*.ascx files) that I register in my Web.config file under the <system.web><pages><controlselement. If I mistype the src attribute in the Web.config file, the pages that...
1
by: =?Utf-8?B?Sm9l?= | last post by:
Very weird; I lost a day worth of work because of this problem. I have an ASP.NET application written in VB that is using MySQL database. Shortly, a page creates a Customer record in the database...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.