如何在VB.NET Web浏览器中获取会话变量及其值 [英] how to get the session variables and its value in a VB.NET web browser

查看:200
本文介绍了如何在VB.NET Web浏览器中获取会话变量及其值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



如何在VB.NET网络浏览器中获取会话变量及其值?

任何帮助都会不胜感激...

感谢提前...

hello guys,

how to get the session variables and its value in a VB.NET web browser?
any help would be appreciated...
thankz in advance...

推荐答案

从会话(VB.net)添加并获取价值

在javascript中获取会话变量


这是一篇很好的MSDN文章,可以阅读 http://msdn.microsoft.com/en-us/library/03sekbw5(v = VS.90)的.aspx [ ^ ]
This is a good MSDN Article to Read http://msdn.microsoft.com/en-us/library/03sekbw5(v=VS.90).aspx[^]


第一个表格上的代码



会话(field1)= TextBox1.Text

Response.Redirect(WebForm2 .aspx)



代码需要会话值



Dim field1 As String = CType(Session.Item(field1),String)

receive.Text = field1
Code on first Form

Session("field1") = TextBox1.Text
Response.Redirect("WebForm2.aspx")

code where session value required

Dim field1 As String = CType(Session.Item("field1"), String)
receive.Text = field1


这篇关于如何在VB.NET Web浏览器中获取会话变量及其值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆