Ask a Question related to ASP.NET Building Controls, Design and Development.
-
microsoft.newsgroups.com #1
Help needed for "generic" System.Object Converter
Hi, I have custom web server control with one property being of type
System.Object.
At design time, only string values are allowed to be entered in the property
window. If "StringConverter" is used for the TypeConverter attribute, a user
can enter string values for this property and those values get serialized to
the aspx.
However, at run time an exception gets raised (as StringConverter can only
convert to a string, not from a string).
The question is: how to build a custom type converter for the generic
System.Object type/class? I guess this should inherit from StringConverter
but am unsure how to code the ConvertTo and CanConvertTo methods?
~ Gajba
microsoft.newsgroups.com Guest
-
Can't locate object method "newFromJpeg" via package "GD::Image"
Hi. I'm trying to execute this Perl simple script: -------- #!/usr/bin/perl use GD; my $srcimage = GD::Image->newFromJpeg("image_news.jpg");... -
Can't locate object method "blocking" via package "IO::Handle"
I am receiving the error message: Can't locate object method "blocking" via package "IO::Handle" at... -
Cannot access a disposed object named "System.Net.TlsStream"???
Hi, When I trying to do HTTP POST to HTTPS URL I am getting this error on first attempt: Cannot access a disposed object named... -
Can't not locate object method "isadmin" via package "Noc1"
Hello all, I just added a new method called isadmin to existing and working module Noc1.pm And use this new added method in my index.html... -
Lsass.exe System error "object name not found". System keeps rebooting
When trying to install the drivers for the PCI modem in my laptop, prompted for the driver CD. Installed the driver without any errors but asked... -
intrader #2
Re: Help needed for "generic" System.Object Converter
On Wed, 21 Sep 2005 19:02:17 +0200, microsoft.newsgroups.com wrote:
I think that you are pointing in the correct direction. You can use> Hi, I have custom web server control with one property being of type
> System.Object.
>
> At design time, only string values are allowed to be entered in the property
> window. If "StringConverter" is used for the TypeConverter attribute, a user
> can enter string values for this property and those values get serialized to
> the aspx.
>
> However, at run time an exception gets raised (as StringConverter can only
> convert to a string, not from a string).
>
> The question is: how to build a custom type converter for the generic
> System.Object type/class? I guess this should inherit from StringConverter
> but am unsure how to code the ConvertTo and CanConvertTo methods?
>
>
> ~ Gajba
reflection to find out the 'from' type.
intrader Guest
-
Zarko Gajic #3
Re: Help needed for "generic" System.Object Converter
"intrader" <intrader@aol.com> wrote in message
news:pan.2005.09.21.22.54.53.903145@aol.com...
And this is exactly where I stuck ;)> I think that you are pointing in the correct direction. You can use
> reflection to find out the 'from' type.
Thanks.
Zarko Gajic Guest
-
intrader #4
Re: Help needed for "generic" System.Object Converter
On Thu, 22 Sep 2005 09:42:53 +0200, Zarko Gajic wrote:
Sorry, you can check [url]http://odetocode.com/Articles/288.aspx[/url]>
> "intrader" <intrader@aol.com> wrote in message
> news:pan.2005.09.21.22.54.53.903145@aol.com...
>>>> I think that you are pointing in the correct direction. You can use
>> reflection to find out the 'from' type.
> And this is exactly where I stuck ;)
>
> Thanks.
The method is GetType.
intrader Guest



Reply With Quote

