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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sandeep Singh ShekhawatPosted Nov 2, 2012, 1:11 AM
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 WadjePosted Nov 2, 2012, 1:09 AM
Javascript is used for client side you can not be establish connection to sql serevr using javascript