在cs有s1string s1= "<a style='CURSOR: hand' onClick=\""+"window.open('shenqing.aspx?id_no=<%# DataBinder.Eval(Container.DataItem,\"id_no\") %>','','height=265,width=595,top=200,left=200')\""+" ><font color=#0063dc>申请</font></a>";
這裡的引號有些問題我想得到s1的值(.aspx里的值)為<a style='CURSOR: hand' onClick="window.open('shenqing.aspx?id_no=<%# DataBinder.Eval(Container.DataItem,"id_no") %>','','height=265,width=595,top=200,left=200')" ><font color=#0063dc>申请</font></a>怎麼修改這些引號才能正確顯示
這裡的引號有些問題我想得到s1的值(.aspx里的值)為<a style='CURSOR: hand' onClick="window.open('shenqing.aspx?id_no=<%# DataBinder.Eval(Container.DataItem,"id_no") %>','','height=265,width=595,top=200,left=200')" ><font color=#0063dc>申请</font></a>怎麼修改這些引號才能正確顯示
string s1 = "<a style='CURSOR: hand' onClick=\"window.open('shenqing.aspx?id_no=" + xxx + "','','height=265,width=595,top=200,left=200')\" ><font color=#0063dc>申请</font></a>";
xxx替换成CS的写法
string s1 = "<a style='CURSOR: hand' onClick=\"window.open('shenqing.aspx?id_no=<%# DataBinder.Eval(Container.DataItem,\"id_no\") %>','','height=265,width=595,top=200,left=200')\" ><font color=#0063dc>申请</font></a>";輸出是
','','height=265,width=595,top=200,left=200')" >申请
//其它地方可能有问题
<a style='CURSOR: hand' onClick="window.open('shenqing.aspx?id_no=<%# DataBinder.Eval(Container.DataItem,"id_no") %>','','height=265,width=595,top=200,left=200')" ><font color=#0063dc>申请</font></a><a style='CURSOR: hand' onClick="window.open('shenqing.aspx?id_no=<%# DataBinder.Eval(Container.DataItem,"id_no") %>','','height=265,width=595,top=200,left=200')" ><font color=#0063dc>申请</font></a>
xxx替换成CS的写法這樣不行...xxx還要循環
其他地方沒問題阿..我測試過了..就是引號不對
我有4個\"...自動配對出錯了..我要的是第一個和第4個..
自動可能幫我配成了12,34Mirricle(Miracle Supply)S1我寫在另一個函數里的
protected string GetSQ(int date3,int date5)
{}
如果用XXX.那就還要寫SQL..和前面DATAGRID里BINDING的東西也不配對啊
我現在 雙引號里有個單引號..單引號里再一個雙引號..怎麼打啊??
function XX()
{
window.open('<%# DataBinder.Eval(Container,"DataItem.id_no") %>','','height=265,width=595,top=200,left=200')
}
</script><a style="CURSOR: hand" onClick="XX();"><font color="#0063dc">申请</font></a>