I have a variable in aspx.cs
when I click the Datagrid particular row;
Then from the javascript, I should get that value and pass into aspx.cs variable.
how to do this?
I have a variable in aspx.cs
when I click the Datagrid particular row;
Then from the javascript, I should get that value and pass into aspx.cs variable.
how to do this?
Using html controls
First you use a hidden input control as:
Second you add to that control the value you like to send on code behind using javascript as:
And then on post back you get that value as:
Using asp.net Controls
The same way if you use asp.net control can be as:
and get it on code behind with
SendA.Value;
And of course you can use ajax calls to send on code behind values, or simple call url with url parameters that return no content.