Get Post ID From URL
using System; using System.Collections.Generic; using System.Text; public class ForumUtility { public int GetPostIDFromURL(string url) { string[] splitURL = url.Split(new char[] { '&', '=', '?' }); if (splitURL[1].ToLower() == "PostID".ToLower()) return Convert.ToInt32(splitURL[2]); else return 0; } }