Seboko
03-15-2006, 04:09 AM
Its very difficult to understand why .NET 1 does not easily allow posting a form to another page. I am using .NET 1 and really need to post to a different page developed by someone else who develops in php. He tells me he needs a form with certain fields. he will retrieve the fields and do whatever needs to be done and send me back the form.
The problem is that my page posted to itself. So I removed the runat attribute of my form. This resulted in the form being able to post to another page when the submit button is clicked, which was good. But I want to also write the information on the form to a database before sending out. This means I have to add the runat="server" to the submit button (so that I can add code to execute when this button is clicked). But clicking this button results in nothing happenning until I have added the runat="server" to the form - exactly what I was trying to avoid in the first place.
Having the runat="server" added to both my submit button and form results in data being written to the database when a submit button is clicked (which is what I want) but the form is not posted to this other person's page (which is not what I want).
Can you think of a way arround this???
The problem is that my page posted to itself. So I removed the runat attribute of my form. This resulted in the form being able to post to another page when the submit button is clicked, which was good. But I want to also write the information on the form to a database before sending out. This means I have to add the runat="server" to the submit button (so that I can add code to execute when this button is clicked). But clicking this button results in nothing happenning until I have added the runat="server" to the form - exactly what I was trying to avoid in the first place.
Having the runat="server" added to both my submit button and form results in data being written to the database when a submit button is clicked (which is what I want) but the form is not posted to this other person's page (which is not what I want).
Can you think of a way arround this???