麻烦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>"
解决方案 »
- 同时插入2条数据,第二条数据怎么获得第一条数据的ID?
- 分步提交订单
- treeview控件样式问题
- 求救:如何是下拉框(DropDownList)处于可编辑状态?
- 一个ASPX页面,什么原因可能导致Page.RegisterStartupScript("错误","<script>alert('您的权限不够')</script>");弹不出来?
- 100求一页面导航问题
- 请问如何在DataGrid的模板列里显示从数据库的image列中取出的图片??
- MVC EF返回多表的数据在view上怎么绑定
- 请问怎么把一个整数转换成000x的格式
- mvc3.0(程序报错,如何跳转到错误,不是所有后台都用 try...catch...)
- GridView 每行求和
- 如何制作双语言网站
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