protected void saveneworderbtn_Click(object sender, EventArgs e)
{
//Response.Write(Hidden1.Value);
string trimmer = inpHide.Value;
trimmer = trimmer.TrimEnd('|');
string updateQuery = "update dnn_Table_1 set SortId = {0} where ImageId={1}";
StringBuilder sb = new StringBuilder();
string[] originalIdAndSeqNumberArray = trimmer.Split('|');
foreach (var originalIdAndSeqNumberCombined in originalIdAndSeqNumberArray)
{
var tempArray = originalIdAndSeqNumberCombined.Split(':');
int originalId = Convert.ToInt32(tempArray[0]);
int sequenceNumber = Convert.ToInt32(tempArray[1]);
sb.Append(String.Format(updateQuery, sequenceNumber, originalId));
sb.Append(System.Environment.NewLine);
}
}
如何在排序和保存转发器行后启用或禁用按钮?我希望在排序和保存后禁用此按钮。排序完成后,我希望启用此按钮。怎么做?