想实现51job简历添加-教育经历添加(多条教育经历添加)效果

解决方案 »

  1.   

    刚登录看了下,或许一共20个隐藏的div,当点击"继续添加"时就显示一个div
    但上面有点不现实,应该是动态的生成的html控件
      

  2.   

    是罩层效果吗,可以参考:
    jquery框架里面的nyroModal
    prototype框架里面的lightwindow
      

  3.   

    是罩层效果吗,可能参考:
    jquery框架里面的nyroModal;
    prototype框架里面的lightwindow
      

  4.   

    仿51job多选源码:
    http://download.csdn.net/source/1377508
      

  5.   


    点击按钮时,生成动态div的id,用id判断个数,获取值循环添加arraylist,形成对象添加到数据库中...
      

  6.   

    可以用 用户控件设计好要添加的教育经历格式,再在页面调用用户控件,放一个button,点击就添加一个用户控件,需要在cs里写代码,保存当前页面状态,不然的话页面刷新会丢掉所有数据
      

  7.   


    可以绑定,你在页面写方法,存值,不保存的话,你点击button刷新页面的时候,值就丢了
      

  8.   

    int Count
        {
            get
            {
                if(ViewState["ControlCount"] == null)
                {
                    ViewState["ControlCount"] = 0;
                }
                return (int)ViewState["ControlCount"];
            }
            set
            {
                ViewState["ControlCount"] = value;
            }
        }    protected void Page_Load(object sender, EventArgs e)
        {
            for(int i=1;i<=Count;i++)
            {
                LoadUserControl(i);
            }
        }    protected void LoadUserControl(int index)
        {
            Control ctl = this.LoadControl("suiyi.ascx");//用户控件的名字
            ctl.ID = string.Format("userControl_{0}",index);
            this.Panel1.Controls.Add(ctl);//这个panel1是在用户控件里面设计格式的时候用到的,你想要添加的教育经历的格式放到一个容器里面,也可以是别的
        }
        //点击按钮,添加一个用户控件
        protected void ButtonAdd_Click(object sender, EventArgs e)
        {
            Count++;
            LoadUserControl(Count);
        }你看看这样行不行
      

  9.   

    包括dropdownlist控件
    比如专业
      

  10.   

    那就往dropdownlist里面绑东西,可以用数据源,也可以写代码
      

  11.   

    没有报错,如果注释掉if (!Page.IsPostBack)就可以执行绑定
    如果去掉的话,就会重新绑定,值会丢失
      

  12.   

     protected void Page_Load(object sender, EventArgs e)
        {
            //if (!Page.IsPostBack)
            //{
                bind_ddl_industry();
            //}    }    /// <summary>
        /// 行业
        /// </summary>
        public void bind_ddl_industry()
        {
            DataBase.DBHelper dbhelper = new DataBase.DBHelper(connstr);
            string comstr = "select Industry_ID ,Industry_CnText from [81hr_Industry]";
            ddl_industry.DataSource = dbhelper.ExecuteDataTable(comstr);
            ddl_industry.DataValueField = "Industry_ID";
            ddl_industry.DataTextField = "Industry_CnText";
            ddl_industry.DataBind();
            ddl_industry.Items.Insert(0, new ListItem("--请选择--", "-1"));
        }
      

  13.   

    第一次加载为什么Page.IsPostBack=true