alphabetical a-z list with hyperlink

Posted by Mahesh.d16 under ASP.NET on 3/12/2011 | Points: 10 | Views : 3177 | Status : [Member] | Replies : 1
hi

i wanna display alphabetical a-z with hyperlink
and clicking on any hyperlink should display all records
starting with clicked alphabet.




Responses

Posted by: Sksamantaray on: 1/6/2012 [Member] Silver | Points: 25

Up
0
Down


<asp:LinkButton id="lnbA" runat="Server" CommandArgument="a" onclick="lnbA_Click" />
<asp:LinkButton id="lnbB" runat="Server" CommandArgument="b" onclick="lnbA_Click" />

Then
protected void lnbA_Click(object sender,EventArgs e)
{
LinkButton Searchbtn=sender as LinkButton;
string SearchChar=Searchbtn.CommandArgument.ToString().Trim();
// call your procedure passing the SearchChar as argument
}

Thanks,
Sanjay

Mahesh.d16, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response