concatenation error in

Posted by Klbaiju under C# on 12/18/2012 | Points: 10 | Views : 604 | Status : [Member] | Replies : 3
Hi
I want to concatenate ToString() with another
following is my code

for (int i = 0; i < name1.Length - 1; i++)
{
Response.Write("<td>" +dr+"["+name1[i]+"]" +.ToString() + " </td>");
}
this showing error
how to solve this

Regards
Baiju




Responses

Posted by: Naraayanan on: 12/18/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
Try this Code...
  string openingTab = string.Empty;

string closingTab = string.Empty;
string Content = string.Empty;
string startingBrase = string.Empty;
string endingBrase = string.Empty;
string conString = string.Empty;
openingTab= "<Td>";
closingTab = "</Td>";
startingBrase = "[";
endingBrase = "]";
Content = "Naraayanan";
conString = openingTab + startingBrase + Content + endingBrase + closingTab;
MessageBox.Show(conString);


Result: <Td>[Naraayanan]</td> .

Please explain "dr".
Please upload your result format.


Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ritu on: 12/19/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Baiju

Please mention the declaration of two variable and what output you want
dr and name1 variable

i m not clear what data type you r using

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Guna27 on: 12/20/2012 [Member] Starter | Points: 25

Up
0
Down
Try this code...


for (int i = 0; i < name1.Length - 1; i++)
{
Response.Write("<td>" +dr.ToString()+"["+name1+"]" + " </td>");
}

Guna..............

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response