using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
★★★★★namespace
{
/// <summary>
/// list 的摘要说明。
/// </summary>
public class list : System.Web.UI.Page
{
protected System.Web.UI.WebControls.DataGrid DataGrid1;
protected System.Web.UI.WebControls.Label Label1;
protected System.Web.UI.WebControls.ImageButton ImageButton1;
protected System.Web.UI.WebControls.ImageButton ImageButton2;
protected System.Web.UI.WebControls.Label Label2;
protected System.Web.UI.WebControls.Button Button_ShowAll;
protected System.Web.UI.WebControls.Button Button_ToExcel;
Common.AutoPage MyAutoPage = new Common.AutoPage();
private void Page_Load(object sender, System.EventArgs e)
{
if (!Page.IsPostBack)
{
string sql=this.Request.QueryString["sql"].ToString();
sql=Common.Message.RemoveStar(sql);
this.ViewState["sql"]=sql;
Common.DataBase MyDataBase = new Common.DataBase();
this.MyAutoPage.DataSetRecord(this.DataGrid1,sql,"id","first",this.ImageButton1,this.ImageButton2,this.Label1,Page);
}
}
#region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.DataGrid1.ItemDataBound += new System.Web.UI.WebControls.DataGridItemEventHandler(this.DataGrid1_ItemDataBound);
this.ImageButton1.Click += new System.Web.UI.ImageClickEventHandler(this.ImageButton1_Click);
this.ImageButton2.Click += new System.Web.UI.ImageClickEventHandler(this.ImageButton2_Click);
this.Button_ToExcel.Click += new System.EventHandler(this.Button_ToExcel_Click);
this.Button_ShowAll.Click += new System.EventHandler(this.Button_ShowAll_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
Common.MyDataGrid.AlerColor("#EEEEFF","#6699CC",e);
if(e.Item.ItemType == ListItemType.Item ||e.Item.ItemType == ListItemType.AlternatingItem)
{
string id =e.Item.Cells [0].Text;
e.Item.Attributes.Add("ondblclick", "javascript:window.location.href='detail.aspx?id="+id+"'");
}
}
private void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
this.MyAutoPage.DataSetRecord(this.DataGrid1,this.ViewState["sql"].ToString(),"id","prev",this.ImageButton1,this.ImageButton2,this.Label1,Page);
}
private void ImageButton2_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
this.MyAutoPage.DataSetRecord(this.DataGrid1,this.ViewState["sql"].ToString(),"id","next",this.ImageButton1,this.ImageButton2,this.Label1,Page);
}
private void Button_ShowAll_Click(object sender, System.EventArgs e)
{
Common.DataBase MyDataBase = new Common.DataBase();
MyDataBase.DataSetRecord(this.DataGrid1,this.ViewState["sql"].ToString(),"id");
}
private void Button_ToExcel_Click(object sender, System.EventArgs e)
{
Common.excel.DownExel("导出资料", DataGrid1,Page);
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
QQ类似的聊天源代码和代码生成器
共147个文件
gif:70个
jpg:18个
txt:15个
需积分: 3 13 下载量 86 浏览量
2008-09-09
14:22:10
上传
评论
收藏 7.93MB RAR 举报
温馨提示
QQ类似的聊天源代码和代码生成器,相当的不错哦,需要学习研究的朋友可以下看看
资源推荐
资源详情
资源评论
收起资源包目录
QQ类似的聊天源代码和代码生成器 (147个子文件)
AutoCode 数据库 915KB
确定按钮.cb 900B
Web.config 4KB
app.config 350B
app.config 350B
AutoCode.exe.config 266B
TCPClientClient.cs 12KB
TCPClientClient.cs 12KB
clsP2P.cs 3KB
clsP2P.cs 3KB
AssemblyInfo.cs 2KB
AssemblyInfo.cs 2KB
WinSockClient.csproj 6KB
WinSockClient.csproj 6KB
style.css 16KB
common.css 2KB
table.css 1KB
BBThumbs.dat 75KB
BBThumbs.dat 30KB
Thumbs.db 80KB
Thumbs.db 9KB
Common.dll 64KB
教程.exe 7.97MB
AutoCode.exe 144KB
随机派岗.gif 5KB
清除记录.gif 5KB
随即分组.gif 5KB
导出记录.gif 5KB
delete.gif 5KB
submit.gif 5KB
去年同期对比.gif 4KB
next_button_unable.gif 2KB
next_button.GIF 2KB
prev_button_unable.gif 1KB
prev_button.gif 1KB
p_password.gif 612B
p_info.gif 609B
p_help.gif 606B
p_exit.gif 600B
p_menu1.gif 440B
p_menu.gif 392B
line_r1_c3.gif 345B
line_r1_c1.gif 338B
i_cfg.gif 315B
i_exit.gif 314B
resultBar3.gif 304B
resultBar4.gif 302B
resultBar1.gif 295B
i_tip.gif 278B
curDayTip.gif 276B
t_text.gif 274B
scrolldown.gif 270B
scrollup.gif 268B
i_cancel.gif 240B
i_del.gif 234B
selDayBg.gif 221B
resultBar5.gif 200B
resultBar2.gif 197B
p_tabs1.gif 173B
p_tabs.gif 167B
i_preview.gif 139B
i_in.gif 135B
i_out.gif 132B
i_print.gif 132B
i_calc.gif 129B
i_modify.gif 127B
i_key.gif 123B
i_open.gif 120B
i_back.gif 119B
cbb_drop.gif 111B
i_save.gif 110B
i_run2.gif 110B
i_bal.gif 109B
i_face.gif 107B
i_search.gif 106B
i_yes.gif 104B
i_foot.gif 101B
i_man.gif 99B
i_audit.gif 99B
i_new.gif 98B
i_msg.gif 97B
i_help.gif 95B
i_mes.gif 92B
i_logon.gif 85B
i_run.gif 84B
i_start.gif 82B
i_stop.gif 79B
i_down.gif 76B
i_left.gif 76B
i_right.gif 75B
i_up.gif 74B
i_blank.gif 58B
blank.gif 43B
i_split.gif 43B
App.ico 1KB
App.ico 1KB
main.jpg 84KB
main.jpg 84KB
p_title.JPG 38KB
p_title副本.jpg 37KB
共 147 条
- 1
- 2
资源评论
jacky_qin2000
- 粉丝: 1
- 资源: 30
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功