Repeater
create session with linkbutton using repeater in c#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Deepak VermaPosted Oct 6, 2014, 1:05 AM
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; }