求救!!!如何取网址中的文件名!!!!!!!!! substring(s,s.indexof("/"))怎么取得最后一个/我也不会 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Dim a As String = "http://www.xxx.com/a004.htm " MsgBox(a.Substring(a.LastIndexOf("/") + 1, (a.LastIndexOf(".") - a.LastIndexOf("/") - 1))) strind url="http://www.xxx.com/a004.htm";string filename=url.substring(url.indexof("/"));结果 filename="a004.htm";随手写的没经过测试…… the following works too:string s = "...";s = System.IO.Path.GetFileNameWithoutExtension(s); 对不起应该是这样strind url="http://www.xxx.com/a004.htm";string filename=url.substring(url.LastIndexOf("/"));结果 filename="a004.htm";随手写的没经过测试…… 求页面去尾部 回顶部的实现 asp.net母板页设计问题 想实现类似新浪博客的地址 网站中menu按钮样式,要源码 一个有关断点的问题,请大家看看 大分散出!请教各位:DataGrid的问题,我想实现可能是一种嵌套或XML,我也说不上,详见.... gridview如何分组 asp.net的基础一问! ASP .NET 2.0 无法向163发送邮件 请教,参数负值的问题? 100分求WEB环境下文档修改痕迹保留如何实现? 痕迹保留
Dim a As String = "http://www.xxx.com/a004.htm "
MsgBox(a.Substring(a.LastIndexOf("/") + 1, (a.LastIndexOf(".") - a.LastIndexOf("/") - 1)))
string filename=url.substring(url.indexof("/"));结果 filename="a004.htm";随手写的没经过测试……
s = System.IO.Path.GetFileNameWithoutExtension(s);
string filename=url.substring(url.LastIndexOf("/"));结果 filename="a004.htm";随手写的没经过测试……