Click here to Skip to main content
15,884,237 members

Comments by Member 9413472 (Top 25 by date)

Member 9413472 24-Sep-12 10:36am View    
Hi sandeep thanks for your reply

Is there any other way without using XMLHttprequest. I have just place the treeview control, added player control called ASPNetAudio.NET3 I have also added mp3 files in my project to particular folder init.I didnt do any coding yet.

Could you please suggest.

Thank you
Member 9413472 24-Sep-12 10:33am View    
I have just place the treeview control, added player control called ASPNetAudio.NET3 I have also added mp3 files in my project to particular folder init.I didnt do any coding yet.

Could you please suggest.

Thank you
Member 9413472 21-Sep-12 12:20pm View    
Yes Thank you for your answer What I am doing over here is m using two datatable anf then getting one column from the first datatable and two columns from the second datatable depending on the first one.Is this the correct way I have done in my coding? If no then Can you please give me what should be the better solution for this?

Thank you
Member 9413472 21-Sep-12 12:06pm View    
hello

here is my code now

private void creategvreceptionist()
{

string[] values;
DataTable dtreceptionisttmslot = (DataTable)cnt.GetRecord("select first_appointment_time from tblValidAppointmentTime ");
if (dtreceptionisttmslot != null && dtreceptionisttmslot.Rows.Count > 0)
{
values =new string[dtreceptionisttmslot.Rows.Count];
foreach (DataRow row in dtreceptionisttmslot.Rows)
{

//DataTable dtreceptionist = (DataTable)cnt.GetRecord("SELECT p.id,p.fname,p.lname,p.DOB,v.facility_name,v.provider_name,v.first_appointment_time,v.tmslot_id,v.timeslot_id,e.pc_pid, e.pc_eid, e.pc_aid, e.pc_title, e.pc_eventDate, e.pc_startTime, e.pc_hometext, u.fname, u.lname, u.mname FROM tblPatientData AS p,tblValidAppointmentTime AS v,tblOpenemrPostcalendarEvents AS e, tblUsers AS u WHERE e.pc_eventDate >= '" + DateTime.Now.ToShortDateString() + "' AND u.id = e.pc_aid AND p.id=e.pc_pid AND e.pc_tmslot_id=v.tmslot_id ");
string q = "select fname,DOB from tblPatientData";
DataTable dtreceptionist = (DataTable)cnt.GetRecord(q);

if (dtreceptionist.Rows.Count > 0)
{

foreach (DataRow arow in dtreceptionist.Rows)
{




values[0] = row["first_appointment_time"].ToString();

values[1] = arow["fname"].ToString();
values[2] = arow["DOB"].ToString();


dtreceptionisttmslot.Rows.Add(values);
}
}
else
{
values[0] = row["time"].ToString();
values[1] = null;
values[2] = null;
//dtreceptionisttmslot.Rows.Add();
}
}
}
dtreceptionisttmslot.AcceptChanges();
gvreceptionist.DataSource = dtreceptionisttmslot;
gvreceptionist.DataBind();


}

when i am adding the value with the line dttimeslottmslot.row.add(values) that line shows me an error input array is longer than the columns in this table
Member 9413472 21-Sep-12 11:57am View    
hello marcus
Thank for your answer i have use your above approach but still its getting me that error. Do you have any solution.