<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<asp:LinkButton ID="lnkAlphabet" runat="server" Text='<%#Eval("Value")%>' OnClick="Alphabet_Click" CssClass="listbtn" Width="31px" Height="15px" />
<div class="clear-list">
</div>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="lnkAlphabet" />
</Triggers>
</asp:UpdatePanel>
********
This is my Code Behind :
***********
protected void Alphabet_Click(object sender, EventArgs e)
{
LinkButton lnkAlphabetID = (LinkButton)sender;
lnkAlphabetID.BackColor = System.Drawing.Color.Red;
ViewState["CurrentAlphabet"] = lnkAlphabetID.Text;
this.GenerateAlphabets();
this.BindDataList("");
ScriptManager.RegisterStartupScript(this, GetType(), "getdata", "javascript:Highlight()", true);
}
如何显示所选字母单击时单击“活动”。 (字母是A到Z)?单击字母更改背景颜色