Dim M As String Dim urlv As String M = "No se encontro el cliente indicado. ¿Desea ingresarlo?" Dim tCredito As String = Request.QueryString("TipoCredito") Session.Add("urlv", retQueryString(Me)) Session.Add("tCredito", Request.QueryString("TipoCredito")) Me.RegisterClientScriptBlock("Error", "<script>MsgShow('" & M & "','W',1)</script>")This code call a JavaScript function called MsgShow that has the code:
function MsgShow(msg,tipo,Modal) { var UR="/AplicacionCreditos/Ventanas/Ventanas.aspx?type="+ tipo +"&msg=" + msg; if (Modal==0) { var Retorno=Open("399","217","","","no","no","no","no","no",UR,"NoModal"); }else { var Retorno=Open("399","217","","","no","no","no","no","no",UR,"modal"); } return Retorno; }This function call a other ASP.Net form and this one has one bottom called Ok. The bottom has the code:
Dim tCredito As String = Session.Item("tCredito") Dim urlv As String = Session.Item("urlv") Dim Cliente As DataGridItem Cliente = (Session("CLIENTE")) If Not Session.Item("ID_CLIENTE") Is Nothing Then Session.Remove("ID_CLIENTE") Session.Add("ID_CLIENTE", -1) Session.Add("NUM_CLIENTE", -1) Session.Add("TIPO_CLIENTE", 1) Response.Redirect("solicitud_crediagil/begin/begin_cdav31.aspx?" & urlv)Every thing work without problem, I mean the first form call the dialog form and this one is showing, but when I make clic on the Ok bottom every runtime worj except