Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hii ,

JavaScript
var ordervalue = $("#" + '<%= hdnSort.ClientID %>').val();
           if (ordervalue == '') {
               $("#" + '<%= hdnSort.ClientID %>').val('asec');
               $.ajax({
                   type: "POST",
                   url: "DevelopmentReport.aspx/SortingCall",
                   data: null,
                   //dataType: "json",
                   async: true,
                   cache: false,
                  // success: function () {
                      // $("#" + '<%= hdnSort.ClientID %>').val('asec');
                   //}
               })
               }


this is my function , which gets called on onclientclik , and server side webmethods gets invoked ..

but the value mentaining inside hiddenfield here , gets lossted when i try to check in my webmethiod ,the value of hdnSort.

Please suggest
Posted
Updated 30-Jul-14 23:28pm
v2

1 solution

Try this as

JavaScript
$("#<%= hdnSort.ClientID %>").arrt('value')
 
Share this answer
 
Comments
Torakami 31-Jul-14 5:36am    
this is for what purpose ?

i am not getting value in my codebehind method , but i am getting in this method where i am checking if condition

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