magritton
5/6/2014 - 7:54 PM

Store and retrieve values from a hidden field. This is used to store a value in the hidden field on the server and then retrieve it with the

Store and retrieve values from a hidden field. This is used to store a value in the hidden field on the server and then retrieve it with the client without postbacks

//on the client side - setting a value

hfInvoiceAtt.Set("CustomerNumber", CustomerNum);
hfInvoiceAtt.Set("CompanyName", CompanyName);
hfInvoiceAtt.PerformCallback();

//on the server side - get a value out

(string)hfInvoiceAtt["InvoiceNumber"];

<dx:ASPxHiddenField ID="hfExportCreditLimits" runat="server">

            <ClientSideEvents EndCallback="function(s,e){
                var i = hfExportCreditLimits.Get('CustomerNumber');
                alert(i);
                }" />
        </dx:ASPxHiddenField>