ASP.NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mavrick101

    #1

    ASP.NET

    Hi,

    I am trying to submit an asp.net form to a new window and thus using a
    normal "HTML" Button. Window opens fine, but the form submits to itself.
    Since it has runat=server tag. If I remove this tag(runat=serve r) from the
    form, then all the controls (serverside) start spitting errors....

    What will be a good solutions to this problem?

    Any help????
  • Bhavesh Patel

    #2
    RE: ASP.NET

    Hi mavrick101

    Please check the button control you have choosen.I didn't get any error
    doing the same.Try the following code.

    Put the function in the head tag of your HTML page.
    <script language="javas cript">
    <!--
    function f_load()
    {
    window.open
    ("somefpage.asp x",'null','resi ze=1,menubar=1, scrollbars=1,to olbar=0,status= 0,top=100,left= 100,height=500, width=700')
    }
    //-->
    </script>

    Now drop the html button ctl in your form(which has runat tag) and set the
    following attribute of the button.

    onclick="javasc ript:return f_load();"

    Now try it and let me know.

    Bhavesh Patel




    "mavrick101 " wrote:
    [color=blue]
    > Hi,
    >
    > I am trying to submit an asp.net form to a new window and thus using a
    > normal "HTML" Button. Window opens fine, but the form submits to itself.
    > Since it has runat=server tag. If I remove this tag(runat=serve r) from the
    > form, then all the controls (serverside) start spitting errors....
    >
    > What will be a good solutions to this problem?
    >
    > Any help????[/color]

    Comment

    Working...