Author: jfeeney | Posted on: 2/13/2010 8:04:24 AM | Views : 293

 I have the following code. I was getting an error that did not crap out the screen but instead when I hit the button I saw down in the bottom left hand corner of IE there is a yellow triangle that shows. When you click on the yellow triangle a message shows that says - Erros on this page may cause it to work incorrectly - Unterminated String Constant.
Initially in my code example I had test="130". In the database SiteID is DataType nchar(10). So when I changed test to "130       ". It worked.
I have two questions:
1. I was surprised that my try-catch routine did not pickup the fact that it did not find "130" when it was looking for 10 character string field. Any ideas on how a try-catch is setup for setting dropdownlist.SelectedValue= routine (espcially since this is a string...normally I would have a numeric itemID).
2. After the value did get set using "130 &n ...

Go to the complete details ...