我想通过asp.net上传控件上传文件后,划分文件名及其扩展名. [英] i want to divide filename and its extension after uploading a file through asp.net upload control.

查看:86
本文介绍了我想通过asp.net上传控件上传文件后,划分文件名及其扩展名.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过asp.net上传控件上传文件后,将文件名及其扩展名划分为键值对.
请有人帮助!
谢谢..

i want to divide filename and its extension in a key value pair after uploading a file through asp.net upload control.
Pls somebody help !!
thanks..

推荐答案

使用

Use

System.IO.Path.GetFileName();
System.IO.Path.GetFileNameWithoutExtension();
System.IO.Path.GetExtension();



并将其分为两个字符串并获得对



and divide it into two strings and get the pair


这篇关于我想通过asp.net上传控件上传文件后,划分文件名及其扩展名.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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