Foros del Web » Programando para Internet » Javascript » Frameworks JS »

DDL Ajax

Estas en el tema de DDL Ajax en el foro de Frameworks JS en Foros del Web. Buenas,tengo 3 DDL dependiente uno del otro y cada uno dentro de updatepanel Ajax ,luego en el 2do DDL hago click luego: ERROR "Invalid postback ...
  #1 (permalink)  
Antiguo 01/10/2010, 07:16
 
Fecha de Ingreso: mayo-2008
Mensajes: 353
Antigüedad: 16 años
Puntos: 3
DDL Ajax

Buenas,tengo 3 DDL dependiente uno del otro y cada uno dentro de updatepanel Ajax ,luego en el 2do DDL hago click luego: ERROR

"Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or
<%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or
callback events originate from the server control that originally rendered them. If the data is valid and expected, use the
ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation."

OK. coloco esto enableEventValidation="false" en el formulario no genera el error pero estoy desprotegido

Detalle, dentro de los ddl tengo un ítem creado por programa llamado, "Crear Producto" como el "Seleccione uno",
cuando seleccionan a ese "Crear Producto", mando a textbox1.visible=True , boton1.visible=True y ddlregion.Visible = False a este ultimo si lo hace Perooo al resto NO lo hace .

Este es el Código

Protected Sub ddlregion_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlregion.SelectedIndexChanged
If ddlregion.SelectedItem.Text = "Agregar Producto" Then
ddlregion.Visible = False a este SI lo coloca invisible
txtcodsu.Visible = True a este NO lo hace
txtdescsuc.Visible = True a este NO lo hace
btbactua.Visible = True a este NO lo hace
btbcancel.Visible = True a este NO lo hace

Exit Sub
End If
cargarclte()
End Sub

Continuo con Ajax SI o NO??

Etiquetas: ajax
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 04:57.