摘要:
<asp:panel style="overflow-x:scroll;overflow-y:auto;"></asp:panel> 阅读全文
摘要:
在页面加入如下代码 在FileUpload 里加入下面事件 阅读全文
摘要:
在RowDataBand里: if (e.Row.Cells[2].Text=="1") { e.Row.Cells[2].Text = "允许"; } else { e.Row.Cells[2].Text = "不允许"; //e.Row.Cells[2].Visible = false; } 阅读全文
摘要:
protected void btn_del_Click(object sender, EventArgs e) { //删除被选中的列 string sql = "delete from users where"; string cal = ""; for (int i = 0; i < GridView1.Rows.Co... 阅读全文
摘要:
private double sum = 0;//取指定列的数据和,你要根据具体情况对待可能你要处理的是int protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex >= 0) { ... 阅读全文
摘要:
双击GridView的OnRowDataBound事件; 在后台的GridView1_RowDataBound()方法添加代码,最后代码如下所示: protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex != -1) {... 阅读全文
摘要:
双击GridView的OnRowDataBound事件; 在后台的GridView1_RowDataBound()方法添加代码,最后代码如下所示: protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRow... 阅读全文
摘要:
DataNavigateUrlField="字段名" DataNavigateUrlFormatString="a.aspx?id={0}" 阅读全文
摘要:
Button1.Attributes.Add("onclick","return confirm('确认?')"); button.attributes.add("onclick","if(confirm('are you sure...?')){return true;}else{return false;}") 阅读全文
摘要:
string strTime = DateTime.Now.ToShortDateString(); //获取短整型日期 string ip=this.Page.Request.UserHostAddress; //获取客户端IP 阅读全文