Server Error in '/' Application.

Conversion failed when converting the nvarchar value '4.300.000 ' to data type int.

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.Data.SqlClient.SqlException: Conversion failed when converting the nvarchar value '4.300.000 ' to data type int.

Source Error:


Line 21: 
Line 22:         EProduct product = new EProduct();
Line 23:         product = BProduct.ProducUpdateTotalViews(Request.QueryString["PID"]);
Line 24:         product = BProduct.GetProductByID(Convert.ToInt32(Request.QueryString["PID"]));
Line 25: 

Source File: d:\vhost\thanhducitvn.site\dogothachthathanoi.com\UserControl\Chitiet-SP.ascx.cs    Line: 23

Stack Trace:


[SqlException (0x80131904): Conversion failed when converting the nvarchar value '4.300.000 ' to data type int.]
   BCM.TemplateDemo.DAL.CProduct.ProducUpdateTotalViews(String _pid) in D:\THANHDUCITVN\CODE-FULL\CODE-XUONG-TRUONGPHAT\BCM.TemplateDemo\BCM.TemplateDemo\DAL\CProduct.cs:155
   BCM.TemplateDemo.BLL.BProduct.ProducUpdateTotalViews(String _pid) in D:\THANHDUCITVN\CODE-FULL\CODE-XUONG-TRUONGPHAT\BCM.TemplateDemo\BCM.TemplateDemo\BLL\BProduct.cs:89
   UserControl_Chitiet_SP.GetProductByID() in d:\vhost\thanhducitvn.site\dogothachthathanoi.com\UserControl\Chitiet-SP.ascx.cs:23
   UserControl_Chitiet_SP.Page_Load(Object sender, EventArgs e) in d:\vhost\thanhducitvn.site\dogothachthathanoi.com\UserControl\Chitiet-SP.ascx.cs:57
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0