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
 

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

Back
Top