解决方案 »
- c#如何结束子线程
- C# 获取FTP服务器连接情况
- 如何实现 点击datagridview中查询到的数据,让数据对应到相应的textbox 中
- 怎样实现类似我的电脑那样的功能?
- asp.net web c# 求水晶报表打印动态dataset的源码
- Spring.Net 向 amsx 注入,应该怎么配置啊
- 想学水晶报表,请大家介绍几个网站.谢谢!!
- 靜態函數多了是不是會占用大量的內存啊?
- C#中ConcurrentDictionary<TKey, TValue> 类中Tkey键是否排序和支持索引下标搜索
- get Conole output in winform program
- c#内存不足问题
- C# 构造函数执行符合指定的绑定约束的调用时引发了异常
不过我这样写总是报错,说thisalert是不支持的属性
//弹窗显示数据行的详细信息
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onMouseOver", "Color=this.style.backgroundColor;this.style.backgroundColor='lightBlue'");
e.Row.Attributes.Add("onMouseOut", "this.style.backgroundColor=Color;");
e.Row.Attributes.Add("ondblclick", "window.open('Default2.aspx?id=" + e.Row.Cells[0].Text + "','','width=320,height=250')");//双击行打开新页
}
}//codego.net/tags/11/1/
//设置文件名、文件上传、保存路径
protected void Page_Load(object sender, EventArgs e)
{
if (Request["id"] != null)
{
SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["conStr"]);//获取数据库连接
con.Open();//打开数据库
SqlDataAdapter ada = new SqlDataAdapter("select * from tb_19 where id=" + Request["id"], con);
DataSet ds = new DataSet();//创建数据集
ada.Fill(ds, "tb_files");
DataRowView rv = ds.Tables["tb_files"].DefaultView[0];//创建视图
TextBox1.Text = rv["name"].ToString();
TextBox2.Text = rv["datatime"].ToString();
TextBox3.Text = rv["fileload"].ToString();
}
}
//弹出JavaScirpt小窗口
public static vied Alert(string message)
{
string js=@"<Script languge='JavaScript'>
alert('"+nessage+"');</Script>"
HttpContextCurenlResponse.Write(js);
}
<div id="modal" class="modal hide fade in" style="display: none; ">
你的页面
</div>先ajax.get得到view,然后
$('#modal').html(view);
$('#modal').modal('show')