Clientside code and Serverside code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christian Dokman

    #1

    Clientside code and Serverside code

    Is it possible to interact between client-side code and ASP.NET
    (server-side) code and how is this done? For example, I have a
    html-table that shows a column with html-buttons. When I click on a
    button, I want to handle the click event with ASP.NET. I now handle it
    with Javascript. Is it possible to 'do something' in the javascript
    function to make values etcetera accesible in ASP.NET code?



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Dan Kelley

    #2
    Clientside code and Serverside code

    You will need to make the control a server side control.
    That way you can handle the events in the code behind.
    Client side controls could only interact with the server
    if you add some code to explicitly post to the server
    using an HTTP postback.

    Dan
    [color=blue]
    >-----Original Message-----
    >Is it possible to interact between client-side code and[/color]
    ASP.NET[color=blue]
    >(server-side) code and how is this done? For example, I[/color]
    have a[color=blue]
    >html-table that shows a column with html-buttons. When I[/color]
    click on a[color=blue]
    >button, I want to handle the click event with ASP.NET. I[/color]
    now handle it[color=blue]
    >with Javascript. Is it possible to 'do something' in the[/color]
    javascript[color=blue]
    >function to make values etcetera accesible in ASP.NET[/color]
    code?[color=blue]
    >
    >
    >
    >*** Sent via Developersdex http://www.developersdex.com[/color]
    ***[color=blue]
    >Don't just participate in USENET...get rewarded for it!
    >.
    >[/color]

    Comment

    Working...