日期:2014-05-18 浏览次数:20662 次
protected void GridViewRelation_RowCommand(object sender, GridViewCommandEventArgs e)
{
CostManagement Cost = new CostManagement();
if (e.CommandName.ToUpper() == "HISTORYRECORD")
{
int i = Convert.ToInt32(e.CommandArgument);
string cardId = GridViewRelation.Rows[i].Cells[5].Text;
string carno = GridViewRelation.Rows[i].Cells[4].Text;
string url = "FrmAtrriHistory.aspx?cardId=" + cardId + "&carno=" + carno;
string ClientScript = "window.showModalDialog('" + url + "','history','dialogWidth:800px;dialogHeight:600px;dialogLeft:200px;dialogTop:200px;center:yes; help:yes;resizable:yes;status:yes')";
Page.RegisterStartupScript("pringGP", "<script>" + ClientScript + "</script>");
}
}
CostManagement();
if (e.CommandName.ToUpper() == "HISTORYRECORD")
{
int i = Convert.ToInt32(e.CommandArgument);
string cardId = GridViewRelation.Rows[i].Cells[5].Text;
string carno = GridViewRelation.Rows[i].Cells[4].Text;
string url = "FrmAtrriHistory.aspx?cardId=" + cardId + "&carno=" + carno;
string ClientScript = "window.showModalDialog('" + url + "','history','dialogWidth:800px;dialogHeight:600px;dialogLeft:200px;dialogTop:200px;center:yes; help:yes;resizable:yes;status:yes')";
Page.RegisterStartupScript("pringGP", "<script>" + ClientScript + "</script>");
}
}
------解决方案--------------------
举个例子来说:
我爱你
使用系统默认的编码格式(936)编码后的16进制串为:
CED2B0AEC4E3
用这个字符串(CED2B0AEC4E3)调用你的函数,将返回“我爱你”这个字符。
------解决方案--------------------
学习。
------解决方案--------------------
study..