请各位教教我,谢谢。

解决方案 »

  1.   

    在B/S结构里没有可以手动输入的下拉框,C/S结构里有.
      

  2.   

    能实现,可以用DIV模拟一个,不过这样比较麻烦了,根据实际情况用其它控件替代一下吧.
      

  3.   


     protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                HiddenField hfd = ((HiddenField)e.Row.FindControl("hfdTopicID"));
                 string topicid=hfd.Value;
                if (((DropDownList)e.Row.FindControl("drpTopic")) != null)
                {
                    DropDownList ddl = ((DropDownList)e.Row.FindControl("drpTopic"));
                    ddl.Items.Clear();
                    ddl.Items.Insert(0, new ListItem(GetWikiTopic(topicid).WikiTitle, topicid));
                    ddl.Items.Insert(0, new ListItem("操作", "操作"));
                    ddl.Items.Insert(1, new ListItem("查看属性", "1" + topicid));
                    ddl.Items.Insert(2, new ListItem("编辑属性", "2" + topicid));
                    ddl.Items.Insert(3, new ListItem("版本历史记录", "3" + topicid));
                    ddl.SelectedIndex = 0;
                }
            }
        }你的那个同理