Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/06/2006, 08:35
Stream
 
Fecha de Ingreso: mayo-2004
Ubicación: Guadalajara, Jalisco, México
Mensajes: 724
Antigüedad: 20 años
Puntos: 6
Hola, ya hize una prueba y a mi si me funciona...

html:
Código:
<body>
    <form id="form1" runat="server">
        <div>
            <asp:Button ID="btn_cargar" runat="server" Text="Button" />
        </div>
    </form>
</body>
Y el codebehind:
Código:
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            btn_cargar.Attributes.Add("onclick", "return abrir_ventana();");

            System.Text.StringBuilder script = new System.Text.StringBuilder();
            script.Append("function abrir_ventana()\n");
            script.Append("{\n");
            script.Append("  window.open('frm_cargar_plan_venta.aspx' , '' , 'fullscreen=0 , toolbar=0 , location=0 , status=0 , menubar=0, scrollbars=0 , resizable=0 , width=700 , height=500, left=0, top=0' , true);\n");
            script.Append("  return false\n");
            script.Append("}\n");
            Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "ScriptFunction", script.ToString(), true);
        }
    }
Haber si te sirve...