在Vb.Net中绑定会话值 [英] Bind Session Value in Vb.Net
问题描述
但会话值未被vb.net页面提取。
i我在ac#应用程序中设置会话变量以及何时重定向到vb.net应用程序
i这里没有获得会话值是我在vb.net页面中的代码
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
$(function () {
var testUser ='<%= Session("Hi") %>';
alert(testUser);
});
以下绑定也不起作用
Below binding also not working
<input type="text" name="tax_amount" value='<%# Session("Amount").ToString()%>' />
请帮帮我紧急。我试图解决这个问题从9小时开始但是我无法解决这个问题。
在此先感谢。
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.
推荐答案
(function(){
var testUser ='<% =会话( 嗨)%> < /跨度>';
alert(testUser);
});
(function () { var testUser ='<%= Session("Hi") %>'; alert(testUser); });
以下绑定也不起作用
Below binding also not working
<input type="text" name="tax_amount" value='<%# Session("Amount").ToString()%>' />
请帮帮我<罢工>这是紧急的。我正在尝试解决这个从9个小时开始,但我无法做到。
提前致谢。
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.
这篇关于在Vb.Net中绑定会话值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!