Click here to Skip to main content
15,890,123 members

Comments by pratham2587 (Top 18 by date)

pratham2587 1-Aug-12 4:43am View    
i just want to insert the selected data from checkbox in database
pratham2587 18-Jul-12 3:23am View    
using (StreamReader sr = File.OpenText(strPath))
{
while ((line = sr.ReadLine()) != null)
{
string[] data = line.Split(',');
if (data.Length > 0)
{
if (i == 0)
{

foreach (object item in data)
{
{

dt.Columns.Add(new DataColumn());

}
}

i++;
}
DataRow row = dt.NewRow();
row.ItemArray = data;
dt.Rows.Add(row);

}
}
}


After Debugging it goes till this code and after jumps directly to catch statement showing thata error.....
pratham2587 18-Jul-12 3:04am View    
as i am trying to debug the code it is not coming on that debugger it is directly going on catch and giving the above error
pratham2587 18-Jul-12 2:57am View    
thanks sanwar mal jat

But it is still showing same error Pls help
pratham2587 18-Jul-12 1:50am View    
still issue is not resolved PL need help to solve the problem ..As i am new to Asp.net PLease help

regards
OPratham
Thanks in advance