在HTML中,本来 onchange="return redir('1', unit_type);" 是正确的,现在我想将'1'替换为CS文件中的一个变量KK,改写这样:onchange="return redir(<%=kk%>, unit_type);", 但是报语法错误,请问各位大虾,正确的写法应该是怎么样的?
解决方案 »
- C#控制台程序引用System.Web.Security时出错
- 一个莫名其妙的问题,求指教(很短的代码,就四行)
- .net Remoting 远程调用问题(急)
- FormBorderStyle = Windows.Forms.FormBorderStyle.None后鼠标拖动改变窗体大小的问题。谢谢
- [C#] WinForm与多个控制台程序的调用问题
- 判断不属于DataSet.Tables[0] 中的行
- 如何通过C#代码控制webBrowse中的radio的状态(checked or unchecked)
- C# 注册/御载 window service (用代码 注册/御载,不是用InstallUtil.exe命令)
- 一个C++函数转为C#
- 多线程cpu跑满了
- 用过word的com组件的.net高高手请进,100分在线求救
- 如何在RichTextBox控件内容中,插入字符串?
onchange="return redir('<%=kk%>', unit_type);",
这样
onchange="return redir('<%=kk%>', unit_type);
function redir(type, unit_type)
{
location.href = "comm.aspx?type=" + type + "&unit_type="+ unit_type.value;
}