input条件跳转有关问题

input条件跳转问题
<asp:Repeater ID="RepGrid" runat="server" EnableViewState="true">
<ItemTemplate>
<tr class="TableRow">
<td align="center"><%#Eval("fileNum")%></td>
<td align="center"><%#Eval("fileName")%></td>
                <td align="center"><%#Eval("fileGongsi")%></td>
<td align="center"><%#Eval("fileDepartment")%></td>

<td align="center">
                    <input class="BtnView" type="button" onclick="location='Detail.aspx?fileNum=<%#Eval("fileNum")%>    '"/>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>


想根据fileDepartment 的不同值跳转到不同页面怎么写代码啊?
------解决方案--------------------
<td align="center">
                    <%#Eval("fileDepartment").ToString() == "1" ? "<input class=\"BtnView\" type=\"button\" onclick=\"window.location='Detail.aspx?fileNum="+Eval("fileNum")+"'\"/>" : Eval("fileDepartment").ToString() == "2" ? "<input class=\"BtnView\" type=\"button\" onclick=\"window.location='Detail2.aspx?fileNum="+Eval("fileNum")+"'\"/>" : "<input class=\"BtnView\" type=\"button\" onclick=\"window.location='Detail3.aspx?fileNum="+Eval("fileNum")+"'\"/>"%>
                    </td>