form that runs at server and client?

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
 
B

bruce barker

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

-- bruce (sqlwork.com)
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top