Javascript and asp.net [vb] webforms session

0

I have a javascript method that returns a string, In case:

var hash = PagSeguroDirectPayment.getSenderHash();

How to put this hash variable in a session and read this session in asp.

Dim hash as string =  Session("sessionDoHashExemplo").toString

Or there is another way (without using post / get) to pass this information to asp.

The above code is in a separate .js file, and I can not use an input hidden

    
asked by anonymous 25.01.2017 / 22:35

1 answer

0

It is not possible, Session's of server-side and client-side does not have communication with each other. The solution was to allocate the results in hiddenfields and manipulate the information through them.

    
06.03.2017 / 19:34