databind dropdown from popup

B

biju

Hai friends,

I am having a problem in my asp.net project.I have a form that has
some anthem dropdowns which is data binded.I am opening a new page as
popup and adding some data to the database.I wants the dropdown to
update the added values when the popup is closed.I cant use

<body onunload="opener.location.reload();"></body>

on child page because it destroys the values in the text boxes.

I can call a javascript function in the parent page like..

<body onunload="window.opener.UpdateCity()";></body>

and the function in parent page as



function UpdateCity()
{
document.getElementById('<%=ddlCity.ClientID%>').Databind();

}

But i cant get the databind to work.Can anyone help me...Is there
any other way to accomplish this..?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top