Error converting data type nvarchar to float
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am getting the following error in my code. Error converting data type nvarchar to float. My code on button click is protected void btnFind_Click(object sender, EventArgs e) { SqlParameter LatParam; SqlParameter LngParam; if (zipcode.Text != "") { litAddress.Text = ""; litAddress1.Text = ""; string addressstring = zipcode.Text; string connstring = "Data Source=win2008-2;Initial Catalog=h1tm11;User ID=sa;Password=#1cub3123*;Persist Security Info=True;"; string SQL1 = "SELECT *, 6371.01 * ACOS( SIN( @lat*PI()/180 ) * SIN( store_lat*PI()/180 )