I want to Code for Microsoft Sql Server 2005 Database connectivity using Java Script in Asp.net.
Thanks and Regards,
Sagar.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Nov 1, 2012, 9:11 PM EDT
Create database connection method in Web service/ASMX and call that method in javascript. That web service reference should be added on script manager 's service reference tag.like
you can also Jquery ajax means use jquery library and create JSON call to call connection method from web service or aspx.cs page which is declare as [web Method]
for example
//HERE METHOD will be call
}}
Vithal WadjeRank #19 · 47.2K reputationPosted Nov 1, 2012, 9:09 PM EDT
Javascript is used for client side you can not be establish connection to sql serevr using javascript