asp.net(d2005) update? |
尚未結案
|
bear28
一般會員 發表:44 回覆:53 積分:19 註冊:2002-09-10 發送簡訊給我 |
執行下列程式碼
dawebgdata.updateCommand.Parameters['witem'].Value:=edwitem.Text;
dawebgdata.updateCommand.Parameters['offno'].Value:=goffno;
dawebgdata.updateCommand.Parameters['manno'].Value:=guserid;
dawebgdata.updateCommand.Parameters['date1'].Value:=stoday;
dawebgdata.updateCommand.Parameters['dna'].Value:=eddna.SelectedValue;
dawebgdata.updateCommand.Parameters['money'].Value:=edmoney.Text;
dawebgdata.updateCommand.Parameters['note'].Value:=ednote.Text;
dawebgdata.updateCommand.Parameters['predate'].Value:=edpredate.Text; dawebgdata.updateCommand.Connection.ConnectionString:=ConfigurationSettings.AppSettings['drback'];
dawebgdata.updateCommand.Connection.Open;
dawebgdata.updateCommand.ExecuteNonQuery;
dawebgdata.updateCommand.Connection.Close; 但有錯誤訊息
Execute failed. SQL State: 22018, SQL Error Code: 0 Invalid character value for cast specification.
...
堆疊追蹤: [BdpException: Execute failed. SQL State: 22018, SQL Error Code: 0
Invalid character value for cast specification.
]
Borland.Data.Provider.BdpCommand.a(CommandBehavior , ISQLCursor& , Int16& ) 1370
Borland.Data.Provider.BdpCommand.ExecuteNonQuery() 102
searchclothb.TWebForm1.bt3_Click(Object sender, EventArgs e) in searchcloths\searchclothb.pas:599
System.Web.UI.WebControls.Button.OnClick(EventArgs e) 108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) 57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) 18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) 33
System.Web.UI.Page.ProcessRequestMain() 1277 不知為何有錯?(vs.net2003可以進行)
|
code6421
版主 發表:43 回覆:223 積分:208 註冊:2002-08-16 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |