--------------------------------------------------------------------------------
Cast from string "20/11/2009 12:17:40 AM" to type 'Date' is not valid.
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.InvalidCastException: Cast from string "20/11/2009 12:17:40 AM" to type 'Date' is not valid.
Source Error:
Line 110:
Line 111: Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click
Line 112: DAobj.InsrtResption(Me.Name.Text, Me.Address.Text, Me.Supervisor.Text, Me.Type_Visit.Text, Me.Comment.Text, Me.Datee.Text)
Line 113: DAobj.FillAllResption()
Line 114: SuperDG.DataBind()
Source File: C:\Inetpub\wwwroot\National Services_WebUI\Resption.aspx.vb Line: 112
Stack Trace:
[invalidCastException: Cast from string "20/11/2009 12:17:40 AM" to type 'Date' is not valid.]
Microsoft.VisualBasic.CompilerServices.DateType.FromString(String Value, CultureInfo culture)
Microsoft.VisualBasic.CompilerServices.DateType.FromString(String Value)
WebUI.Resption.Save_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\National Services_WebUI\Resption.aspx.vb:112
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBa
ckEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain() +1277
اريد حل هذا المنتدي طرحنا فيه كثير من المشاكل ولم نلقى ردود
وشكراً
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version

