I have a gridview inside an update panel.In that gridview, I have a linkbutton in which i need to show the status.If the linkbutton text is success then it should be in same color. and if the linkbutton text is fail,it should be in red color.I have written the css for red color.
Here the default is blue.How to change it red when the linkbutton returns false??
Thanks
You could use GridView’s RowDataBound event to change the CSS accordingly.