الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

Cast Of String

بدأه كمبيوترمان في 20 نوفمبر 2009 · 2 رد · 854 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

--------------------------------------------------------------------------------

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

#2

السلام عليكم ورحمة الله وبركاته

عند الحفظ فى قاعدة البيانات قم بتهيئة التاريخ بالشكل MM/dd/yyyy

إن قلت قال الله قال رسولـه همزوك همز المنكر المتعالي
أو قلت قد قال الصحابة والألـى تبعاً لهم بالقول والأعمال
أو قلت قـال الشافعي وأحمد و أبو حنيفة والإمام الغالي
صدوا عن وحي الإله ودينـه واحتالوا على حرام الله بالإحلال
يا أمةً لعبت بدين نبيها كتلاعب الصبيان في الأوحال
حاشا رسول الله يحكم بالهوى تلك إذاً حكومة الضلال

feed.1.gif

#3
كمبيوترمان كتب:
--------------------------------------------------------------------------------

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

إلصق شفرة الصفحة هذه هنا حتى نساعدك في تحويل النص إلى تاريخ كما وضح لك سابقا.

بالتوفيق

logo.gif
استضافة ويندوز


اقتباس

مساحة تبدأ من 2000 ميجا بايت بسعر 1.99 دولار شهريا.ا

اقتباس

ASP.NET 1.1-2.0-3.0-3.5-4.0-4.5.1 / MVC ASP.NET / PHP 5.x / ColdFusion / MSSQL 2008 & 2012 / MYSQL

مواضيع مشابهة