<table id="msgtable" border="0" cellspacing="0" cellpadding="0">
<% foreach (var item in Model )
{
%>
<tr>
<td>
<%= Html.ActionLink(Convert.ToString(item.ParentID), "Details", new { id = item.ID})%>
</td>
<td>
<%= Html.ActionLink(item.Name , "Details", "Scope")%>
</td>
</tr>
<%}%>
</table>
我想在前台显示parentID为0的那些记录,在Html.ActionLink里怎么表达啊
什么意思!?
<% foreach (var item in Model )
{
if (item.ParentID == 0)
相关问答:
function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
页面 Index.aspx 运行时 页面样子变了
把Index.aspx 生成的代码 复制到 index.html里面运行就没问题
不知道为什么 CSS路径都是相对的
路径用/css/your.css来表示 第一个/表示网站根目录。
路径可能有 ......
源代码是挺好看的,在vs2008编辑模式下
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn">
<head id="Head1" runat="server&qu ......
调整了这里,那里出问题。
有没有什么好的方法,像调整对话框一样????
找个专门做页面的
在dreamweaver里调。。。也可以直接控制HTML代码
确实痛苦 感同身受呀
哈哈 坚决路过。
用DW吧,VS搞设计 ......