字母表分页突出显示活动字母表

时间:2014-10-18 06:30:11

标签: javascript c# jquery asp.net .net

 
   

<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)?单击字母更改背景颜色

0 个答案:

没有答案