473,602 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Type.GetType("S ystem.Web.UI... .)

TR
Is it possible to use Type.GetType(.. .) with the types in the
System.Web.UI.? My attempts always resolve to Nothing.

Is this legal, or is the Web.UI assembly of the kind Type.GetType doesn't
work with?
Type.GetType("S ystem.Web.UI.We bControls.TextB ox", False, True)

Thanks
TR
Nov 19 '05 #1
2 3085

"TR" <TR@nowhere.biz > wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Is it possible to use Type.GetType(.. .) with the types in the
System.Web.UI.? My attempts always resolve to Nothing.

Is this legal, or is the Web.UI assembly of the kind Type.GetType doesn't
work with?
Type.GetType("S ystem.Web.UI.We bControls.TextB ox", False, True)

Thanks
TR


Why not GetType(System. Web.UI.WebContr ols.TextBox)? Do you have to pass it
a string?

Mythran

Nov 19 '05 #2
TR
Mythran,
I'm trying to write a generic routine to find all controls of a specified
type. But even so, if I do what you suggest, I get the error that
Checkbox|TextBo x|etc "is a type in 'WebControls' and cannot be used as an
expression".
Regards
TR

"Mythran" <ki********@hot mail.comREMOVET RAIL> wrote in message
news:O9******** ******@TK2MSFTN GP15.phx.gbl...

"TR" <TR@nowhere.biz > wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Is it possible to use Type.GetType(.. .) with the types in the
System.Web.UI.? My attempts always resolve to Nothing.

Is this legal, or is the Web.UI assembly of the kind Type.GetType doesn't work with?
Type.GetType("S ystem.Web.UI.We bControls.TextB ox", False, True)

Thanks
TR
Why not GetType(System. Web.UI.WebContr ols.TextBox)? Do you have to pass

it a string?

Mythran

Nov 19 '05 #3

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

Similar topics

3
4778
by: Maersa | last post by:
Hi All, Was anybody able to serialize the "Type" class properly using XmlSerializer().... Want to serialize and deserialze the Type in a string form, but can this be done ? myobj.Type = typeof(System.String) as <type>System.String</type> thanks a ton.
1
4101
by: Tim Nelson | last post by:
when System.Type.GetType("System.Boolean") works. Is there some way to get this type at runtime? Thanks,
17
3185
by: Alan Silver | last post by:
Hello, I have a page which I am converting to use themes. The page has an HTML <input type="image"> element that is used to post to another page. I would like to replace this with a server control so I can add a skinid. I tried adding runat="server" and the skinid to the existing control, but that didn't work. Any other ideas? TIA --
5
4357
by: hzgt9b | last post by:
I'm building a dataset that writes out a Point type value. Here's the code that I've got: 1 Dim dsContent As DataSet = New DataSet("content") 2 Dim dtAsset As DataTable = New DataTable("asset") 3 Dim dcPk(0) As DataColumn 4 dcPk(0) = _ 5 dtAsset.Columns.Add("fullName", Type.GetType("System.String")) 6 dtAsset.Columns.Add("videoLocation", Type.GetType("System.Drawing.Point"))
1
3245
by: MeAgin | last post by:
Hi all, When I try to cast an object (ListBox control in an outlook mail form) retrieved from an outlook add-in it is giving the error, Unable to cast COM object of type 'System.__ComObject' to class type 'System.Windows.Forms.ListBox'. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports...
1
2939
by: epatrick | last post by:
I have a series of custom controls developed under ASP.NET 1.1, and I've successfully migrated to ASP.NET 2.0. I have also developed a custom class dervied from System.Web.UI.Page, called qbo.Web.Page. All of these controls compile and run correctly under ASP.NET 2.0. However, several of these controls throw an error in the design mode of VS.NET 2005. Specifically, controls that include a property override of Page (to cast as a...
4
1353
by: Jon | last post by:
Hello all, I'm trying to do the above, pass in an object name and it return the type, but it's erroring, I've seen something like this before but can't quite remember. Can this be done? Thanks Jon
1
7093
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that someone who bothers to read all of it have some pointers. Note, I have posted the stack trace and the code exhibiting the problem further down so if you want to start by reading that, search for +++ Also note that I am unable to reproduce...
1
24464
by: Infog | last post by:
I have a dataview, and I am trying to "clone" its structure only in part, by creating a new table via code. I cut out most of the columns, so this is easier to read. My question is - Why does this always seem to add things a a string? Later in my code, I try to sort based on "View_Order", but it acts like a string. The values sort as 1,2,20,21,22,3,4, NOT 1,2,3,4,20,21,22 like it should. Using Cint() while moving the values from table to...
0
7993
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8054
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
8268
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...
0
5440
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
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2418
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
1
1510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.