摘要: string id= GridView1.DataKeys[e.RowIndex].Value.ToString(); string id = GridView1.Rows[e.RowIndex].Cells[0].Text.ToString(); string id = ((TextBox)(GridView1.Rows[e.RowIndex].Cells[0].Controls[0])).Text.ToString(); string 123= ((TextBox)(GridView1.Rows[e.RowIndex].Cells[1].FindControl("TextBox1 阅读全文
posted @ 2012-08-22 16:13 心随风若 阅读(479) 评论(0) 推荐(0)
摘要: 19.如何设定全局变量 Global.asax中 Application_Start()事件中 添加Application[属性名] = xxx; 就是你的全局变量 20.怎样作到HyperLinkColumn生成的连接后,点击连接,打开新窗口? HyperLinkColumn有个属性Target,将器值设置成"_blank"即可.(Target="_blank") 【ASPNETMENU】点击菜单项弹出新窗口 在你的menuData.xml文件的菜单项中加入URLTarget="_blank",如:<?xml version=&qu 阅读全文
posted @ 2012-08-22 10:14 心随风若 阅读(336) 评论(1) 推荐(0)
摘要: 1. 打开新的窗口并传送参数: 传送参数:response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") 接收参数: string a = Request.QueryString("id");string b = Request.QueryString("id1"); 2.为按钮添加对话框Button1.Attributes.Add(&qu 阅读全文
posted @ 2012-08-22 10:10 心随风若 阅读(631) 评论(0) 推荐(0)