日期:2014-05-19  浏览次数:20816 次

163 信箱的效果是怎么做的 ?? 帮忙~!! 在线等...........
我想做一个类似   163   信箱的那样,用   GridView   做,点收信箱内的某行,就能显示出该行的详细信息.   怎么才能得到这一行的   ID     呢   ??

protected   void   GridView1_RowCommand(object   sender,GridViewCommandEventArgs   e)
        {
                if   (e.CommandName   ==   "Select ")
                {
                        id   =   GridView1.DataKeys[index].Value.ToString();
                        Response.Write(id);  
                }

        }

上面的   int   index     怎么才能获得到呢?


在线等,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

------解决方案--------------------

id = GridView1.DataKeys[Convert.ToInt32(e.CommandArgument)].Value.ToString()
------解决方案--------------------
Request.Form.Get( "checkboxname ")