Tuesday, May 05th, 2009 | Author: admin

Always forgetting this one!

int sortOrder;

//a sort order has been entered
if (Int32.TryParse(txtSortOrder.Text, out sortOrder))
    { }
     else
   {
       sortOrder = 0;
   }

Category: ASP.NET, C#
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply