asp.net mvc 3 - MVC3 search usercontrol -
have partial view in website, shared among many pages, searching functionality, consisting of: date date file type file name now,the problem is, in pages dont want file type included, in other pages dont want ( from-to ) date criteria included what should do? should create partial view each functionality? or show/hide criteria within? _filters.cshtml @model entities.filteroperations <table width="85%" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <td class="formtit"> start date </td> </tr> <tr> <td>@html.textboxfor(m => m.startdate, new { @class = "date" }) </td> </tr> <tr> <td class="formtit"> end date </td> </tr> <tr> <td>@html.textboxfor(m => m.enddate, new { @class = "date" }) </td> </tr> <tr> <td class="formtit"> file type </td> ...