up

解决方案 »

  1.   

    dim i as integer
    dim newext as string
    dim newname as string
    newname=txtmusicfile.PostedFile.FileName
    i= newname.LastIndexOf(".")
    if i=-1 then
    response.write ("非法格式!")
    return
    end if
    newext =newname.Substring(i)
    if newext.ToUpper()=".MP3" or newext.ToUpper()=".WMA"  then
    response.write (newext)
    else
    response.write ("非法格式!")
    return
    end if
      

  2.   

    '-----------------------------------------------------
    ' 描述: Asp无组件上传带进度条
    ' 作者: 宝玉(www.webuc.net)
    ' 版权: 本作品可免费使用,但是请勿移除版权信息
    ' 下载: http://www.webuc.net/MyProject/upload/upload.rar
    ' 推荐: asp.net上传组件(http://www.upload4asp.net/)
    '-----------------------------------------------------
      

  3.   

    进度条的,有专门的控件,效果不错,好像是fileupload控件,名称我记不清了。你可以在论坛上搜索或到一些下载ASP.NET控件的网站找找看