Foros del Web » Programación para mayores de 30 ;) » .NET »

Insertar TPV el en navegador

Estas en el tema de Insertar TPV el en navegador en el foro de .NET en Foros del Web. Hola a todos, estoy trabajando con C# y tengo que insertar un TPV dentro de la página web. Hasta el momento funciona correctamente, el problema ...
  #1 (permalink)  
Antiguo 24/02/2011, 02:25
 
Fecha de Ingreso: julio-2010
Mensajes: 298
Antigüedad: 13 años, 9 meses
Puntos: 8
Insertar TPV el en navegador

Hola a todos, estoy trabajando con C# y tengo que insertar un TPV dentro de la página web. Hasta el momento funciona correctamente, el problema es que abro una nueva ventana a modo de pop-up y querría que se colocara en un punto de la página.
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:
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>");
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.

Muchas gracias por adelantado.
Pimager

Etiquetas: c#, tpv, navegadores
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 18:46.