本文介绍了Delcare一个公共变量。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 VB.NET中的新手学习2. 我正在创建一个简单的ASP.NET 2页面并从链接中提取查询字符串 我想在页面上一遍又一遍地使用这个查询字符串。 示例。 公共变量 Dim myVar as string = Request.querystring(" MyVar") 结束公共变量 然后我可以从任何地方调用此变量抓住MyVar。 谢谢! Phil Newbie learning in VB.NET 2. I''m creating a simple ASP.NET 2 page and I pulling a querystring from a linkand I want to use this querystring over and over again through out the page. Example. Public VariableDim myVar as string = Request.querystring("MyVar")End Public Variable Then I can just call this variable from anywhere to grab MyVar. Thanks!Phil推荐答案 这篇关于Delcare一个公共变量。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-18 21:46