Using jQuery Highlight when a field is updated in asp.net

491 views Asked by At

I am working on a web application and I want to incorporate the jQuery Highlight functionality. The way it is set up now is there is a gridview with a link button to add an entry. When you select the link button to add an entry a form appears to fill out all of the information. Once the information is filled out and the user selects "Insert" I would like to have the insert onClick function in the code behind somehow activate the jQuery Highlight command. I can not seem to get this to work. The form to insert the data is using a command field if that will help.

2

There are 2 answers

11
Cem On BEST ANSWER

As clicking insert will add a row at the bottom of the table you can do the following when the dom is ready after refreshing the page;

$('#gridviewID tr:last td').effect("highlight", {}, 3000);
0
Brian Mains On

So you want the effect to run on the recently updated row? On the RowUpdated event, you're going to have to render JavaScript statements to run on document ready. I'm not exactly sure what you can pass up, you probably could pass up the row ID (if it renders, which I think it does), or the current row index.

HTH.