跳转问题

问题描述:在一个DataList中,有一个模板列是DropDownList,有一个模板列是LinkButton

  当我选择了DropDownList,在点LinkButton时,要把DropDownList选中的值传过去

但是传不过去。。。。

解决办法:

protected void gv_List_RowDataBound(object sender, GridViewRowEventArgs e)
{
          
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
             
               //传一个控件的值(在RowDataBound事件中)
                if (hlk_Flag.Text == JTSCM.Enum.ReceiveItemBatchEnum.Y.ToString())
                {
                    string openDialogJs = "openDialog('ReceiveBthManager.aspx?                         selectWareHouse='+document.getElementById(\"{1}\").options                         [document.getElementById(\"{1}\").selectedIndex].value+ '&RECEIVEID=                                       {0}','btn_ShowInit');return false;";
                    hlk_Flag.OnClientClick = string.Format(openDialogJs, receiveID, ddl_whid.ClientID);
                    hlk_Flag.Enabled = true;                   
                }
            }
}

posted @ 2008-08-28 18:23 starting 阅读(341) 评论(0)  编辑 收藏 网摘 所属分类: DataList
发表评论

昵称: [登录] [注册]

主页:

邮箱:(仅博主可见)

评论内容:

  登录  注册

[使用Ctrl+Enter键快速提交评论]

0 1278875




相关文章:

相关链接: