如何获得应用程序中存在的所有表单名称 [英] how can i get all form names present in a application
本文介绍了如何获得应用程序中存在的所有表单名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在应用程序中获取所有表单名称,并希望在下拉列表中填写该表单名称.我尝试过这样..
I want to get all form names in application and want to fill that form names in drop down list.i tried like this..
List<Newlist> lst = new List<Newlist>();
Newlist newlst = new Newlist();
string[] filePaths = Directory.GetFiles(@"D:\appln\testappln\", "*.cs");
newlst.Page = filePaths;
cmbPageName.DataSource = filePaths;
但是没有得到表单名称...有什么办法做吗...
but didnt get the form names...is there any idea to do this...
推荐答案
在库曼中写下这个..
应用程序根文件夹> dir/s * .aspx
In coomand write this ..
application root folder> dir /s *.aspx
这篇关于如何获得应用程序中存在的所有表单名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文