form that runs at server and client?

  • Thread starter Thread starter john
  • Start date Start date
J

john

We have an asp.net page that we are mixing our C# code on
both the code behind and in the .aspx page. We are using
the code behind for a server side control that has post
back events. but we are also putting <img> tags in the
aspx page that try to manually, via javascript, submit the
form so that we can get values entered in certian
textboxes. (dont ask, we have a reason for mixing code
behind, server side controls, with old fashond asp forms).

The problem is that when our javascript runs on the client
side and submits the form, the form is empty. but if i
take out the server side control and do everything the old
asp form way, the form is populated with all the data the
user entered in the text boxes.

is there a way to mix server side controls and a form with
runat="server" in it, and a client side form the way asp
does it?

thanks,
John
 
the client script has to submit the runat=server form, asp.net does not
support multi-forms on the same page

-- bruce (sqlwork.com)
 
Back
Top