开发者

Arithmetic Operation Resulted in An Overflow ASP.net 2.0 VB

开发者 https://www.devze.com 2022-12-14 20:39 出处:网络
I am working with the following code: If chkApproximately.Checked Then \'.Item_Title = \"~ \" & String.Format(\"{0:N0}\", Int32.Parse(Me.txtQuantity.Text)) & \" \" & IIf(Me.ddlUnits.Text

I am working with the following code:

If chkApproximately.Checked Then
'.Item_Title = "~ " & String.Format("{0:N0}", Int32.Parse(Me.txtQuantity.Text)) & " " & IIf(Me.ddlUnits.Text = "Piece(s)", "", Me.ddlUnits.Text & " of ") & Me.ddlCategory.SelectedItem.Text.Replace("-", "").Trim  'txtItem_Title.Text.Trim
.Item_Title = "~ " & String.Format("{0:N0}", Me.txtQuant开发者_开发技巧ity.Text) & " " & IIf(Me.ddlUnits.Text = "Piece(s)", "", Me.ddlUnits.Text & " of ") & Me.ddlCategory.SelectedItem.Text.Replace("-", "").Trim  'txtItem_Title.Text.Trim
Else
.Item_Title = String.Format("{0:N0}", Me.txtQuantity.Text) & " " & IIf(Me.ddlUnits.Text = "Piece(s)", "", Me.ddlUnits.Text & " of ") & Me.ddlCategory.SelectedItem.Text.Replace("-", "").Trim 'txtItem_Title.Text.Trim
End If

When I run the aspx page on the web server, provide values and submit the form, I receive the error message stated in the question header. Can someone explain why this is happening and provide some suggested solutions?

Thanks, Sid


Guessing.. try '+' instead of '&'

0

精彩评论

暂无评论...
验证码 换一张
取 消