
11/05/2005, 04:38
|
 | | | Fecha de Ingreso: abril-2005
Mensajes: 611
Antigüedad: 20 años Puntos: 1 | |
Lo del == me di cuenta pronto pero hay algo estraño, aki:
if (Convert.ToString(ViewState["identificadores"]).IndexOf(arr[Convert.ToInt16(i)])!=-1)
{
Response.Write("HOLA");
}
else
{
myCommand.CommandText = " Insert into UsuariosServicios (UsServIdServ,UsServIdUs) values(" + arr[i] +"," + ComboLogin.SelectedItem.Value +")";
}
me entra en el response.write("hola") cosa que por lo que he entendido no deberia entrar.
A parte la sql me la saca asi:
Delete from UsuariosServicios where UsServIdServ= and UsServIdServ=7 and UsServIdServ=5 and UsServIdServ=2 and UsServIdServ=6 and UsServIdServ=3 and UsServIdUs=3
me los anida todos. |