Your question, your audience. Choose who sees your identity—and your question—with question security.
if(session["SortDir"].ToString() == "ASC")
DataTable.Sort = "Column DESC";
DataTable.Sort = "Column ASC";
Open in new window
<asp:linkbutton id="LinkButton1" runat="server">Link Test</asp:linkbutton>
private void LinkButton1_Click(object sender, System.EventArgs e)
// code to sort your table
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
Be seen. Boost your question’s priority for more expert views and faster solutions