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 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