Posted on: 5/20/2015 4:30:09 PM | Views : 616

Hi all:
I have
Sub cargar_regiones(ByVal s As Object, ByVal e As EventArgs) Handles ddlregiones.DataBound, ddlregioneseventos.DataBound, ddlregiones_factura.DataBound, ddlregionesnegocios.DataBound, ddlregiones_otrosdatos.DataBound If Not IsPostBack OrElse ViewState("factura") OrElse ViewState("otrosdatos") Then Dim cnconexion As New SqlConnection(ConfigurationManager.ConnectionStrings("Cresolia").ConnectionString) Dim sqlc As New SqlCommand("seleccionar_datos_regiones", cnconexion) sqlc.CommandType = CommandType.StoredProcedure If Request.Cookies("cuenta") Is Nothing Then sqlc.Parameters.AddWithValue("@region_empresa", True) Else sqlc.Parameters.AddWithValue("@c10", Request.Cookies("cuenta").Value) End If cnconexion.Open() ...

Go to the complete details ...