在asp.net文件中搜索字符串 [英] search string inside asp.net file

查看:94
本文介绍了在asp.net文件中搜索字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要在asp.net文件中查找字符串,我需要在文件中查找特定字符串
有可能怎么做吗?


谢谢inadvance


i need to seach string inside the asp.net file,i need to serch the particular string inside the file or not
is it possible how to do this ??


Thanks inadvance

推荐答案

我不明白为什么要在搜索网站代码的网页中编写代码,但是可以编写递归代码从您网站的顶级目录中搜索文件中的字符串,仅使用File.ReadAllText和string.Contains.
I don''t see why you want to write code in a web page that searches the code of your web site, but you can write recursive code from the top level of your web site and search for strings inside files, just with File.ReadAllText and string.Contains.


这篇关于在asp.net文件中搜索字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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