Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
But Session Value not fetched by vb.net page.

i am setting session variable in a c# application and when i am redirecting to vb.net application

i am not getting the session value here is my code in vb.net page

XML
$(function () {
       var testUser ='<%= Session("Hi") %>';
       alert(testUser);

   });


Below binding also not working
HTML
<input type="text" name="tax_amount" value='<%# Session("Amount").ToString()%>' />


Please help me it is urgent.i am trying to solve this from 9 hours but i am unable to do it.

Thanks in advance.
Posted
Updated 18-Oct-13 1:27am
v3
Comments
ZurdoDev 18-Oct-13 7:20am    
What? You are going from one app to another and expect the session to remain? Need more info because it won't do that, on its own.
[no name] 18-Oct-13 7:43am    
One solution but two different projects
ZurdoDev 18-Oct-13 7:49am    
You'll need to store session in sql or if they happen to be on the same server you could use session state but the default session of InProc will not work.
Ram Balak Sharma 18-Oct-13 7:35am    
Hey you are moving one app to other app or you are moving one web site to other
and in sample code you explaning that you are ttrying to get in java script not n vb.net

if you wanted to share session in different website which are hosted in under one domain then u can share the session.
for this you have to store session in outproc then u can get.
parkavikarthi 19-Oct-13 2:40am    
are you using vb.net form page in c# web application?? Give more information regarding your question

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