Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Conditional popup window after datagrid update

Author  Topic 

bubberz
Constraint Violating Yak Guru

289 Posts

Posted - 2006-11-11 : 22:48:41
What I'm trying to do is mimic an Access version of our web application, and not too sure where to start. Here's my scenario:

1. When a user edit's a row in a datagrid and clicks "Update", I have to see if the textbox value that's being edited exists or not in a table. Let's say it's an Order ID, and if the user edits a datagrid row, then clicks "Update", and the ID entered in the textbox doesn't yet exist in the "Orders table", then I have to prompt the user if they'd like to add a description along with this new ID.

2. If they click yes, take them to another screen to add the description and other information, or if they click no, simply close the new window.

We've done javascript in our code for a dropdownlist selectindexchange event (attributes.add), but I'm not sure how to make the code behind conditionally show a popup window.

Any suggestions are welcome! thanks!
   

- Advertisement -