sql语句:
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
if exists ( select 1
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
from sysobjects
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
where id = object_id ( ' eb_b2c_system_merchandise ' )
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
and type = ' U ' )
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
drop table eb_b2c_system_merchandise
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
go
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
/**/ /*==============================================================*/
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
/**/ /* Table: eb_b2c_system_merchandise */
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
/**/ /*==============================================================*/
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
create table eb_b2c_system_merchandise (
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
auto numeric identity ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
MerId nvarchar ( 50 ) null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
MerName nvarchar ( 50 ) null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
CatId nvarchar ( 50 ) null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
PicName nvarchar ( 50 ) null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
Price numeric null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
VIPPrice numeric null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
Summary text null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
userID nvarchar ( 50 ) null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
RecordTime datetime null default getdate (),
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
MerState char ( 1 ) null default ' 0 ' ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
LastStateChangeTime datetime null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
UseBondLimit numeric null default 0 ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
NewMerTag char ( 1 ) null default ' 0 ' ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
BestMerTag char ( 1 ) null default ' 0 ' ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
PreferentialMerTag char ( 1 ) null default ' 0 ' ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
PreferentialPrice numeric null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
PreferentialLastTime datetime null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
SellHotTag char ( 1 ) null default ' 0 ' ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
CancellationTag char ( 1 ) null default ' 0 ' ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
JZHCarriage numeric null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
OtherCarriage numeric null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
AlarmCount numeric null default - 1 ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
CarriageFreeCount numeric null default - 1 ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
BarCode nvarchar ( 100 ) null default ' -1 ' ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
Stock numeric null default 0 ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
SortFlag char ( 1 ) null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
CatIdMerId nvarchar ( 100 ) not null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
CommendTag char ( 1 ) null default ' 0 ' ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
MerBrand nvarchar ( 50 ) null ,
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
constraint PK_EB_B2C_SYSTEM_MERCHANDISE primary key (CatIdMerId)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
go
CS代码:
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
using System;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
using System.Data;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
using System.Configuration;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
using System.Collections;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
using System.Web;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
using System.Web.Security;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
using System.Web.UI;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
using System.Web.UI.WebControls;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
using System.Web.UI.WebControls.WebParts;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
using System.Web.UI.HtmlControls;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
public partial class system_B2C_MerchandiseUpDown : System.Web.UI.Page
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
... {
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
protected void Page_Load(object sender, EventArgs e)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (!IsPostBack)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
BindDataGridView();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Bindrepeater();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
protected void anp_user_PageChanged(object sender, EventArgs e)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
/**//// <summary>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
/// 绑定GridView
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
/// </summary>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
public void BindDataGridView()
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
eb_b2c_system_merchandise mer = new eb_b2c_system_merchandise();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
DataTable dt = mer.GetAllMer();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt != null && dt.Rows.Count > 0)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for (int i = 0; i < dt.Rows.Count; i++)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["MerState"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["MerState"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["MerState"] = "×"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["NewMerTag"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["NewMerTag"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["NewMerTag"] = ""; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["BestMerTag"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["BestMerTag"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["BestMerTag"] = ""; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["PreferentialMerTag"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["PreferentialMerTag"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["PreferentialMerTag"] = ""; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["SortFlag"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["SortFlag"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["SortFlag"] = ""; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["SellHotTag"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["SellHotTag"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["SellHotTag"] = ""; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["CommendTag"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["CommendTag"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["CommendTag"] = ""; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dt.Rows[i]["PicName"] = "image/productimg/" + dt.Rows[i]["PicName"].ToString();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
SortPags sp = new SortPags(dt);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
this.GridView1.DataSource = sp.GetCurrentPage(anp_user.PageSize, anp_user.CurrentPageIndex);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
this.GridView1.DataBind();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
anp_user.RecordCount = dt.Rows.Count;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//动态设置用户自定义文本内容
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
anp_user.CustomInfoHTML = "记录总数:<font color="blue"><b>" + anp_user.RecordCount.ToString() + "</b></font>";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
anp_user.CustomInfoHTML += " 总页数:<font color="blue"><b>" + anp_user.PageCount.ToString() + "</b></font>";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
anp_user.CustomInfoHTML += " 当前页:<font color="red"><b>" + anp_user.CurrentPageIndex.ToString() + "</b></font>";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
public void Bindrepeater()
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
eb_b2c_system_merchandise mer = new eb_b2c_system_merchandise();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
DataTable dt = mer.GetAllMer();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt != null && dt.Rows.Count > 0)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for (int i = 0; i < dt.Rows.Count; i++)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["MerState"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["MerState"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["MerState"] = "×"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["NewMerTag"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["NewMerTag"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["NewMerTag"] = ""; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["BestMerTag"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["BestMerTag"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["BestMerTag"] = ""; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["PreferentialMerTag"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["PreferentialMerTag"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["PreferentialMerTag"] = ""; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["SortFlag"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["SortFlag"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["SortFlag"] = ""; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["SellHotTag"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["SellHotTag"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["SellHotTag"] = ""; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (dt.Rows[i]["CommendTag"].ToString() == "1")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["CommendTag"] = "√"; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{ dt.Rows[i]["CommendTag"] = ""; }
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dt.Rows[i]["PicName"] = "image/productimg/" + dt.Rows[i]["PicName"].ToString();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
rep_noJoin.DataSource = dt.DefaultView;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
rep_noJoin.DataBind();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
protected void bt_Up_Click(object sender, EventArgs e)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
gridview#region gridview
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
foreach(GridViewRow r in GridView1.Rows)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (r.RowType == DataControlRowType.DataRow)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
CheckBox chk = ((CheckBox)r.FindControl("CheckBox9"));
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (chk.Checked == true)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Label lb = (Label)r.FindControl("Label2");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
string catIDMerID = lb.Text.ToString().Trim();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
eb_b2c_system_merchandise eb = new eb_b2c_system_merchandise();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
eb.UpdataMerState("1", catIDMerID);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
BindDataGridView();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
#endregion
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for (int i = 0; i < rep_noJoin.Items.Count; i++)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
System.Web.UI.HtmlControls.HtmlInputCheckBox checkbox = (System.Web.UI.HtmlControls.HtmlInputCheckBox)rep_noJoin.Items[i].FindControl("checkbox1");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (checkbox != null)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (checkbox.Checked)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
string catIDMerID = ((System.Web.UI.HtmlControls.HtmlInputHidden)rep_noJoin.Items[i].FindControl("hd_id")).Value;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (catIDMerID != "")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
eb_b2c_system_merchandise eb = new eb_b2c_system_merchandise();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
eb.UpdataMerState("1", catIDMerID);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Bindrepeater();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
protected void bt_Down_Click(object sender, EventArgs e)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
GridView#region GridView
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
foreach (GridViewRow r in GridView1.Rows)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (r.RowType == DataControlRowType.DataRow)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
CheckBox chk = ((CheckBox)r.FindControl("CheckBox9"));
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (chk.Checked == true)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Label lb = (Label)r.FindControl("Label2");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
string catIDMerID = lb.Text.ToString().Trim();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
eb_b2c_system_merchandise eb = new eb_b2c_system_merchandise();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
eb.UpdataMerState("0", catIDMerID);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
BindDataGridView();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
#endregion
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for (int i = 0; i < rep_noJoin.Items.Count; i++)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
System.Web.UI.HtmlControls.HtmlInputCheckBox checkbox = (System.Web.UI.HtmlControls.HtmlInputCheckBox)rep_noJoin.Items[i].FindControl("checkbox1");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
// System.Web.UI.HtmlControls.HtmlInputHidden hiddenCatIdMerId= (System.Web.UI.HtmlControls.HtmlInputHidden)rep_noJoin.Items[i].FindControl("hiddenCatIdMerId");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (checkbox != null)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (checkbox.Checked)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
string catIDMerID = ((System.Web.UI.HtmlControls.HtmlInputHidden)rep_noJoin.Items[i].FindControl("hd_id")).Value;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (catIDMerID != "")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
eb_b2c_system_merchandise eb = new eb_b2c_system_merchandise();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
eb.UpdataMerState("0", catIDMerID);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Bindrepeater();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
protected void GridView1_DataBound(object sender, EventArgs e)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
foreach (GridViewRow r in GridView1.Rows)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (r.RowType == DataControlRowType.DataRow)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Label leb1 = ((Label)r.FindControl("Label1"));
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
HyperLink hl = (HyperLink)r.FindControl("HyperLink1");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (leb1.Text == "√")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
hl.Visible = false;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
Label lb = (Label)r.FindControl("Label2");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
string catIDMerID = lb.Text.ToString().Trim();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
hl.NavigateUrl = "B2C_MerchandiseEdit.aspx?catIDMerID=" + catIDMerID;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
protected void rep_noJoin_ItemDataBound(object sender, RepeaterItemEventArgs e)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//for (int i = 0; i < rep_noJoin.Items.Count; i++)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
System.Web.UI.HtmlControls.HtmlInputHidden MerState = (System.Web.UI.HtmlControls.HtmlInputHidden)e.Item.FindControl("MerState");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//checkbox = (System.Web.UI.HtmlControls.HtmlInputCheckBox)rep_noJoin.Items[i].FindControl("checkbox1");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
System.Web.UI.HtmlControls.HtmlAnchor HtmlAnchor = (System.Web.UI.HtmlControls.HtmlAnchor)e.Item.FindControl("a_edit");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
System.Web.UI.HtmlControls.HtmlInputHidden catIDMerID = (System.Web.UI.HtmlControls.HtmlInputHidden)e.Item.FindControl("hd_id");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (MerState != null && HtmlAnchor != null && catIDMerID!=null)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if (MerState.Value == "√")
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
HtmlAnchor.Visible = false;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
HtmlAnchor.Visible = true; HtmlAnchor.HRef = "B2C_MerchandiseEdit.aspx?catIDMerID=" + catIDMerID.Value;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
}
aspx代码:
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... @ Page Language="C#" AutoEventWireup="true" CodeFile="B2C_MerchandiseUpDown.aspx.cs"
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
Inherits="system_B2C_MerchandiseUpDown" %>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... @ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... --<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %> --%>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< html xmlns ="http://www.w3.org/1999/xhtml" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< head runat ="server" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< title > 无标题页 </ title >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< script language ="javascript" src ="js/Merchandise.js" type ="text/javascript" >
function ChooseAll(sel,check)
{
var objtb=document.getElementById(sel);
var num=objtb.getElementsByTagName("input");
var check=document.getElementById(check);
for(i=0;i<num.length;i++)
{
if(num[i].id!="chk_New" && num[i].id!="chk_best" && num[i].id!="chk_Hot" && num[i].id!="chk_Preferent" && num[i].id!="chk_Sort" && num[i].id!="chk_Commend" && num[i].id!="chk_Up" && num[i].id!="chk_Down")
if(num[i].tagName=="INPUT")
{
if(check.checked==true)
{num[i].checked=true;}
else{num[i].checked=false;}
}
}
}
</ script >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< link type ="text/css" href ="css/sub.css" rel ="stylesheet" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ head >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< body >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< form id ="form1" runat ="server" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< div >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:CheckBox ID ="chk_New" runat ="server" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:CheckBox ID ="chk_best" runat ="server" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:CheckBox ID ="chk_Preferent" runat ="server" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< br />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:CheckBox ID ="chk_Sort" runat ="server" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:CheckBox ID ="chk_Hot" runat ="server" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:CheckBox ID ="chk_Commend" runat ="server" />< br />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:CheckBox ID ="chk_Up" runat ="server" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:CheckBox ID ="chk_Down" runat ="server" />< br />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:Label ID ="Label1" runat ="server" Text ="Label" ></ asp:Label >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< br />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TextBox ID ="TextBox1" runat ="server" ></ asp:TextBox >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TextBox ID ="TextBox2" runat ="server" ></ asp:TextBox >< br />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TextBox ID ="TextBox3" runat ="server" ></ asp:TextBox >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:DropDownList ID ="DropDownList1" runat ="server" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:DropDownList >< br />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:GridView ID ="GridView1" runat ="server" AutoGenerateColumns ="False" OnDataBound ="GridView1_DataBound" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< Columns >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TemplateField HeaderText ="上架下架" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< EditItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TextBox ID ="TextBox1" runat ="server" ></ asp:TextBox >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ EditItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:CheckBox ID ="CheckBox9" runat ="server" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< HeaderTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
全选 < asp:CheckBox ID ="CheckBox10" runat ="server" onclick ='ChooseAll("form1","GridView1_ctl01_CheckBox10")' />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ HeaderTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TemplateField >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TemplateField HeaderText ="查看详细" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:LinkButton ID ="LinkButton1" runat ="server" CommandName ="show" > 详细 </ asp:LinkButton >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TemplateField >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TemplateField HeaderText ="编辑" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:HyperLink ID ="HyperLink1" runat ="server" > 编辑 </ asp:HyperLink >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TemplateField >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TemplateField HeaderText ="架状态" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< EditItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TextBox ID ="TextBox3" runat ="server" Text ='<%# Bind("MerState") % > '> </ asp:TextBox >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ EditItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:Label ID ="Label1" runat ="server" Text ='<%# Bind("MerState") % > '> </ asp:Label >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TemplateField >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundField DataField ="NewMerTag" HeaderText ="新品" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundField DataField ="BestMerTag" HeaderText ="最好品" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundField DataField ="PreferentialMerTag" HeaderText ="优惠品" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundField DataField ="SortFlag" HeaderText ="查询优先" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundField DataField ="SellHotTag" HeaderText ="热销品" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundField DataField ="CommendTag" HeaderText ="推荐品" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TemplateField HeaderText ="商品编号" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< EditItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TextBox ID ="TextBox4" runat ="server" Text ='<%# Bind("CatIdMerId") % > '> </ asp:TextBox >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ EditItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:Label ID ="Label2" runat ="server" Text ='<%# Bind("CatIdMerId") % > '> </ asp:Label >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TemplateField >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundField DataField ="MerName" HeaderText ="商品名称" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TemplateField HeaderText ="图片" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< EditItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TextBox ID ="TextBox2" runat ="server" Text ='<%# Bind("PicName") % > '> </ asp:TextBox >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ EditItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:Image ID ="Image1" runat ="server" ImageUrl ='<%#Bind("PicName")% > ' Width="50px"
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
Height="50px" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TemplateField >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ Columns >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< RowStyle HorizontalAlign ="Center" CssClass ="item1" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< HeaderStyle CssClass ="header1" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:GridView >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< table width ="100%" border ="0" align ="center" cellpadding ="0" cellspacing ="0" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< tr >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >< input name ="checkbox1" id ="checkbox1" type ="checkbox" value ="checkbox" onclick ='ChooseAll("form1","checkbox1")' />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
全选 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
查看详细 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
编辑 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
架状态 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
是否在删除区 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
新品 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
最好品 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
优惠品 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
查询优先 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
热销品 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
推荐品 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
商品代号 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
商品编号 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
商品名称 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="header1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
图片 </ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ tr >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:Repeater ID ="rep_noJoin" runat ="server" OnItemDataBound ="rep_noJoin_ItemDataBound" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< tr >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< input name ="checkbox1" id ="checkbox1" type ="checkbox" value ="checkbox" runat ="server" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< a href ='B2C_UserAdd.aspx?id=<%# DataBinder.Eval(Container, "DataItem.CatIdMerId") % > '>详细 </ a >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< a runat ="server" id ="a_edit" visible ="false" > 编辑 </ a >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... --<input type="hidden" runat="server" id="hiddenCatIdMerId" value='<%# DataBinder.Eval(Container, "DataItem.CatIdMerId")%>' />--%>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
</td>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
<td class="item1">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
<%# DataBinder.Eval(Container, "DataItem.MerState") %> < input type ="hidden" runat ="server" id ="MerState" value ='<%# DataBinder.Eval(Container, "DataItem.MerState")% > ' />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... # DataBinder.Eval(Container, "DataItem.MerState") %>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... # DataBinder.Eval(Container, "DataItem.NewMerTag") %>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... # DataBinder.Eval(Container, "DataItem.BestMerTag") %>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... # DataBinder.Eval(Container, "DataItem.PreferentialMerTag") %>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... # DataBinder.Eval(Container, "DataItem.SortFlag") %>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... # DataBinder.Eval(Container, "DataItem.SellHotTag") %>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... # DataBinder.Eval(Container, "DataItem.CommendTag") %>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... # DataBinder.Eval(Container, "DataItem.MerId") %>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... # DataBinder.Eval(Container, "DataItem.CatIdMerId") %> < input type ="hidden" runat ="server" id ="hd_id" value ='<%# DataBinder.Eval(Container, "DataItem.CatIdMerId")% > ' />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... # DataBinder.Eval(Container, "DataItem.MerName") %>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="item1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:Image ID ="Image2" runat ="server" ImageUrl ='<%# DataBinder.Eval(Container, "DataItem.PicName")% > ' Width="20px" Height="20px"/>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ tr >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:Repeater >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< tr >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td class ="footer1" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ tr >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ table >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< table width ="100%" border ="0" cellspacing ="0" cellpadding ="0" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< tr >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< td style ="height: 19px" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< webdiyer:AspNetPager id ="anp_user" runat ="server" pagesize ="10" showcustominfosection ="Left"
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
horizontalalign ="Right" alwaysshow ="True" onpagechanged ="anp_user_PageChanged" ></ webdiyer:AspNetPager >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<% ... --<webdiyer:AspNetPager ID="AspNetPager1" runat="server">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
</webdiyer:AspNetPager>-- %>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ td >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ tr >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ table >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:Button ID ="bt_Up" runat ="server" Text ="选中商品上架" CssClass ="button3" OnClick ="bt_Up_Click" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:Button ID ="bt_Down" runat ="server" Text ="选中商品下架" CssClass ="button3" OnClick ="bt_Down_Click" />
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ div >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ form >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ body >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ html >
repeater灵活应用相关推荐
- asp.net控件开发基础(19)
上两篇讨论了基本数据绑定控件的实现步骤,基本上我们按着步骤来就可以做出简单的数据绑定控件了.过年前在看DataGrid的实现,本来想写这个的,但2.0出了GridView了,再说表格控件实现比较复杂, ...
- 关于何种情况下使用DataGrid、DataList或Repeater的一些讨论
作者:Scott Mitchell [概述] WEB开发自从有了基于脚本的WEB编程技术(如ASP)以来,经历了一个漫长的过程.通过使用微软的ASP.Net技术,传统的ASP中大量的.单调乏味的.重复 ...
- repeater实现删除按钮
Repeater和DataGrid相比,repeater集成了较少的功能,高可定制化,repeater在客户端生成的html代码是非常干净的.但正是由于Repeater的简单,给我们带来了一定的开发难 ...
- JavaScript Repeater 模板控件
功能强大的模板引擎大都需要对模板进行语法解析,会有性能问题.通过把一个大的模板引擎根据不同呈现需求分隔成多个互相独立模板控件,可以降低处理复杂度提供处理性能,可以根据需求灵活组合这些模板控件得到一个可 ...
- Repeater使用 AspNetPager分页控件
一.AspNetPager分页控件 分页是Web应用程序中最常用到的功能之一,在ASP.NET中,虽然自带了一个可以分页的DataGrid(asp.net 1.1)和GridView(asp.net ...
- datalist,Repeater和Gridview的区别分析
griview优点:功能最强大,提供分页,编辑,删除,选择等等很多功能,使用最方便,直接拖拽到页面上,建立新的数据源,点几下鼠标就可以维护一个表的浏览.删除和修改了,而且是分页的哦.(增加我还没搞明白 ...
- Repeater控件结合UpdatePanel实现Ajax分页和删除功能
本人一直抱怨使用GridView来实现分页,删除等功能,GridView效率低下(虽然我们什么基本什么都不用做),而且不是很灵活,最近才发现Repeater控件实在是一个不错的控件. 首先 ...
- 灵活使用DataView
灵活使用DataView 可能大家都知道dataview这个名词的概念,但也许不是很多人可以说清楚在.net架构中它的应用范围和程度.比如:究竟datagrid和repeater这些控件是如何和数据关 ...
- Repeater简单应用(动态改变内部样式)
在园子里转了好久了,今天也把自己在应用中遇到的点点滴滴记录下来,大都是比较简单的,写的不对的地方还请大家多多指点. 闲话少说,还是说说今天要谈的:Reteater,做asp.net的朋友可能都很喜欢的 ...
最新文章
- 在CentOS 6.6上搭建OpenResty 1.9.7.4并输出示例
- 一文看懂BATH新基建:5G是基础,AI是内核
- 【hdu 6406】Taotao Picks Apples
- ORA-00031: session marked for kill 标记要终止的会话
- trove mysql 镜像_Linux运维----03.制作trove-mysql5.7镜像
- Too Many Segments (easy version) CodeForces - 1249D1(贪心+差分)
- Oracle AWR ASH
- php和c语言的字符数组中,字符数组和字符串的区别,C语言字符数组和字符串区别详解...
- cxfreeze打包pyqt5程序_基于PyQt5的简单RMSE计算小工具研究
- 茅台少女踩曲玄机何在?
- 理解crossentropy loss
- android 编译模块
- 3778. 平衡数组-AcWing题库
- java aws批量_通过 S3 Batch Operations (批量操作)功能轻松处理海量对象
- 安卓app逆向破解脱壳教程
- 计算机硕士工资一览表
- 豆瓣python-豆瓣+python
- 从零开始学GIMP:一.从基本图形开始
- JAVA.犹抱琵琶半遮面
- 字节跳动自研万亿级图数据库 图计算实践
热门文章
- 【dsPIC33】UART收发数据
- Gulp的安装与配置
- 小程序自定义Tabber,使其图标突出
- 商品评论获取与词云图可视化分析
- 二分搜索算法(以力扣周赛“每个小孩最多分到多少糖果”为例)
- 关联规则挖掘——Apriori算法的基本原理以及改进
- Android gps 关于SUPL介绍
- 快速添加管家婆软件里的商品条码(标准条码库)
- 自由软件日-自由、开放amp;DIY
- 分享商品详情图片预览组件