string aa ="fsdafsad/ds/dfs/s/"
string str = aa.Replace("/",bb);//bb为另一个字符串

解决方案 »

  1.   

    怎样来设置动态路径!
    ---------------------〉
    比如:绑定的方式:
      <asp:textBox Text= "C:\\aa\\<%# filename %>" runat="Server" />
    filename为变量的值,表示文件的名字
      

  2.   

    Application.StartupPath
    获取可执行文件的路径
      

  3.   

    string aa ="fsdafsad/ds/dfs/s/"ImageUrl="../images/goup.ico"   相对路径
      

  4.   

    string aa ="fsdafsad/ds/dfs/s/"
    string str = aa.Replace("/",bb);//bb为另一个字符串
    ======================================================
    这个同意上面的.
    ======================================================
    怎样来设置动态路径!
    就是程序根目录小的某个文件?
    ======================================================
    用这个Application.StartupPath就可以了啊!
      

  5.   

    第二个问题用Application.StartupPath啊!
      

  6.   

    Application.StartupPath
    怎么总是显示的是DEBUG下的路径
      

  7.   

    为什么用 Application.StartupPath &"/ABC.RPT"就出错误提示
      

  8.   

    把startpath处理一下,trim掉最后的\后面的不就好了
      

  9.   

    Application.StartPath + "/ABC.RPT"