J
JP
Hi;
I have a DataGrid called "dgEvents"; one of the columns in the DataGrid is
a template column and it is a TextBox called "txtEndDate". So, on Page Load,
this column has a textbox in every row of the datagrid and there is no data
in the textbox. The number of rows in the datagrid changes according to the
search criteria the user used.
What I want to do is, if the user puts a value (Date) in the textbox in any
of the rows and when they click the Update Button, I want a pop-up message
asking the user "Are you sure you want to do this?". If they click "Yes", I
want to continue with the update else, I want to cancel the update.
Well the problem is, I am not any good in JavaScript and I really need some
help to get a javascript that will check to see if there is a value in any of
the textboxes on the Update Button click event and if there is a value then
have a pop up message asking "Are you sure you want to do this?"
Please help
JP
I have a DataGrid called "dgEvents"; one of the columns in the DataGrid is
a template column and it is a TextBox called "txtEndDate". So, on Page Load,
this column has a textbox in every row of the datagrid and there is no data
in the textbox. The number of rows in the datagrid changes according to the
search criteria the user used.
What I want to do is, if the user puts a value (Date) in the textbox in any
of the rows and when they click the Update Button, I want a pop-up message
asking the user "Are you sure you want to do this?". If they click "Yes", I
want to continue with the update else, I want to cancel the update.
Well the problem is, I am not any good in JavaScript and I really need some
help to get a javascript that will check to see if there is a value in any of
the textboxes on the Update Button click event and if there is a value then
have a pop up message asking "Are you sure you want to do this?"
Please help
JP