return null with query string whtn i use ajax-jquery

0 votes

this is my jquery code:

<script type="text/javascript">
    $(document).ready(function () {
        $("a").hover(function () {

            $.ajax({
                type: "POST",
                url:"Dbread.aspx",

                data: "name=salam",
                success: function (result) {
                    alert(result);


                } //end of success




            });


        }, function () {



        });


    });

</script>

in Dbread.aspx i wrote:

      string str= Request.QueryString["name"];
    Response.Write(str);

but the problem is that query string result is null all times!!! what is problem?

Jul 22 in Web Development by gaurav
• 17,580 points
15 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Web Development

0 votes
0 answers

return null with query string whtn i use ajax-jquery

this is my jquery code: <script type="text/javascript"> ...READ MORE

Jul 21 in Web Development by gaurav
• 17,580 points
8 views
0 votes
1 answer

How to use JQuery with ReactJS

Yes, we can use jQuery in ReactJs. ...READ MORE

answered Jun 22 in Web Development by rajatha
• 7,040 points
15 views
0 votes
0 answers

How can I get form data with JavaScript/jQuery?

Is there a simple, one-line way to ...READ MORE

Jun 29 in Web Development by gaurav
• 17,580 points
21 views
0 votes
0 answers

I cant hide divs which has spesific class with Jquery

I changed my code to below code ...READ MORE

Jul 20 in Web Development by gaurav
• 17,580 points
5 views
0 votes
0 answers

How can I specify Google map with driving direction in jQuery mobile

I have done a Google Maps based ...READ MORE

Jul 20 in Web Development by gaurav
• 17,580 points
10 views
0 votes
0 answers

How an I get all form elements (input, textarea & select) with jQuery?

Is there an easy way (without listing ...READ MORE

Jul 26 in Web Development by gaurav
• 17,580 points
9 views
0 votes
1 answer

jQuery UI " $("#datepicker").datepicker is not a function"

I struggled with a similar problem for ...READ MORE

answered Feb 17 in Java by Soham
• 8,740 points
1,511 views
0 votes
0 answers

TypeError: $(...).DataTable is not a function

I am working on jQuery's Datatable JS ...READ MORE

Apr 29 in Git & GitHub by Kichu
• 19,040 points
667 views
0 votes
1 answer

jQuery UI " $("#datepicker").datepicker is not a function"

The "$(...).datepicker is not a function" jQuery ...READ MORE

answered Jun 6 in JQuery by Edureka
• 13,640 points
67 views
0 votes
1 answer

Ajax using JQuery in ASP .NET c#

jQuery Ajax in ASP.Net $.ajax({      & ...READ MORE

answered Jun 15 in JQuery by rajatha
• 7,040 points
49 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP