473,385 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

C# Convert question.

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!)
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
Aug 29 '07 #1
4 1106
"WebBuilder451" <We***********@discussions.microsoft.comwrote in message
news:A1**********************************@microsof t.com...
>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 Rae
ASP.NET MVP
http://www.markrae.net

Aug 29 '07 #2
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
"Mark Rae [MVP]" wrote:
"WebBuilder451" <We***********@discussions.microsoft.comwrote in message
news:A1**********************************@microsof t.com...
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 Rae
ASP.NET MVP
http://www.markrae.net

Aug 29 '07 #3
"WebBuilder451" <We***********@discussions.microsoft.comwrote in message
news:6C**********************************@microsof t.com...
You're a "Fine American!!!!!" (da-mut!)
Ahem...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 29 '07 #4
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
"Mark Rae [MVP]" wrote:
"WebBuilder451" <We***********@discussions.microsoft.comwrote in message
news:6C**********************************@microsof t.com...
You're a "Fine American!!!!!" (da-mut!)

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

Aug 29 '07 #5

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

Similar topics

19
by: Lauren Quantrell | last post by:
I have a stored procedure using Convert where the exact same Convert string works in the SELECT portion of the procedure but fails in the WHERE portion. The entire SP is listed below....
12
by: dixie | last post by:
Can someone familiar with Access 2003 please answer this question? I am asking because I don't have the use of A2003. When Access 2003 finds an Access 2000 database, does it come up with some...
12
by: Brian Henry | last post by:
first question... I have a flat file which unfortinuatly has columns seperated by nulls instead of spaces (a higher up company created it this way for us) is there anyway to do a readline with this...
6
by: patang | last post by:
Could someone please tell me where am I supposed to put this code. Actually my project has two forms. I created a new module and have put the following code sent by someone. All the function...
4
by: simonZ | last post by:
Why this don't work: Boolean test; String testValue; testValue="0"; test=System.Convert.ToBoolean(testValue); How can I convert string to boolean?
4
by: dba_222 | last post by:
Dear Experts, Ok, I hate to ask such a seemingly dumb question, but I've already spent far too much time on this. More that I would care to admit. In Sql server, how do I simply change a...
27
by: comp.lang.tcl | last post by:
My TCL proc, XML_GET_ALL_ELEMENT_ATTRS, is supposed to convert an XML file into a TCL list as follows: attr1 {val1} attr2 {val2} ... attrN {valN} This is the TCL code that does this: set...
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
6
by: Ken Fine | last post by:
This is a basic question. What is the difference between casting and using the Convert.ToXXX methods, from the standpoint of the compiler, in terms of performance, and in other ways? e.g. ...
0
by: deloford | last post by:
Hi This is going to be a question for anyone who is an expert in C# Text Encoding. My situation is this: I have a Sybase database which is firing back ISO-8559 encoded strings. I am unable to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.