如题
解决方案 »
- FireFox使用doPostBack会送出两次?
- 贸易管理信息系统
- ASP.NET远程访问出错。...
- 应该在什么情况下使用Web service?不用它就解决不了问题?不仅仅是用来实现两个数相乘或相加吧?
- 怎样让别人看不到我的WebService,是不是要设置web.config
- <a OnClick="return confirm('确定要删除所选吗?');" href="#">删除所选</a> ,这段代码如何加焦点
- 运行.aspx的文件就出现“实时调试”框
- 如何设置dropdownlist使其没有边框?
- 郁闷的问题:当列数超过一定数目时,比如20列,DataGrid所设置的列宽就无效了!求解决办法.
- 关于DATAGRID的分页~~~~~
- 为什么在.net visual studio里面不能删除一个类?
- 请问怎么样才能让页面打开后定位在此页面的某个位置(不是默认的最上面).
可否说清楚一点
TreeView1.SelectedNode?
string path = @"c:\temp\MyTest.txt"; // Delete the file if it exists.
if (!File.Exists(path))
{
File.Create(path);
} if ((File.GetAttributes(path) & FileAttributes.Hidden) == FileAttributes.Hidden)
{
// Show the file.
File.SetAttributes(path, FileAttributes.Archive);
Console.WriteLine("The {0} file is no longer hidden.", path); }
else
{
// Hide the file.
File.SetAttributes(path, File.GetAttributes(path) | FileAttributes.Hidden);
Console.WriteLine("The {0} file is now hidden.", path);
}
在XXXX.cs中的事件
private void TreeView_SelectInfoType_SelectedIndexChange(object sender, Microsoft.Web.UI.WebControls.TreeViewSelectEventArgs e)
{
this.Label_Message.Text=this.TreeView_SelectInfoType.select..........???怎么写
}
下面的试试看行。。
Microsoft.Web.UI.WebControls.TreeNode NewNode=TreeView1.GetNodeFromIndex(TreeView1.SelectedNodeIndex);