I am trying to set up a forum with a tutorial from aspnettutorials.com and when trying to add a post I get this error:
The conversion of a nvarchar data type to a smalldatetime data type resulted in an out-of-range value.
The statement has been terminated.
SqlDataReader rdr = null;
//setup our data to insert into the post table
string postUserName = Page.User.Identity.Name;
string postTitle = ((TextBox)LoginView1.FindControl("txtTitle")).Text;
string postMessage = ((TextBox)LoginView1.FindControl("txtMessage")).Text;
DateTime postDateTime = DateTime.Now;
int topicId = int.Parse(Request.QueryString["id"]);
//Add appropriate data to the post table
//setup our connection to the db
SqlConnection conn = new SqlConnection(WebConfigurationManager.ConnectionStrings["AvrilwebConnectionString"].ConnectionString);
//create our ...
Go to the complete details ...