When I use the server side validation without having using code behind serverside validation works. It does not work when I separate my code from the aspx file and use the codebehind page directive.<BR><BR>Problem fixed. I am creating a dynamically populated radiobuttonlist which was being populated every time I submitted the form causing my radio button selection to be lost and the radiobuttonlist repopulated. The radio button selection consequently failed validation everytime. I added the following code in the Page_Load method to fix the problem:<BR><BR>If radiobuttonlist1.SelectedIndex = -1 Then<BR> Dataset1.Clear()<BR> SqlDataAdapter1.Fill Dataset1, "p_storedprocedurename")<BR> Page.DataBind()<BR>End If<BR>