Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/05/2009, 08:33
GgVilla
 
Fecha de Ingreso: mayo-2009
Mensajes: 35
Antigüedad: 15 años
Puntos: 0
Respuesta: Duplicado de datos en asp y bd sql server 2000

Mira me pasa dos veces por el Insert con este codigo:

Try

Dim ErrorInsert As Boolean = False

Me.dsAnaliticas.InsertParameters.Clear()

If Me.Analiticas.Text <> "" Then
Me.dsAnaliticas.InsertParameters.Add("Analitica", Me.Analiticas.Text)
Else
ErrorInsert = True
Alert("La 'Analitica' es obligatoria. Por favor escriba una.")
End If

If ErrorInsert = False Then
Me.dsAnaliticas.Insert()
End If

Catch ex As Exception
Alert("No se ha podido añadir la Analítica. Por favor vuelva a intentarlo o consulte con su administrador")

End Try

y luego se va al html y se pone a dar vueltas mogollon de veces por este trozo de codigo:
<ItemTemplate>
<asp:Label ID="FormaPago" runat="server" CssClass="lblFicha" Text='<%# Bind("DETERMINACION") %>' Width="100%"></asp:Label>
</ItemTemplate>
<AlternatingItemTemplate>
<asp:Label ID="FormaPago" runat="server" CssClass="lblFicha" Text='<%# Bind("DETERMINACION") %>' Width="100%"></asp:Label>
</AlternatingItemTemplate>