ASP.NET

G

Guest

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=server) from the
form, then all the controls (serverside) start spitting errors....

What will be a good solutions to this problem?

Any help????
 
G

Guest

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="javascript">
<!--
function f_load()
{
window.open
("somefpage.aspx",'null','resize=1,menubar=1,scrollbars=1,toolbar=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="javascript:return f_load();"

Now try it and let me know.

Bhavesh Patel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top