Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

C# Convert question.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WebBuilder451 - 29 Aug 2007 15:42 GMT
I seem to be ding this a lot,
td1.Text = Convert.ToString(HtmlTextWriter.SpaceChar);
In VB you don't need to convert and i makes me wonder if this is the correct
way to assign an htmltextwriter item to a cell?

(i'll be asking a lot of these, but I find C# totally way cooler than vb and
it's my new .net dev language!)
Signature

thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes

Mark Rae [MVP] - 29 Aug 2007 16:14 GMT
>I seem to be ding this a lot,
> td1.Text = Convert.ToString(HtmlTextWriter.SpaceChar);
> In VB you don't need to convert and i makes me wonder if this is the
> correct
> way to assign an htmltextwriter item to a cell?

Yes. As a shortcut, you can use:

HtmlTextWriter.SpaceChar.ToString();

> (i'll be asking a lot of these, but I find C# totally way cooler than vb
> and
> it's my new .net dev language!)

Hurrah!

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

WebBuilder451 - 29 Aug 2007 16:36 GMT
MarK!,
You're a "Fine American!!!!!" (da-mut!)
:-) Thank you
Signature

(i''ll be asking a lot of these, but I find C# totally way cooler than vb
and there''s no go''n back!!!)
thanks (as always)

kes

> >I seem to be ding this a lot,
> > td1.Text = Convert.ToString(HtmlTextWriter.SpaceChar);
[quoted text clipped - 11 lines]
>
> Hurrah!
Mark Rae [MVP] - 29 Aug 2007 17:04 GMT
> You're a "Fine American!!!!!" (da-mut!)

Ahem...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

WebBuilder451 - 29 Aug 2007 17:42 GMT
In this world of strife where a slight variation of religion or nationality
or race or politic or economic is a matter of life and death to many it is
important to our survival as a specie (humanity) that we learn to be less
serious about ourselves while acknowledgeing who we are and that it's ok ot
be who were are!

Thank you my friend!!!!
KES
Signature

(i''ll be asking a lot of these, but I find C# totally way cooler than vb
and there''s no go''n back!!!)
thanks (as always)

kes

> > You're a "Fine American!!!!!" (da-mut!)
>
> Ahem...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.