|
 |
aspx thread: Updating pages from popups
Message #1 by "Matt Dittman" <mddittman@h...> on Fri, 14 Jun 2002 13:55:48
|
|
I am converting an ASP application to ASP.NET. This application uses a
popup window to change some data that is being displayed in the main
window. Here is the scenario:
The main window contains the record information from the database. When
the user wants to change one of the fields, he clicks a link (which uses
javascript) to open the popup window. On this popup window is a form that
allows you to change the field. When the user makes a change and submits
the form, it runs some ADO code to update the database, then uses
javascript to update the parent page (using opener.document.location
= "mypage.asp";), then uses javascript (window.close();) to close the
popup window.
My question is, should I handle this situation in the same way using
ASP.NET or is there a more elegant solution to this?
Message #2 by "Chris Kersey" <ckersey@m...> on Fri, 14 Jun 2002 06:22:43 -0700
|
|
The solution you described is a usability issue that answers the question
"do I want my client to leave the listing page each I want to update an
entry?" .NET isn't going to give you other usability choices as you're
going to be dealing with a browser no matter what technology you're going to
use on the back end.
Since you are forcing your host page to refresh anyways (using javascript),
using a popup isn't sparing your web/database server from extra requests, so
the solution really boils down to a matter of preference which is something
you'll need to discuss with your client. That's my take if I understand you
question correctly.
chris
----- Original Message -----
From: "Matt Dittman" <mddittman@h...>
To: "ASP+" <aspx@p...>
Sent: Friday, June 14, 2002 1:55 PM
Subject: [aspx] Updating pages from popups
> I am converting an ASP application to ASP.NET. This application uses a
> popup window to change some data that is being displayed in the main
> window. Here is the scenario:
>
> The main window contains the record information from the database. When
> the user wants to change one of the fields, he clicks a link (which uses
> javascript) to open the popup window. On this popup window is a form that
> allows you to change the field. When the user makes a change and submits
> the form, it runs some ADO code to update the database, then uses
> javascript to update the parent page (using opener.document.location
> = "mypage.asp";), then uses javascript (window.close();) to close the
> popup window.
>
> My question is, should I handle this situation in the same way using
> ASP.NET or is there a more elegant solution to this?
>
Message #3 by Feduke Cntr Charles R <FedukeCR@m...> on Fri, 14 Jun 2002 10:09:12 -0400
|
|
Matt,
I'm doing a similiar thing with data that requires complex
formatting (well not really complex, just first, last names and title -
makes three distinct boxes, but merges the display into a single name). I
haven't found a better way of doing this yet either.
- Chuck
-----Original Message-----
From: Matt Dittman [mailto:mddittman@h...]
Sent: Friday, June 14, 2002 9:56 AM
To: ASP+
Subject: [aspx] Updating pages from popups
I am converting an ASP application to ASP.NET. This application uses a
popup window to change some data that is being displayed in the main
window. Here is the scenario:
The main window contains the record information from the database. When
the user wants to change one of the fields, he clicks a link (which uses
javascript) to open the popup window. On this popup window is a form that
allows you to change the field. When the user makes a change and submits
the form, it runs some ADO code to update the database, then uses
javascript to update the parent page (using opener.document.location
= "mypage.asp";), then uses javascript (window.close();) to close the
popup window.
My question is, should I handle this situation in the same way using
ASP.NET or is there a more elegant solution to this?
|
|
 |