如何在asp.net中验证文件路径。 [英] How to make validation for file path in asp.net.

查看:62
本文介绍了如何在asp.net中验证文件路径。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个文本框,用户需要输入远程服务器的文件路径,如C:\ PerfLogs。我需要对此或其他任何方法进行正则表达式验证。请帮帮我。

解决方案

试试这些链接 -

正则表达式验证文件路径和扩展名 [ ^ ]

如何使用正则表达式验证文件路径 [ ^ ]

Hi,
I have one textbox where user need to enter file path of remote server like C:\PerfLogs this. I need regular expression validation for this or else any other method. Please help me out on this.

解决方案

Try these links -
Regular Expression to Validate File Path and Extension[^]
How To Use Regular Expression To Validate File Path[^]


这篇关于如何在asp.net中验证文件路径。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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