Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'object' does not contain a definition for 'Replace' and no extension method 'Replace' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 91:                 lblIndiaPrice.Text = dr["IndianPrice"].ToString().Replace("medium;", "12px");
Line 92:                 lblUsPrice.Text = dr["UsPrice"].ToString().Replace("medium;", "12px");
Line 93:                 lblDescription.Text = dr["Description"].Replace("x-small;", "12px").ToString().Replace("medium;", "12px").Replace("small;", "12px");
Line 94:                 lblSampleContent.Text = dr["SampleContent"].ToString().Replace("medium;", "12px");
Line 95:                 lblContent.Text = dr["Content"].ToString().Replace("medium;", "12px");

Source File: c:\HostingSpaces\admin\entrepreneurindia.co\wwwroot\single-book-pdf\book-details.aspx.cs    Line: 93






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