Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
An Attempt at a DBMS grimpirate PHP 8 Apr 17th, 2007 1:01 PM
Function Parameters grimpirate PHP 10 Mar 14th, 2007 6:55 PM
C# corruption!!! Kilo C++ 32 May 21st, 2006 8:44 PM
Array issues :( Alo Tsum Java 10 Nov 26th, 2005 5:45 PM
replace space with ' * ' TecBrain C++ 15 Apr 13th, 2005 12:32 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:44 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC