MVC3 string equlas int 方法
1.在EF4X 下面引用DLL 文件:system.data.entity.dll
2.引用命名空间:using System.Data.Objects.SqlClient;
3:使用SqlFunctions.StringConvert((double)h.Id).Trim()
on string(字段) equals SqlFunctions.StringConvert((double/decimal)int 字段).Trim()
//注意SqlFunctions.StringConvert 会为字段后面自动加上空格,要用Trim()去掉空格
4.onclick事件传递动态参数
<input type="button" id="show" onclick='javascript:new DivWindow("popup","popup_drag","popup_exit","exitButton","400","150","4","@item.OrgName","@item.OrgName");' value='点击弹出窗口' />