麻烦C# 转一下VB的,网上转的不能运行。谢谢了。
C#: htmlr += "<div class='clsdiv' onmouseover=\"this.style.backgroundColor='#D6DFF0';this.style.cursor='hand';\" onmouseout=\"this.style.backgroundColor='#6E8ADE'\"><IMG SRC=\"images/file.gif\" BORDER=0 > <a href='" + LinkUrl + "' target='tabWin'>" + smallName + "</a></div>";
网上转的VB,不能运行: htmlr += "<div class='clsdiv' onmouseover=""this.style.backgroundColor='#D6DFF0';this.style.cursor='hand';"" onmouseout=""this.style.backgroundColor='#6E8ADE'""><IMG SRC=""images/file.gif"" BORDER=0 > <a herf='" & LinkUrl & "' target='tabWin'>" & smallName & "</a></div>"
C#: htmlr += "<div class='clsdiv' onmouseover=\"this.style.backgroundColor='#D6DFF0';this.style.cursor='hand';\" onmouseout=\"this.style.backgroundColor='#6E8ADE'\"><IMG SRC=\"images/file.gif\" BORDER=0 > <a href='" + LinkUrl + "' target='tabWin'>" + smallName + "</a></div>";
网上转的VB,不能运行: htmlr += "<div class='clsdiv' onmouseover=""this.style.backgroundColor='#D6DFF0';this.style.cursor='hand';"" onmouseout=""this.style.backgroundColor='#6E8ADE'""><IMG SRC=""images/file.gif"" BORDER=0 > <a herf='" & LinkUrl & "' target='tabWin'>" & smallName & "</a></div>"
htmlr = "<div class='clsdiv' onmouseover='this.style.backgroundColor='#D6DFF0';this.style.cursor='hand';' onmouseout='this.style.backgroundColor='#6E8ADE''><IMG SRC='images/file.gif' BORDER=0 > <a href='" & LinkUrl & "' target='tabWin'>" & smallName & "</a></div>"
这样子试试咯~~
http://www.developerfusion.com/tools/convert/csharp-to-vb/http://www.cnblogs.com/blodfox777/archive/2008/09/16/1291771.html