C# 如何在c中绑定转发器控件中的背景色#
单击“删除”按钮所在行的颜色高亮显示,但另一行的颜色在“回发”之后C# 如何在c中绑定转发器控件中的背景色#,c#,asp.net,repeater,C#,Asp.net,Repeater,单击“删除”按钮所在行的颜色高亮显示,但另一行的颜色在“回发”之后 protected void rptLine_ItemCommand(object source, RepeaterCommandEventArgs e) { if (newRow != null) { if (auditLine.Is_HCPCS_CPT_Deleted == true) { newRow.BgColor = "#FFFFFF";
protected void rptLine_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (newRow != null)
{
if (auditLine.Is_HCPCS_CPT_Deleted == true)
{
newRow.BgColor = "#FFFFFF";
auditLine.Is_HCPCS_CPT_Deleted = false;
}
else
{
if (ddlDocument.SelectedIndex == 0 ||
ddlReason.SelectedIndex == 0)
{
ScriptManager.RegisterStartupScript(this,
this.GetType(), "error",
"alert('Document and Reason are mandatory for primary Diagnosis code.');", true);
}
else
{
auditLine.Is_HCPCS_CPT_Deleted = true;
newRow.BgColor = "#FF7256";
}
}
}
}
如何将背景色应用于其他行?你能把这封信寄出去吗code@Krishna我已经发布了代码。我正在Itemcommand中应用背景色。你说其他行的颜色在post back之后,你如何将背景应用于这些行?