麻烦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 >&nbsp;&nbsp;<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 >&nbsp;&nbsp;<a herf='" & LinkUrl & "' target='tabWin'>" & smallName & "</a></div>"

解决方案 »

  1.   

         Dim htmlr As String
         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 >&nbsp;&nbsp;<a href='" & LinkUrl & "' target='tabWin'>" & smallName  & "</a></div>"
    这样子试试咯~~
      

  2.   

    对vb的认识在于dim
    http://www.developerfusion.com/tools/convert/csharp-to-vb/http://www.cnblogs.com/blodfox777/archive/2008/09/16/1291771.html
      

  3.   

    http://www.developerfusion.com/tools/convert/vb-to-csharp/
      

  4.   

    还是不行,但谢谢各位,新年快乐。还是用51ASPX中的C#代码