System.Web.UI.WebControls.ChangePassword是“类型”,但此处被当做“变量”来使用。
protectedvoidbtnSure_Click(objectsender,EventArgse){stringsb=string.Empty;for(inti=0;...
protected void btnSure_Click(object sender, EventArgs e)
{
string sb = string.Empty;
for (int i = 0; i < this.gvProducts.Rows.Count; i++)
{
CheckBox cb = (gvProducts.Rows[i].FindControl("chkSelect")) as CheckBox;
if (cb.Checked == true)
{
sb += (gvProducts.Rows[i].FindControl("lblId") as Label).Text + ",";
}
}
string catagory = this.ddlCatagory.SelectedItem.Value;
ChangePassword(sb,catagory); 展开
{
string sb = string.Empty;
for (int i = 0; i < this.gvProducts.Rows.Count; i++)
{
CheckBox cb = (gvProducts.Rows[i].FindControl("chkSelect")) as CheckBox;
if (cb.Checked == true)
{
sb += (gvProducts.Rows[i].FindControl("lblId") as Label).Text + ",";
}
}
string catagory = this.ddlCatagory.SelectedItem.Value;
ChangePassword(sb,catagory); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询