Repeater
create session with linkbutton using repeater in c#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Deepak VermaRank #672 · 3.6K reputationPosted Oct 5, 2014, 9:05 PM EDT
As I understand, you want to create Session on click of LinkButton inside Repeater.
And you've a Repeater and LinkButton like this:
So, you can create Session on
1) ItemCommand event of Repeater
2) Command event of LinkButton.
See here,
protected void Repeater1_ItemCommand(object sender, RepeaterCommandEventArgs e)
{ Session["YourKey"] = string.Empty; }
protected void LinkButton1_Command(object sender, CommandEventArgs e)
{ Session["YourKey"] = string.Empty; }