Click here to Skip to main content
15,888,527 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to read first two letters from the string Pin
developerit26-May-10 22:01
developerit26-May-10 22:01 
AnswerRe: how to read first two letters from the string Pin
Pete O'Hanlon26-May-10 4:17
mvePete O'Hanlon26-May-10 4:17 
QuestionRad Ajax manager and rowclick event Pin
bigphish26-May-10 3:25
bigphish26-May-10 3:25 
Questionneed to create dynamic table Pin
dwadasi26-May-10 3:11
dwadasi26-May-10 3:11 
AnswerRe: need to create dynamic table Pin
Sandeep Mewara26-May-10 9:30
mveSandeep Mewara26-May-10 9:30 
GeneralRe: need to create dynamic table Pin
dwadasi27-May-10 23:41
dwadasi27-May-10 23:41 
QuestionGridview with A-Z Filter Pin
geeeeeeeetha26-May-10 1:02
geeeeeeeetha26-May-10 1:02 
AnswerRe: Gridview with A-Z Filter Pin
Sneha Bisht26-May-10 1:58
Sneha Bisht26-May-10 1:58 
Try This , if anu probs let me know

create Datalist dlist_chars in design

<asp:DataList ID="dlist_chars" Width="100%" CellPadding="5" CellSpacing="5" DataKeyField="PageIndex"
runat="server" RepeatColumns="26" RepeatDirection="Horizontal" OnItemDataBound="dlist_chars_ItemDataBound">
<ItemTemplate>
<asp:LinkButton CssClass="detail_link" ID="lnl_chars" OnClick="LinkButton1_Click"
CommandArgument='<%# Eval("PageText") %>' runat="server" Text='<%#Eval("PageText")%>'></asp:LinkButton>
</ItemTemplate>
</asp:DataList>



private void CreateAlpha()
{
DataTable dt = new DataTable();
dt.Columns.Add("PageIndex");
dt.Columns.Add("PageText");
if (this.ViewState["Paging"] == null)
{
for (int i = 65; i <= 90; i++)
{
DataRow dr = dt.NewRow();
dr[0] = Char.ConvertFromUtf32(i);
dr[1] = Char.ConvertFromUtf32(i);
dt.Rows.Add(dr);
}
this.ViewState["Paging"] = dt;
}
else
dt = (DataTable)this.ViewState["Paging"];
dlist_chars.DataSource = dt;
dlist_chars.DataBind();
}



on link buton click in datalist


protected void LinkButton1_Click(object sender, EventArgs e)
{
LinkButton myButton = sender as LinkButton;
if (myButton != null)
{
string text =(myButton.CommandArgument);
clsEmployee emp = new clsEmployee();
emp.empID = 1;
if (text == "| All")
{
emp.empName = "%";
}
else
{
emp.empName = text;
}

DataSet ds = new DataSet();

// fetcha reccord from another datalist dlist_record then bind

dlist_record.DataSource = ds;
dlist_record.DataBind();


}

}
GeneralRe: Gridview with A-Z Filter Pin
Arun Jacob26-May-10 2:20
Arun Jacob26-May-10 2:20 
AnswerRe: Gridview with A-Z Filter Pin
Sneha Bisht26-May-10 1:59
Sneha Bisht26-May-10 1:59 
QuestionConvert String to Int Pin
siva45526-May-10 0:28
siva45526-May-10 0:28 
AnswerRe: Convert String to Int Pin
Peace ON26-May-10 0:32
Peace ON26-May-10 0:32 
GeneralRe: Convert String to Int Pin
siva45526-May-10 0:39
siva45526-May-10 0:39 
AnswerRe: Convert String to Int Pin
Peace ON26-May-10 1:04
Peace ON26-May-10 1:04 
GeneralRe: Convert String to Int Pin
siva45526-May-10 1:41
siva45526-May-10 1:41 
GeneralRe: Convert String to Int Pin
FarmerHE26-May-10 1:59
FarmerHE26-May-10 1:59 
GeneralRe: Convert String to Int Pin
siva45526-May-10 2:41
siva45526-May-10 2:41 
GeneralRe: Convert String to Int Pin
michaelschmitt26-May-10 5:48
michaelschmitt26-May-10 5:48 
QuestionRetrive binary data from Sql Sever Database Pin
puja25-May-10 23:00
puja25-May-10 23:00 
AnswerRe: Retrive binary data from Sql Sever Database Pin
Peace ON25-May-10 23:35
Peace ON25-May-10 23:35 
GeneralRe: Retrive binary data from Sql Sever Database Pin
puja26-May-10 0:50
puja26-May-10 0:50 
GeneralRe: Retrive binary data from Sql Sever Database Pin
T M Gray26-May-10 7:52
T M Gray26-May-10 7:52 
GeneralRe: Retrive binary data from Sql Sever Database Pin
puja27-May-10 21:07
puja27-May-10 21:07 
GeneralRe: Retrive binary data from Sql Sever Database Pin
T M Gray28-May-10 5:14
T M Gray28-May-10 5:14 
QuestionModel PopUp Problem Pin
AtiqueJnp25-May-10 21:29
AtiqueJnp25-May-10 21:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.