Alguien sabe como hacerlo?
Les añado el código que tengo por si les sirve de ayuda. Dicho código está en una función dentro de la página "tpv.aspx.cs" y esta función se llama al hacer clic en un botón de la págin "tpv.aspx".
Código:
He intentado ponerlo en un "iframe" pero no lo he conseguido, si alguien se ha encontrado con este problemilla y puede hecharme una mano se lo agradeceré infinitamente.Response.Write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>"); Response.Write("<html><head><title>TPV</title>"); Response.Write("<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />"); Response.Write("<SCRIPT LANGUAGE='JavaScript'>"); Response.Write(" function calc() {"); Response.Write(" vent=window.open('','tpv','width=725,height=600,scrollbars=no,resizable=no,status=yes,menubar=no,location=no');"); Response.Write(" document.forms[0].submit();"); Response.Write(" }"); Response.Write(" </SCRIPT>"); Response.Write("</head>"); Response.Write("<body leftmargin='0' topmargin='0' marginheight='0' marginwidth='0' onLoad='javascript:calc();'>"); Response.Write("<form name='compra' action='" + URL_TPVVIRTUAL_Value + "' method='post' target='tpv'>\n"); Response.Write("<input type=HIDDEN name='URL_TPV_VIRTUAL' value='" + URL_TPVVIRTUAL_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_MerchantCode' value='" + Ds_Merchant_MerchantCode_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_Terminal' value='" + Ds_Merchant_Terminal_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_Order' value='" + Ds_Merchant_Order_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_Amount' value='" + Ds_Merchant_Amount_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_ProductDescription' value='" + Ds_Merchant_ProductDescription_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_Titular' value='" + Ds_Merchant_Titular_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_Currency' value='" + Ds_Merchant_Currency_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_TransactionType' value='" + Ds_Merchant_TransactionType_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_MerchantUrl' value='" + Ds_Merchant_MerchantURL_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_MerchantName' value='" + Ds_Merchant_MerchantName_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_MerchantData' value='" + Ds_Merchant_MerchantData_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_Password' value='" + Ds_Merchant_Password_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_MerchantSignature' value='" + Ds_Merchant_Signature_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_UrlOK' value='" + Ds_Merchant_URLOK_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_UrlKO' value='" + Ds_Merchant_URLKO_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_Merchant_ConsumerLanguage' value='" + Ds_Merchant_ConsumerLanguage_Value + "'>"); Response.Write("<input type=HIDDEN name='Ds_SecurePayment' value=1>"); Response.Write("</form>"); Response.Write("</body>"); Response.Write("</html>");
Muchas gracias por adelantado.
Pimager