如何实现:用鼠标点击datagrid某一个单元格(或者是这个单元格旁边绑定的按钮),这时候弹出一个新的窗口,新窗口没有菜单项,大小可以自己设定,原来单元格中的内容在新窗口中显示出来,同时可以对显示出来的内容进行修改。
解决方案 »
- C#保存方法组问题
- 用wmp播放.avi视频文件时显示“下载解码器错误”
- 错误 CS0029: 无法将类型“int”隐式转换为“System.Data.OleDb.OleDbDataReader
- FormView中的DropDownList的SelectValue='<%#Bind("DeptInfo.DeptID")%>'为什么报错?
- 幕白兄,那个网页自动填写的还有一个小问题
- 高手请进,急急
- TDS buffer length too large: %s(asp.net访问Sybase数据库的随机错误)
- 新手题问,没什么分了...希望帮我一下
- 与数据的连结,提示sa的密码不对为什么呢?
- 这个ascx 能写成 razor Partial局部视图吗
- fileupload 与验证控件的问题
- 已有打开的与此命令相关联的 DataReader,必须首先将它关闭???
//GV_Customer行加载事件
protected void GV_Customer_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
//当鼠标停留时更改背景色
e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#E6E6FA'");
//当鼠标移开时还原背景色
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
//鼠标双击事件
e.Row.Attributes.Add("ondblclick", "self.location='Customer_Register.aspx?CustID="
+ GV_Customer.DataKeys[e.Row.RowIndex].Value.ToString() + "'");
}
}
#endregion
我这是吧值传到一个页面
你如果想弹出窗口的话,可以把self.location改成
window.open('Customer_Register.aspx?CustID="
+ GV_Customer.DataKeys[e.Row.RowIndex].Value.ToString() + "','','height=550, width=850, top=100, left=100, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no');