For the sake of debuging, Instead of Redirecting, Try displaying the content of your Session["UserID"] variable in order to validate that it was properly assined the txtID.Text.
This will reduce the the area of searching in order to resolve your issue.
Also, Make sure Session["UserID"] is properly Initialize before trying to use it.