title: Determine to SQL Order by ASC or DSC
body: <p>I have a datalist that receives values from a MySQL database.  This datalist can be sorted by various column values such 'Title', 'Author', 'Published Date', etc.  To determine what value to sort by, the value is inserted into the query string.  </p>
  
  <p>I.e. www.web.com/default.aspx?order_by=title  </p>
  
  <p>I also determine wheter to order in ascending order or descending order.</p>
  
  <p>I.e. www.web.com/default.aspx?order_by=title&amp;direction=asc</p>
  
  <p>I want to be able to set the direction to asc if the 
  
  <p>(a working example of what I'm looking to do can be found at </p>
  
  <p><a href="http://www.milwaukeejobs.com/jobs/category/Information-Technology-Internet-Web-Development/Milwaukee,-WI/1306" rel="nofollow noreferrer">http://www.milwaukeejobs.com/jobs/category/Information-Technology-Internet-Web-Development/Milwaukee,-WI/1306</a></p>
  
  <p>*Notice if you click the sort values such as by Date its set to ASC, if you click it again its set to DSC; I'd like to do this on my site * )</p>
  
  <p>I'm not sure how to do this.  I was thinking of a <code>If Page.IsPostback</code> condition, but clicking the url does not cause a postback.  I thought about grabbing the sender object, or system.eventargs variables that are sent through the Page.Onload event, but I'm not sure if I could do anything with these.  Any ideas?</p>