他的原句是:txt =Application("Current")(i)
解决方案 »
- FindControl下,怎样获取控件的属性
- ASP.NET的哪些报表控件可以导出为WORD 和 PDF文件啊。
- vs安装问题?
- 一个小问题,大家帮忙啊~~~!在线等待~!
- 伪静态带参数的配置该如何写?
- asp.net里有没有类似于winform里treeview的控件
- 郁闷呀!各位兄台为什么删除文件时出现:路径C:\Inetpub\wwwroot\TIANYU\Adm\Upload_File\”的访问被拒绝.但是我能把文件上传到该文件夹中
- 一时想不起来,在aspx页面如何显示在.cs中写的DataReader的值。
- 读取html
- 点击linkbutton后执行OnClientClick返回false后又执行OnClick
- a页面如何关闭b页面的弹出窗口?
- 验证控件使按钮无效了。。怎么办?急。。在线等!
Application["Current"][i];
{
txt = Application["Current"][i];
}会有错误的,错误是:无法将带 [] 的索引应用于“object”类型的表达式
如果是数组,可以如下:
Array txt = (Array)Application["Current"];
这样写不行?txt=(int)(Application["Current"][i]);
这里存的是array还是字符串?
在Global.asax中的Application_Start,写了Application["Current"]=0;
刚刚不是问过吗?
这样写不行?txt=(int)(Application["Current"][i]);
不行啊
你怎么给 Application["Current"]赋的值?