string excelFilePath = ds.Table[0].Rows[0][0].ToString();

解决方案 »

  1.   

    string   excelFilePath   =   ds.Table[0].DefaultView;
    也行
      

  2.   

    QUOTE:string       excelFilePath       =       ds.Table[0].DefaultView;
    也行
    ------------------------
    真的行?!朋友,你是不是哪里打错了?
      

  3.   

    Foreach( Datarow dr in ds.Table[0].Rows.Count)
    {
    string string   excelFilePath   =   dr[0].ToString();
    Response.Write(" <script   language=javascript> alert('"+ excelFilePath +"') </script> "); 
    }这样取出所有的路径。
      

  4.   

    string   excelFilePath   =   ds.Table[0].Rows[0][0].ToString();
    我用这条语句,在Label控件中验证,结果提示“在位置0处没有任何行”....这是什么原因啊?
      

  5.   

    QUOTE:我用这条语句,在Label控件中验证,结果提示“在位置0处没有任何行”....这是什么原因啊?
    ------------------
    那就是说根据给出的SQL查询结果是0条记录了。
      

  6.   

    ds里面应该是有数据的,因为我绑定后在GridView控件里面能够显示出来,但是直接从dataset中却找不到...
      

  7.   

    我自己sql语句的变量写得有问题,已更正,谢谢各位的热心帮助,解决方案是按照LikeCode的写的,其他的或多或少都有些问题,仍然感谢
      

  8.   

    对了,请问怎么送分?.....>_<
      

  9.   

    加完分了,不知道怎么结贴...
    http://topic.csdn.net/u/20071213/02/5fc58a73-c121-4c4b-bbdb-ea81533112cf.html
    这个是我另外一个问题,请高手帮忙,谢谢