Click here to Skip to main content
15,886,740 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalproblem with bool field Pin
eyeseetee17-Apr-08 1:22
eyeseetee17-Apr-08 1:22 
GeneralRe: problem with bool field Pin
Herman<T>.Instance17-Apr-08 1:45
Herman<T>.Instance17-Apr-08 1:45 
GeneralRe: problem with bool field Pin
eyeseetee17-Apr-08 2:14
eyeseetee17-Apr-08 2:14 
GeneralRe: problem with bool field Pin
Herman<T>.Instance17-Apr-08 2:40
Herman<T>.Instance17-Apr-08 2:40 
GeneralRe: problem with bool field Pin
rajkumar.317-Apr-08 1:51
rajkumar.317-Apr-08 1:51 
GeneralRe: problem with bool field Pin
eyeseetee17-Apr-08 2:12
eyeseetee17-Apr-08 2:12 
GeneralRe: problem with bool field Pin
eyeseetee17-Apr-08 4:04
eyeseetee17-Apr-08 4:04 
QuestionCapturing the UN-UPDATED records Pin
John Sundar17-Apr-08 0:58
John Sundar17-Apr-08 0:58 
for (i=1;i=5;i++)
{
int a=i;
sqlinsert="update tbl_name set loop_no=a where rollnumber=a";
cmd = new SqlCommand(sqlinsert, conn);
try
{
cmd.ExecuteNonQuery();
}
catch(Exception ex)
{
FileStream fs;
StreamWriter sw;
fs=new Filestream("logfile.txt",FileMode.open);
sw=new StreamWriter(fs);
string newline="Roll No:"+a+"was not updated";
sw.close();
fs.close();
}
}


once if its go for "CATCH" block, how it can proceed others?
i.e, if record 2 fails, will it proceed other records and complete the whole FOR loop????
i tried.. but getting error...
how to achieve it?
thanks in advance and understanding....
GeneralRe: Capturing the UN-UPDATED records Pin
Ariel Kazeed17-Apr-08 1:13
Ariel Kazeed17-Apr-08 1:13 
GeneralRe: Capturing the UN-UPDATED records Pin
pmarfleet17-Apr-08 1:14
pmarfleet17-Apr-08 1:14 
GeneralQuestion Pin
nithydurai17-Apr-08 0:53
nithydurai17-Apr-08 0:53 
GeneralRe: Question Pin
eyeseetee17-Apr-08 0:56
eyeseetee17-Apr-08 0:56 
GeneralRe: Question Pin
_AK_17-Apr-08 1:18
_AK_17-Apr-08 1:18 
GeneralRe: Question Pin
Vasudevan Deepak Kumar17-Apr-08 21:50
Vasudevan Deepak Kumar17-Apr-08 21:50 
Questionhow is run Pin
sugunavathysubramanian17-Apr-08 0:42
sugunavathysubramanian17-Apr-08 0:42 
AnswerRe: how is run Pin
_AK_17-Apr-08 0:45
_AK_17-Apr-08 0:45 
GeneralRe: how is run Pin
sugunavathysubramanian17-Apr-08 0:53
sugunavathysubramanian17-Apr-08 0:53 
GeneralRe: how is run Pin
J4amieC17-Apr-08 1:46
J4amieC17-Apr-08 1:46 
GeneralRe: how is run Pin
Vasudevan Deepak Kumar17-Apr-08 21:53
Vasudevan Deepak Kumar17-Apr-08 21:53 
AnswerRe: how is run Pin
Ariel Kazeed17-Apr-08 0:54
Ariel Kazeed17-Apr-08 0:54 
GeneralRe: how is run Pin
sugunavathysubramanian17-Apr-08 1:03
sugunavathysubramanian17-Apr-08 1:03 
GeneralRe: how is run Pin
pmarfleet17-Apr-08 1:09
pmarfleet17-Apr-08 1:09 
AnswerRe: how is run Pin
Ariel Kazeed17-Apr-08 1:11
Ariel Kazeed17-Apr-08 1:11 
AnswerRe: how is run Pin
Vasudevan Deepak Kumar17-Apr-08 21:51
Vasudevan Deepak Kumar17-Apr-08 21:51 
GeneralCreating a Word Document Pin
Jaya Prakash Rao17-Apr-08 0:31
Jaya Prakash Rao17-Apr-08 0:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.