I've recently finished building one of my first websites (and CMS) in ASP.NET but have came across a problem where a RequiredFieldValidator isn't working as it should do? I originally created the admin page to not require the RequiredFieldValidator, but now that I do need it the page won't acknowledge it's there. I have even set the field in the database to not accept nulls, but the query will still insert a null value into the database (SQL Server 2008 Express).
Hopefully someone can tell me what I'm doing wrong! The TextBox that I'm referring to is "txtSectionTitle"
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Register TagPrefix="ThePines" TagName="Navigation" Src="includes/navigation.ascx" %>
<%@ Register TagPrefix="ThePines" TagName="AdminNavigation" Src="includes/adminNavigation.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<title>Add New Section - <%= ConfigurationManager.AppSettings["Web_Name"] %></title>
View Complete Post