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

Help with Pop Up Window that Refreshes Parent Form

I'm new to ASP.NET and web programming in general, and coming from a
traditional fat client background, I'm having some trouble figuring out
what is the best web technique to use when designing a web page, that
is, when to use client side-script, when to use server events, and what
is the proper situation to use both.

The current UI paradigm I'm looking to implement is this: A user is
presented with a DetailsView control in edit mode. Some of the edit
field templates contain DropDownLists, populated with data from the
database for the given lookup field, along with two static list items,
one for "(select an item from the list)" - a placeholder for when the
database field is blank - and one for "(add a new item to the list)" -
a placeholder for when the user wants to add a new lookup to the table
without leaving edit mode on the current record. When the user selects
"(add a new item to the list)", I would like a modal pop up window to
be displayed, where I will show another DetailsView in insert mode (I
already have this form). When the user adds a record, I would like to
return control to the original DetailsView form, refresh the
DropDownList with the new data and sync it to the newly added lookup.
Ideally, I would also like to return info to the original form if the
user cancels the pop-up, so that no database call needs to be
implemented.

I'd really appreciate it if someone could steer me in the right
direction in terms of the correct combination of client script, server
events, session state variables, etc. that I would need to accomplish
this. To me, this is a trivial matter in a standalone desktop
application, but as a web newbie, I'm finding myself at a loss.

BTW, I'm using Visual Studio 2005 as my IDE.

Thanks in advance,
Ronn

Apr 18 '06 #1
0 932

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

Similar topics

1
by: martingerber | last post by:
Hi, I have the following script (javascript in html document): <html> <head> <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"> <title>Standort Speichern</title>
4
by: JPL Verhey | last post by:
Hi, I have a little test script in a pop up window. The pop up page refreshes every 2 seconds. I want it to check with every refresh if a certain page (log3.htm) is loaded in the opener window....
2
by: JPL Verhey | last post by:
(i hope somebody (else) will read and have an idea! Thnx) Hi, With a script in a popup window, I want to check if certain content is present in a page loaded into the frame "main" of the...
3
by: thechaosengine | last post by:
Hi all, I need to be able to cause the following chain of events after clicking an asp:button but I don't know how to do it. I'd really appreciate any advice on this or alternative approaches: ...
1
by: Rob Meade | last post by:
Lo all, Just after some suggestions here really... I have a page which lists a members of staff who have left our organisation, this list is then used by various departments in our...
6
by: Jack | last post by:
I have a main webpage that has a list of records, each with a link to a window.open function call. As an example, a page that opens is editrecord.aspx?RecordID=34, and another is...
1
by: letsgetsilly | last post by:
I'm building an ASP.NET 2.0 application in Visual Studio 2005. Here is what I want to do, and what is happening: Want: 1 User clicks on button 2 New window opens up, user selects File to...
1
by: wlevins | last post by:
I have a simple script which has worked flawlessly for years - it copies a bit of data from a child window down into a form field in the parent window that opened the child. But now in Firefox 2.0...
5
by: zzapper | last post by:
Hi, I use a JavaScript window to access a library of songs when the user picks one this is written to the users database record (PHP/MySQL). When the use closes the JavaScript window he returns to...
2
by: TheITGuyFromNY | last post by:
To set this up, I have a parent window with a list of things (doesn't matter what they are, but they are loaded by the page dynamically from a database with ASP server-side script. So, next to each...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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
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...

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.