c# - Can't write hyperlink as a string -
c# - Can't write hyperlink as a string -
i want write this
string input = "<form action=\"http://blabla.com\" method=\"post\">...</form>";
but backslash() .com ends merge link... can do?
so link becoming http://blabla.com\
this might more readable strings contain both slashes , double quotes. me.
string input = @"<form action=""http://blabla.com"" method=""post"">...</form>";
also note single quote acceptable in html, should work too:
string input = @"<form action='http://blabla.com' method='post'>...</form>";
here's additional info on literals in c#
http://msdn.microsoft.com/en-us/library/aa691090(v=vs.71).aspx
c# winforms url hyperlink backslash
Comments
Post a Comment