>I have something weird that I cannot resolve. I have observed that tonight. In my .NET Web site, I am including a reference to a Google syndication javascript file to include some content on the site. If I include the .js file in the HTML content that I am generating to my .aspx page, I am having this error:
>
>"Input string was not in a correct format."
>
>
>at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
> at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
>
>
>If I put the line in comment, I do not have the error.
>
>The line that is causing this is:
>
>
>loStringBuilder.Append("<script type=""text/javascript"" src=""http://pagead2.googlesyndication.com/pagead/show_ads.js"">" + oProcess.oApp.cCR)
>
>
>This doesn't make any sense to me. At this point, I am only adding some HTML content into the string builder. This should not generate that error. If I remove the s at the end in the .js extension, I will not have any error. I really cannot find what is causing that. This is a very weird situation that I have never seen before.
I guess I'm wrong here, but double double quotes look a bit strange to me. Can you use single quote inside the double quote for clarity?
If it's not broken, fix it until it is.
My Blog