I have a datatable
object which returns me 1 one based on some condition. What I want is, I want to fill those datatable
values in the control from the aspx
side. For that I want to convert those datatable into json
. How to convert it and bind to the aspx page?
Here is the code I tried:
protected void GET_VSAT_FORM_DATA(string SapId, string CandidateId)
{
try
{
DataTable dtGetData = new DataTable();
CommonDB CDB = new CommonDB();
dtGetData = CDB.GET_VSAT_DATA(SapId, CandidateId);
}
catch (Exception)
{
throw;
}
}
UPDATE
<span>CIRCLE :</span>
<input type="text" id="txtCircle" style="width: auto;" readonly="true" />
<br />
<span>CANDIDATE ID :</span>
<input type="text" id="txtCandidate" style="width: auto;" readonly="true" />
<br />
<span>SITE ID :</span>
<input type="text" id="txtSiteId" style="width: auto;" readonly="true" />
<br />
<span>PRIORITY ID :</span>
<input type="text" id="txtPriority" style="width: auto;" readonly="true" />
<br />
<span>SITE NAME :</span>
<input type="text" id="txtSiteName" style="width: auto;" readonly="true" />
<br />
<span>SAP ID :</span>
<input type="text" id="txtSapId" style="width: auto;" readonly="true" />
<br />