创建动态列时的下拉列表问题 [英] dropdown problem when create dynamic column

查看:72
本文介绍了创建动态列时的下拉列表问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友我有两个下拉首先是州和第二个城市和一个''添加'按钮,我点击添加按钮创建动态列,我的问题是当我点击添加按钮第一列城市下拉列表是空白所以请帮助我

hi friends i have two dropdown first is state and second city and one ''add'' button and i create dynamic column when click add button and my problem is when i click add button first column city dropdown are blank so please help me

推荐答案

你还没有发布任何代码片段。好吧,我怀疑你是 Page_Load 事件中的绑定下拉列表您的页面。



如果是这样,请尝试将该代码(绑定下拉列表)放入

You have not posted any code snippet.Well,i suspect you are binding dropdown in Page_Load event of your page.

If so,try to put that code(binding dropdown) in
protected void Page_Load(object sender, EventArgs e)
{
      if(!IsPostBack)
      {
        ////bind dropdown here.
      }
}


这篇关于创建动态列时的下拉列表问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆