Server Error

  • Thread starter KudaKuLariGagahBerani
  • Start date
K

KudaKuLariGagahBerani

hi
i created a web user in TablePaging1.ascx and found that
this error

Control 'TablePaging1_Firstbutton' of type 'LinkButton'
must be placed inside a form tag with runat=server.

this is my code:
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="tablePaging.ascx.vb"
Inherits="tablePaging.tablePaging"
TargetSchema="http://schemas.microsoft.com/intellisense/ie
5" %>
<body MS_POSITIONING="GridLayout">

<ASP:DATAGRID id="DataGrid1"
runat="server" headerStyle-forecolor="White" HeaderStyle-
backcolor="Blue"
pagerStyle-visible="False"
allowCustomPaging="False"
AllowPaging="True"></ASP:DATAGRID><br>
<asp:linkbutton id="Firstbutton"
onclick="PagerButtonClick" runat="server"
CommandArgument="0"
Text="[First]"></asp:linkbutton><asp:linkbutton
id="Prevbutton" onclick="PagerButtonClick" runat="server"
CommandArgument="Prev"

Text="[Prev]"></asp:linkbutton><asp:placeholder
id="PlaceHolderLink"
runat="server"></asp:placeholder><asp:linkbutton
id="Nextbutton" onclick="PagerButtonClick" runat="server"
CommandArgument="Next"

Text="[Next]"></asp:linkbutton><asp:linkbutton
id="Lastbutton" onclick="PagerButtonClick" runat="server"
CommandArgument="Last"

Text="[Last]"></asp:linkbutton><br>
<asp:label id="lblStatus"
runat="server"></asp:label><br>
<br>

</body>

Where did i do wrong?
thax
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,185
Latest member
GluceaReviews

Latest Threads

Top