Clientside code and Serverside code

  • Thread starter Thread starter Christian Dokman
  • Start date Start date
C

Christian Dokman

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?
 
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
 
Back
Top