Asp.net MVC preview page before save and highlight the modified model properties -


i need redirect preview page edit page , highlight modified text when preview button clicked in "edit" page. in preview page have save button save in database.

how implement feature.

try this:

       @{           string _style  = string.empty;           for(int i=0;i<model.count;i++){             _style = "none"  ;             var listedited = ((list<castyourtypeobject>)viewbag.objectedited);             if(model[i] == listedited[i]){              _style = "highlight";               }                 <tr>                   <td class="@_style">@html.display(objattribute)</td>                 </tr>           }         } 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -