Javascript e Asp.net [Vb] webforms Session

Asked

Viewed 37 times

0

I have a javascript method that returns a string, In the 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 cannot use a Hidden input

1 answer

0


Is not possible, Session's of server-side and client-side has no communication among themselves, The solution found was to allocate the results in hiddenfields and manipulate information through them.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.