I am using visual studio 2005 and have a question regarding an updateable gridview.
The gridview on my page has 4 columns, and only one is able to be updated. It's a textbox.
However, when updated, I want to validate the entry against a table in my database before processing the update. In other words, when the user clicks the update button, I want to check the entry to see if it's valid before posting back the update. If it's not, I want to display an alert message.
What's the best way to accomplish this?
Would the custom validator control be used for this type of situation (I have not used it to date)?
Any suggestions would be greatly appreciated. Thanks in advance.
The gridview on my page has 4 columns, and only one is able to be updated. It's a textbox.
However, when updated, I want to validate the entry against a table in my database before processing the update. In other words, when the user clicks the update button, I want to check the entry to see if it's valid before posting back the update. If it's not, I want to display an alert message.
What's the best way to accomplish this?
Would the custom validator control be used for this type of situation (I have not used it to date)?
Any suggestions would be greatly appreciated. Thanks in advance.