protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e) { LinkButton lb = source as LinkButton; if(lb != null) { string clickedText = lb.Text; } }
string sd; sd = ((LinkButton)sender).Text; Response.Redirect("Page.aspx?id=" + sd);
protected void Data_Walking_List_ItemCommand(object source, DataListCommandEventArgs e) { LinkButton mylink = (LinkButton)e.Item.FindControl("Link_ViewDetials"); //Label city = (Label)e.Item.FindControl("City"); //Response.Cookies["city"].Value = city.Text; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)