I am developing a website that uses a datagrid. I am familiar with how to loop through the contents of a grid. The grid structure is similar to below
ID Product Price Qty
1 Brakes Pads $2.00 1
2 Rotors $20.00 1
3 Spark Plugs $4.00 0
What I need is a solution that will accomplish this. When looping through the grid I will be looking at the QTY columns (which is a textbox). I know how to do this part!
Here is where I need help:
If I find a quantity of 0 I need to have a pop-up message box display that states: Do you want any items with 0 Qty to be put in a separate work order?
If the user says yes then I will create a new work order where Qty = 0. If no I will delete those items.
I just need to know: (1) how to get a pop-up box in ASP.NET to display to the user (2) how to call the correct method after the user clicks on either yes or no.
Please provide code sample. Thanks