CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 3/4/2005 10:20:55 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 28 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
Kalaban
Asp.Net User
UnitConverter Question3/4/2005 10:20:55 PM

0/0

I am building a control that inherits fron Control. (I don't want all of the properties of WebControl). I do however need a width property. Here is the code I have put into my control.


[Bindable(false),
Category("Appearance"),
DefaultValue(""),
Description("Width for the control."),
TypeConverter(typeof(System.Web.UI.WebControls.UnitConverter))]
public Unit ControlWidth
{
get
{
return (this.ViewState["_ControlWidth"] == null) ? Unit.Empty : (Unit)this.ViewState["_TabsPerRow"];
}
set
{
this.ViewState["_ControlWidth"]=value;
}
}


When in visual Studio if I try to set the property from the property window to say "100%" or "100px" it throws an error of it being an invalid type. What am I missing here? Any help would be greatly appreciated.

Thanks,
imagemaker
Asp.Net User
Re: UnitConverter Question3/5/2005 12:01:33 AM

0/0

When retrieving the ControlWidth from ViewState, the key should be "_ControlWidth" not "_TabsPerRow".

I've made similar errors before - one of the dangers of cutting and pasting properties code :)

Bill, WESNet Designs
miguelcastro67
Asp.Net User
Re: UnitConverter Question3/9/2005 3:36:16 PM

0/0

:) We've all made that error
Miguel Castro
www.dotnetdude.com
Kalaban
Asp.Net User
Re: UnitConverter Question3/9/2005 4:12:59 PM

0/0

That was the error. Gotta love later afternoon programming. Thanks for the help.

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Physics: Physics Authors: Christopher E. Cooper, Chris Cooper, Pages: 278, Published: 2001
The Internet Kids & Family Yellow Pages Authors: Jean Armour Polly, Pages: 542, Published: 2000
C++ Programming Fundamentals: CyberRookies Authors: Chuck Easttom, Pages: 417, Published: 2003
Intelligent Computer Mathematics: 9th International Conference, Aisc 2008 15th Symposium, Calculemus 2008 7th International Conference, Mkm 2008 Birmingham, UK, July 28 - August 1, 2008, Proceedings Authors: Serge Autexier, Unknown, John Campbell, Julio Rubio, Volker Sorge, Masakazu Suzuki, Pages: 600, Published: 2008

Web:
UnitConverter Question - ASP.NET Forums UnitConverter Question. Last post 03-09-2005 11:21 AM by Kalaban. 3 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Pocket Unit Converter - Metric Conversion on your PDA/Pocket PC!. Pocket Unit Converter by Aquarius Soft. Easy Metric Conversion on your ... as all our products comes with 30 Days No-Question-Asked-Money-Back-Guarantee! ...
Java unit converter help? - Yahoo! Answers Does anyone know how to make a unit converter with… ... Who found this interesting? Be the first person to mark this question as interesting! ...
Unit Converter - Proprietary Source Software Project Information Unit Converter. Log-in & Rate This 0 Votes. 1; 2; 3; 4; 5. Review It; Suggest Alternative; Ask Question; Add Screenshot; Add News Article; Edit Info ...
Recently active topics in Mozilla tagged with google unit converter Ask a question, share an idea, or report a problem about Mozilla tagged ... How about adding the google unit converter? (ie. kg in 15oz = 0.425...kg) ...
Unit Converter Pro Download & Reviews at FileRatings.com Download Unit Converter Pro at FileRatings.com. FileRatings.com provides downloads ... Check out recent questions & answers about Unit Converter Pro: ...
unit converter 5' - 5" I pasted an example of what it can do with one right-click to the paragraph in your question. unit converter 5' (5 ft = 1.52 m) - 5" (5 in = 12.7 cm) ...
Din and a half head unit converter? - Yahoo! Answers Din and a half head unit converter? does anyone know where i can get a din and a half ... Be the first person to mark this question as interesting! ...
Frequently Asked Questions about Aqaurius Soft PC Unit Converter ... Frequently Asked Questions about Aqaurius Soft PC Unit Converter Professional.
IBM System z Software Pricing: Value Unit Converter Tool Value Unit Converter Tool to assist with Value Unit software pricing. ... zSeries IPLA · Ask a Question About the Value Unit Converter Tool ...

Videos:
Unit Converter - A program I made out of shear bordom This is a small program I wrote mainly because I had nothing better to do. I am still working on it. There will be more than just 4 categories to cho...




Search This Site:










knowing if a component is at design time or run time

how to access properties of datagrid control

adding enhancing to properties for composite control

any comments or suggestions for this code?

how to create a checkboxlist with cs?

saving viewstate of a modified control

hosted messaging and collaboration in existing environment

web custom control - retrieve image from multifile assembly ? ? ? ?

free hosting - asp.net/sql server 2000

building server controls that expose style objects, but that have text-align attribute?

custom control loadpostdata

webhosting to run asp, asp.net 1.x -2.0

datagrid custom control

system.web.ui.webcontrols.treeview control in .net framework 2.0

absolute best way to learn custom controls?

custom control: implementing toolbox support

checkbox checkedchanged event wont fire

aspnet hosting problem

trouble with ispostback when using placeholders and loadcontrol function

hosting asp.net in apache

user control help

newbie q: setting control value from codebehind

passing css to hosting page from server control?

how to force <div>, not <span>, rendered around my custom control?

application-level registration of user controls?

creating a web server control

gantt control

custom regularexpressionvalidator

can i output content at the position of my end tag!? </mycontrol:endme!>

control skin in derived controls

  Privacy | Contact Us
All Times Are GMT