narasiman rao

narasiman rao

  • NA
  • 519
  • 768.4k

how to get id from html into c#

Sep 15 2016 8:12 AM
 My code as follows  
 
 
function AddNewCriticalResource() {
var pro = $("#ms").val();
 
var ProjectIds = pro.toString();
 
var projectNames = $("#ms").text();
 
var addordelete = 1;
$.ajax({
type: "POST",
url: "CriticalResource.aspx/AddNewCriticalResource",
contentType: "application/json; charset=utf-8",
data: '{ stringAssociateIds: "' + associates + '", stringProjectIds: "' + ProjectIds + '", stringTaggedBy:"' + AssocID + '" }',
dataType: "json",
responseType: "json",
cache: false,
success: function (msg) {
var TableData = $.parseJSON(msg.d);
var alertString = '';
noOfRows = 0;
$.each(TableData, function (i, data) {
alertString = alertString + data.AssociateID + '-' + data.ProjectName + ', ';
noOfRows = i + 1;;
});
 
 
from the above code i want to get  projectNames into code behind page.
 
this below line  
var projectNames = $("#ms").text();
for that how can i do in Code behind page please help me.
 

Answers (6)