Click here to Skip to main content
15,902,938 members

Comments by Vindhyachal_Kumar (Top 10 by date)

Vindhyachal_Kumar 16-Jun-16 4:12am View    
You can't do it because your angularjs and webapi projects are running on two different port.

Alternatively you can try url rewriting to reroute your request to webapi.
Vindhyachal_Kumar 24-Sep-14 7:10am View    
You want check folder on client machine or server?
Vindhyachal_Kumar 5-Sep-14 2:45am View    
@Manikandan, please do the debugging and check is this condition is true or false because 2nd grid binding depends on this condition.
Vindhyachal_Kumar 4-Sep-14 4:36am View    
Hi george, just add contition if (dtimport.Rows.Count == 0) before cloning.

try the below updated code.

try
{

DataTable dtdcnomissing = new DataTable();
dtdcnomissing.Clear();
dtdcnomissing = objRetailBAL.DCNOMissing(objRetailPL);
DataTable dtimport = new DataTable();
DataTable dtmissingreport = new DataTable();
for (int i = 0; i <= dtdcnomissing.Rows.Count - 1; i++)
{

dtmissingreport.Clear();
objRetailPL.dcnoint = Convert.ToInt32(dtdcnomissing.Rows[i]["id"].ToString());
dtmissingreport = objRetailBAL.DCNOMissingReport(objRetailPL);
if (dtimport.Rows.Count == 0)
dtimport = dtmissingreport.Clone();
foreach (DataRow dr in dtmissingreport.Rows)
{
dtimport.ImportRow(dr);
}
}

GVDCNoMissingReport.DataSource = dtimport;
GVDCNoMissingReport.DataBind();


}
Vindhyachal_Kumar 4-Sep-14 3:02am View    
provide the AngularJS code with sample JSON data.