form that runs at server and client?

Discussion in 'ASP .Net' started by john, Dec 18, 2003.

  1. john

    john Guest

    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
     
    john, Dec 18, 2003
    #1
    1. Advertising

  2. john

    bruce barker Guest

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

    -- bruce (sqlwork.com)

    "john" <> wrote in message
    news:022201c3c5b1$48ea8c40$...
    > 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
     
    bruce barker, Dec 18, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. George Addison

    Server errors galore, local runs fine

    George Addison, Nov 28, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    325
    Tommy
    Nov 29, 2003
  2. -
    Replies:
    2
    Views:
    451
    Alan Krueger
    Jul 29, 2005
  3. Next
    Replies:
    0
    Views:
    175
  4. KK
    Replies:
    0
    Views:
    152
  5. froil
    Replies:
    4
    Views:
    143
    J├╝rgen Exner
    Mar 8, 2006
Loading...

Share This Page