上代码:
            while (reader.Read())
            {              
                menu_str += "<tr><td bgcolor=red align=center><asp:LinkButton ID=Menu runat=server  PostBackUrl=\"~/Login.aspx\">" + ((string)reader[0]).Trim() + "</asp:LinkButton></td></tr>";                string buf = ((string)reader[1]).Trim();
                int index = 0;
                while (buf.IndexOf(",", index) != -1)
                {
                    index = buf.IndexOf(",", index);
                    menu_str += "<tr><td align=center>" + buf.Substring(0, index) + "</td></tr>";
                    buf = buf.Substring(index + 1, buf.Length - index - 1);
                    index = 0;
                }
            }
然后我在前台代码中添加  <%=menu_str%>效果是:表格出现了,但是链接却无效,初学,大家多多帮忙啊!