ตั้งคำถาม / ดูคำถาม

คำถาม
 
หัวข้อ
к error
 
รายละเอียด
Input string was not in a correct format. 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.FormatException: Input string was not in a correct format. Source Error: Line 602: PD1 = Convert.ToDecimal(txtPD1.Text); PD2 = Convert.ToDecimal(txtPD2.Text); Line 603: F1 = Convert.ToDecimal(txtF1.Text); F2 = Convert.ToDecimal(txtF2.Text); Line 604: S1 = Convert.ToDecimal(txtS1.Text); S2 = Convert.ToDecimal(txtS2.Text); Line 605: U1 = Convert.ToDecimal(txtU1.Text); U2 = Convert.ToDecimal(txtU2.Text); Line 606: Source File: D:MIS2020_SRCCMS2020_SRCVRUClassRoom_Websectiongradeedit.aspx.cs Line: 604 Stack Trace: [FormatException: Input string was not in a correct format.] System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +10164195 System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) +238 System.Convert.ToDecimal(String value) +100 ClassRoom.sectiongradeedit.dgv_RowCommand(Object sender, GridViewCommandEventArgs e) in D:MIS2020_SRCCMS2020_SRCVRUClassRoom_Websectiongradeedit.aspx.cs:604 System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +149 System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +215 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
 
เขียนโดย    
Ѫ Email kpwat@hotmail.com
 
เขียนเมื่อ   
12 չҤ 2556   เวลา 08:02:37 น.
 
คำตอบ
 
โดย    .Ѳ Թҷԡ วันที่ 12 չҤ 2556 เวลา 12:51:24 น.
  ¹ .Ѫ
úǹҨ .ͧ(ѵê) µǨͺѺ
ҡ ERROR ʴ Һҵçͧͧǧṹ
PD P NP S U Ҩҧ ͤ DEFAULT 0.0 Ѻ
ж繤ҧԴ ERROR 㹡 CONVERT DECIMAL Ѻ
ҡ÷ͺٶҪǧṹ A-F 0.0 ź繤ҧ Դ ERROR ҨҤѺ
ѧúǹҨ .ФѺ