下拉列表以多种形式刷新. [英] Dropdown Refresh in Multiple Form.

查看:45
本文介绍了下拉列表以多种形式刷新.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个网页,显示特定表的下拉列表项.

我添加一个按钮以从另一页添加项目(代码如下)


Hi,

I have a web-page that display Dropdownlist items of a particular table.

I add one button to add item from another page (code is as follow)


<br />
<br />
protected void Button1_Click1(object sender, EventArgs e)<br />
{<br />
        String strURL = String.Concat("wopen(''", "\\city.aspx", "'',''mywindow'',800,400);");<br />
        Page.ClientScript.RegisterStartupScript(this.GetType(), "myscript", strURL, true);<br />
<br />
Dropdownlist1.DataBind();<br />
<br />
}<br />
<br />




wopen是类似于windown.open的javascript函数,通过单击上面的按钮New Form在另一个窗口中打开,我要添加新的城市

我想做的是:添加的城市应该显示在我的下拉列表中.



但是问题是:
DropDownList刷新方法不起作用或在window.open函数之前执行. (如果我使用代码dropdownlist1.databind()添加额外的按钮,则它可以正常工作)

如何解决问题,任何人都可以帮助我.


提前谢谢.

问候,


Hardik Shah




wopen is javascript function similar to windown.open , by clicking the above button New Form is open in another window and I am add new City

What I want to do is : Added city should be shown in my dropdownlist.



But problem is :
DropDownList refresh method is not working or it execute before window.open function. (If I add extra button with code dropdownlist1.databind() then it works)

How to solve the problem, can any one help me.


Thanks in advance.

Regards,


Hardik Shah

推荐答案

大家好,

我已经改善了我的问题,如果仍然不清楚,请让我澄清一下,但请帮帮我.

谢谢,

Hardik Shah
Hi, All

I have Improved my question, if still it is not clear, please ask me to clearify , but help me.

Thanks,

Hardik Shah


这篇关于下拉列表以多种形式刷新.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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