公共变量不显示在页面中 [英] Public Variables Not Display In Page

查看:78
本文介绍了公共变量不显示在页面中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我插入代码将公共变量插入到aspx页面中。 (VB.Net)


当我在Visual Studio中看到它们时,括号会正确泛黄。


然而,当页面显示时,我看到了括号和变量名称。 我没有看到变量的值。


什么导致公共变量不能在页面上被替换?


谢谢


仅供参考,我 我正在使用非常古老的学校东西 - VS 2003. 但这应该仍然可以。

解决方案


这是一页吗?


On Post-Back数据位于


viewstate [" variablename"]或


session [" ; variablename"],


cookies,



application [" variablename"]


您可以相应地分配和检索



问候。


I inserted code to insert Public variables into the aspx page. (VB.Net)

The brackets are yellowed correctly when I see them in Visual Studio.

However, when the page displays, I see the brackets and the variable name.  I don't see the variable's value.

What can cause the public variables to not be replaced on the page?

Thanks

FYI, I am using really old school stuff - VS 2003.  But this should still work.

解决方案

Hi,

It is a page right?

On Post-Back data is in

viewstate["variablename"] or

session["variablename"],

cookies,

or

application["variablename"]

You can assign and retrieve it accordingly,,

Regards.


这篇关于公共变量不显示在页面中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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