Click here to Skip to main content
15,922,650 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to insert data using only JavaScript and JQuery
without use WebMethod

What I have tried:

Insert data using only JavaScript and JQuery
without use WebMethod
Posted
Updated 20-Nov-16 23:27pm

1 solution

jQuery runs on the client and (I assume) your data store is on the server so the only way to update it is via calling server-side code such as a web method. So basically you can't do what you're looking to do, code on the client can't manipulate a database on the server.
 
Share this answer
 
Comments
Kornfeld Eliyahu Peter 21-Nov-16 5:29am    
Not to mention, that if somehow the database was open to the client directly, it would create a great security hole as JavaScript lacks the ability to hide sensitive info...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900