I am trying to use String.Format to help with building a URL that will hold a parameter from a local variable. I think i'm close, but not sure where to go from here.
Thanks, Jason
string link=string.format("<A HREF="http://webserver/?x={0}&y={1}">Click here</A>",variable1,variable2 )
You need to escape the double quotes:
This being said if you really want to generate valid HTML with valid urls I would recommend you the following: