<asp:TemplateColumn HeaderText="修改">
<ItemTemplate>
<A href='Admin_AdminSystemModuleModify.aspx?id=<%#DataBinder.Eval(Container, "DataItem.ID")%>'>
修改</A>
</ItemTemplate>
</asp:TemplateColumn>
另一页面private void Page_Load(object sender, System.EventArgs e)
{

            string ID=Request.QueryString["id"].ToString();
this.PageBegin();
if(!this.IsPostBack)
{
string sql="select ModuleName ModuleMemo from SYSTEMMODULE where ID="+ID;
System.Data.DataRow row =Tools.SqlDbTools.GetRow(sql);
this.TbName.Text=row[0].ToString();
this.Body.Text=row[1].ToString();
}
}ID怎么是空值????

解决方案 »

  1.   

    string id=Request.Params["id"];在datagird里面你看一下把鼠标放在链接上面在状态栏下面能否正确显示URL。
      

  2.   

    <%#DataBinder.Eval(Container, "ID")%>'>
      

  3.   

    在datagird里面你看一下把鼠标放在链接上面在状态栏下面有正确显示URL。
    换为string id=Request.Params["id"];
    还是不行
    真不知道怎么回事??
    大家遇到过嘛??
      

  4.   

    传递的值最好不要是中文,用中文的话,最要加密以下我自己写了一个加密的DLL需要的话,,给我发EMAL我把DLL发给你们告诉你们怎么用就可以了
      

  5.   

    好的
    我要 
    谢谢 
    [email protected]