473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Databinding Parent Dropdown from Popup Page

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%>').D atabind();

}

But i cant get the databind to work.Can anyone help me...Is there any other way to accomplish this..?
Sep 6 '07 #1
1 2089
Do you perform DataBind() after that?

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%>').D atabind();

}

But i cant get the databind to work.Can anyone help me...Is there any other way to accomplish this..?
Sep 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Bill S. | last post by:
Hey, I am trying to figure this out. The hyperlinks on my page open up a small popup window. I have no reason to refresh the parent page or what have you. I was living in a very happy world,...
4
by: Earl Teigrob | last post by:
I am thinking about using a popup window to edit settings that will affect parent asp.net page. The data that is changed in the popup window will be saved to the datastore that is loaded and...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
5
by: Peter | last post by:
1) I have a C# web application and what I am trying to do is create a popup window from a link on the parent window 2) the popup window will have a button and when a user clicks on the button the...
1
by: AssanKhan Ismail | last post by:
Hi, I have two aspx form say Frm1 and Frm2 . In Frm1 one dropdown box and one button is there.After pressing that button it opens Frm2 ,in Frm2 i choose one data from Frm2's dropdown box when i...
7
by: Ben Schumacher | last post by:
How can I refresh the parent page from a popup window that was created using window.showmodaldialog? I would like to accomplish this using vbscript if possible.
2
by: Bam | last post by:
Hey gang. I have searched the web, and can't find what i need. hoping someone here can help i have a form that pops up based on a click. the popup opens up correctly. now what i want it to do is...
0
by: NewJavaBee | last post by:
please guide me. i have the following problem: i have a parent window that has a dropdown that is showing names and which is getting its value from a table.table conatins two columns, one is Name...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.