Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/04/2009, 07:11
chuchufuentes
 
Fecha de Ingreso: mayo-2008
Mensajes: 353
Antigüedad: 16 años, 11 meses
Puntos: 3
ejecutar rutina con link

Ayuda por favor

coloco un control y dale con este error

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

luego
<form id="xx" runat=server>
<asp:linkbutton id=LinkButton2 runat="server">dale</asp:linkbutton>
</form>

ahora este error

A page can have only one server-side Form tag


Ok, lo que se me ocurre es como ejecuto un link ejemplo "Dale" y este link ejecute la rutina Sub adelante

Public Sub adelante()
'ultimo
Dim tmpInt As Integer
tmpInt = CInt(intRecordCount.Text) Mod CInt(intPageSize.Text)
If tmpInt > 0 Then
intCurrIndex.Text = CStr(CInt(intRecordCount.Text) - tmpInt)
Else
intCurrIndex.Text = CStr(CInt(intRecordCount.Text) - CInt(intPageSize.Text))
End If
DataBind1()
End Sub

Por favor una mano (pls) con esto