Results 1 to 5 of 5

Thread: How to access aspx.vb function from client javascript???

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    10

    How to access aspx.vb function from client javascript???

    my page will have a table(not grid, just html table) with a lot of datas. when user click on one of the data, the data will need to use pass into the server and refresh the screen to display more the details.

    how to call the server function in the aspx.vb from a table???

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I personally use customer post-backs.
    So, have a <form> on your page with the data required to generate the current page, plus the data you want to pass back in all as hidden fields. The action for the form will be the current page.

    So, when the user clicks, set those values in the form and then submit the form.
    You can then process the data in the postback.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    10
    Actually i want to display the datas on a table. When user select 1 of the data on the table i need to display the details. But table don't have attribute like runat="server" and AutoPostBack="true"... So what should i do in order for the server to know what is the data user have been selected???

  4. #4

  5. #5
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    Re: How to access aspx.vb function from client javascript???

    http://vbforums.com/showthread.php?t=329597

    or you could try this thing
    Magiaus

    If I helped give me some points.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width