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

var ordervalue = $("#" + '<%= hdnSort.ClientID %>').val();
           if (ordervalue == '') {
               $("#" + '<%= hdnSort.ClientID %>').val('asec');
                   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
Updated 30-Jul-14 23:28pm

1 solution

Try this as

$("#<%= hdnSort.ClientID %>").arrt('value')
Share this answer
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