-3
如果我把它放到窗體標籤中,那麼它就解決了。但是gridview is disappeared
。現在我該怎麼辦?錯誤:'GridView'必須放置在窗體標籤內部,runat =服務器
<form runat="server" id="f1">`<asp:GridView ID="GridView1" runat="server" AllowPaging="True">
</asp:Gridview></form>
`
http://msmvps.com/blogs/jon_skeet/archive/2010/08/29/writing-the-perfect-question.aspx –
如果你沒有綁定gridview它不會出現 –