Click here to Skip to main content
12,399,625 members (53,314 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET Ajax jQuery
I have a question about using jquery.ajax in ASP Projects,

in last ASP Project im uesd jQuery.ajax method to pass the values to the function in code behind, and that function nust save that data to Database, is it secure way or no?

if the answer is no, what can i do to save the data to database with ajax?
Posted 9-Jan-13 2:49am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

in last ASP Project im uesd jQuery.ajax method to pass the values to the function in code behind, and that function nust save that data to Database, is it secure way or no?
Yes, that's the way to use ajax. What's the issue? Sounds OK.
  Permalink  
Comments
Marcus Kramer 9-Jan-13 9:09am
   
+5.
shajarian_lover 9-Jan-13 9:17am
   
my question is that
is this way secure or no?
Sandeep Mewara 9-Jan-13 9:21am
   
It is.

Use querystring for normal data and send via form parameters using POST for data you think needs to be hidden.
If you need more, encrypt the data before sending.
shajarian_lover 9-Jan-13 9:34am
   
can you explain more about your solutions?
(i'm a beginner)
Sandeep Mewara 9-Jan-13 9:40am
   
Ok. Then read about WHAT & HOW of AJAX request first. Types of XMLHTTPRequest and their implementation. You will get it.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100