Foros del Web » Programación para mayores de 30 ;) » .NET »

ejecutar rutina con link

Estas en el tema de ejecutar rutina con link en el foro de .NET en Foros del Web. 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. ...
  #1 (permalink)  
Antiguo 16/04/2009, 07:11
 
Fecha de Ingreso: mayo-2008
Mensajes: 353
Antigüedad: 16 años
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
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:10.