C# Convert question.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!)
 
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!
 
MarK!,
You're a "Fine American!!!!!" (da-mut!)
:-) Thank you
--
(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
 
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
--
(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
 
Back
Top