473,770 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.User Control 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="Empi ric" tagName="Scanne rButton"
src="~/UserControls/ScannerButton.a scx" />
<add tagPrefix="Empi ric" tagName="DateBo x"
src="~/UserControls/DateBox.ascx" />
</controls>
</pages>
</system.web>
Nov 9 '06 #1
1 1200

"Carlo Razzeto" <cr******@hotma il.comwrote in message
news:uP******** ******@TK2MSFTN GP04.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.User Control 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="Empi ric" tagName="Scanne rButton"
src="~/UserControls/ScannerButton.a scx" />
<add tagPrefix="Empi ric" tagName="DateBo x"
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
2395
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 is not a valid Visual Studio Solution file. When we try to load a project file, we get: Unable to read the project file. The project was created with a newer
5
2334
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 variables such as the location of my database. What is the conventional way of creating global variables for purposes like this in Visual Studio .NET 2005? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
2
1195
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 hair out because it doesn't want to recognize any of the Controls (not even the ones that are part of ASP.NET). All of the Controls show the following error: Name 'mycontrolid' is not declared. And my UserControls show the following error (all...
1
1966
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 Usercontrol (y). In the usercontrol x there is already 2 usercontrols, and in the usercontrol y, there is no control at all. When I drop the usercontrol x on the usercontrol y, Visual Studio crash
6
11609
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 Basic.Net?" With all the field properties, such as, field length and type. I'm not sure if this is a stupid quesiton or If I am just over looking something, but I have not found solid information on the internet about this topic. Any useful...
0
2238
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 8.0.50727.42. Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Use: devenv
0
1432
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 use the UserControl will add something such as the following to the *.aspx.designer.vb files: Protected WithEvents mycontrol As Global.System.Web.UI.UserControl This is obviously not correct, because Global.System.Web.UI.UserControl is what...
1
2097
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 and if successful, creates a directory on the web server. I was using Transaction Scope to accomplish this action; here is the code excerpt: ' Initialize the return value to zero Dim returnValue As Integer = 0
0
7335
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 beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who don't know how to use the IDE for best results. Visual Studio automatically creates a number of...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10037
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.