View Single Post
Old May 29th, 2007, 10:31 AM   #1
teishu
Programmer
 
Join Date: May 2006
Posts: 51
Rep Power: 3 teishu is on a distinguished road
Small C# Problem - quotation marks in string

Hi, im having trouble with quotation marks in a string.. here is the code that is bugging me..

html.WriteLine("<img src=""images//" & file & """ />");

i need it to output the line as follows:

<img src="images/imagename.jpg" />

the imagename.jpg is define in the file string.

the errors are as follows:

Error    1    ) expected    C:\Documents and Settings\Jason\My Documents\Visual Studio 2005\Projects\Project01\Project01\Form1.cs    63    43    Project01

Error    2    ; expected    C:\Documents and Settings\Jason\My Documents\Visual Studio 2005\Projects\Project01\Project01\Form1.cs    63    65    Project01

Error    3    ; expected    C:\Documents and Settings\Jason\My Documents\Visual Studio 2005\Projects\Project01\Project01\Form1.cs    63    70    Project01

Error    4    Invalid expression term ')'    C:\Documents and Settings\Jason\My Documents\Visual Studio 2005\Projects\Project01\Project01\Form1.cs    63    70    Project01

thanks in advance...
teishu is offline   Reply With Quote