In alert ,I'm getting whole text whatever is there in single quote declared for var conn, but I need the value of myconnstring which is set in web.config (the value can be data source;dbname whatever).