473,385 Members | 1,901 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,385 software developers and data experts.

inserting record through pop window question and then forcing refresh

I have a webform with DropDownLists and
and i would like to have a link that would open up a window popup for
the USER to
insert some data into the Database and then on closing the popub window
or clicking the save button i would like to force the main page to
refresh so that the Data would show in the Dropdwon list i want to
insert the Data to
Any ideas?

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #1
3 1653
Hi Pat
Here is the Code which does that.
Assuming that you have completed the code for loading the data into the
DropDownList.
In the PopupWindow here is the algorithm to follow
if (isPostBack)
{
<Your Asp.Net code to insert the Record>
Response.Write "<script>window.opener.location.href='<aspxpage>'; </script>");
Response.Write ("<script>window.close();</script>");
}
From the above code current window will be closed and the parent page will
be refreshed and teh data will be loaded into the dropdown list.
I have complete set of code for reference. But I hope the above example does
the thing for you.

Thanks
--
Srinivas Nadella
SSE - Satyam Computer Services
Hyderabad
India
"Patrick Olurotimi Ige" wrote:
I have a webform with DropDownLists and
and i would like to have a link that would open up a window popup for
the USER to
insert some data into the Database and then on closing the popub window
or clicking the save button i would like to force the main page to
refresh so that the Data would show in the Dropdwon list i want to
insert the Data to
Any ideas?

*** Sent via Developersdex http://www.developersdex

Nov 19 '05 #2
Patrick- Looks like you will need to implement some javascripts. Have a look at this article on how to work with modal pop up windows- http://www.codeproject.com/aspnet/Mo...asp?print=true

You can modify the scripts in the parent window to refresh after returning from child window.

Thanks,
Prodip
www.aspnet4you.com

"Patrick Olurotimi Ige" <na********@hotmail.com> wrote in message news:OV**************@TK2MSFTNGP15.phx.gbl...
I have a webform with DropDownLists and
and i would like to have a link that would open up a window popup for
the USER to
insert some data into the Database and then on closing the popub window
or clicking the save button i would like to force the main page to
refresh so that the Data would show in the Dropdwon list i want to
insert the Data to
Any ideas?

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #3
Thanks guys for the info..

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
6
by: chon | last post by:
I have an ASP page that is sent a file location as a parameter. It opens this file, loads the ADODB.Stream object and does a binary write to the page forcing the download dialog to appear. This...
17
by: Applebrownbetty | last post by:
Hi, I'd like to append/amend the following code from the Dreamweaver extension "Open Picture Window Fever" for the ability to center the PopUp window: By default, it allows the window to be...
1
by: jv | last post by:
I have quite a few of continuous form and subform where I do allow scroll bars. I run into problems with the mouse wheel whenever the data on the form does not take up the whole page. In this...
4
by: Ed Willis | last post by:
If I am processing through a loop in my code and I want to update a row count on the window, how can I make the window refresh and show the label etc. updating? Thanks.
6
by: planetthoughtful | last post by:
Hi All, I have a C# ASP.NET page that submits back to itself to insert details from a form into a database table. When / if the user refreshes the page (and gets the standard warning that POST...
2
by: Sonnich | last post by:
Hi all! Probably simple - once one knows. I have a window, which open using <input type="button" class="box" name="main" value=" Add... " onClick=window.open('add.asp')> The window has...
1
lwwhite
by: lwwhite | last post by:
Another question. On one of my forms, I have two radio buttons: Topic and Window. Beside each of them is a drop-down to select the corresponding topic or window. When Topic is selected the window...
1
by: Sunray | last post by:
I have a form called the sales form and i have 2 sets of listboxes So what happens is. i add items form the bottom set of list boxes which are bound to a data base to the top set of list boxes which...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.