I am programming using .net as front end and SQL server as back end and have the foll
i have the following error in the code. please help me solve it
Server Error in '/Project' Application.
--------------------------------------------------------------------------------
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
Source Error:
Line 35:
Line 36: DataSet ds = new DataSet();
Line 37: da.Fill(ds);
Line 38: GridView1.DataSource = ds;
Line 39: GridView1.DataBind();
Collapse | Copy Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;
Just a quick question, are you trying to get the Username, LoginTime, LogoutTime, UploadFile and DownloadFile from logindata where the LoginTime = TextBox1.Text?
Bookmarks