Click here to Skip to main content
15,914,820 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How can get the event of a button added in a datagrid in asp.net? Pin
Mike Ellison21-Apr-06 2:53
Mike Ellison21-Apr-06 2:53 
AnswerRe: How can get the event of a button added in a datagrid in asp.net? Pin
narendrakumarp21-Apr-06 2:55
narendrakumarp21-Apr-06 2:55 
QuestionCheck size of disk on my coputer Pin
taoquandecor21-Apr-06 1:46
taoquandecor21-Apr-06 1:46 
AnswerRe: Check size of disk on my coputer Pin
Vasudevan Deepak Kumar21-Apr-06 2:04
Vasudevan Deepak Kumar21-Apr-06 2:04 
QuestionExtending Try Catch Pin
wEb GuRu...20-Apr-06 23:55
wEb GuRu...20-Apr-06 23:55 
AnswerRe: Extending Try Catch Pin
J4amieC21-Apr-06 0:08
J4amieC21-Apr-06 0:08 
GeneralRe: Extending Try Catch Pin
wEb GuRu...21-Apr-06 0:19
wEb GuRu...21-Apr-06 0:19 
GeneralRe: Extending Try Catch Pin
gyokusei21-Apr-06 21:49
gyokusei21-Apr-06 21:49 
The flow of try catch block is when your code in try block occurs an error, it will do something in catch block. After that it will do something after catch block. So that:

SqlConnection connection = new SqlConnection( "ConnectionString" );
SqlCommand cmd = new SqlCommand( "CommandText", connection );
try {
    connection.Open();
    cmd.ExecuteNoneQuery();
}
catch {
    // do something
}


now you put each line in try block in try catch block like that:
try {
    
    try {
        connection.Open();
    } catch {
        // do something
    }

    try {
         cmd.ExecuteNoneQuery();
    } catch {
        // do something
    }

}
catch {
    // do something
}


Do you understand now?
QuestionCan I use static variable in a page? Pin
MudkiSekhon20-Apr-06 23:36
MudkiSekhon20-Apr-06 23:36 
AnswerRe: Can I use static variable in a page? Pin
jiturinku21-Apr-06 1:30
jiturinku21-Apr-06 1:30 
AnswerRe: Can I use static variable in a page? Pin
Guffa21-Apr-06 1:40
Guffa21-Apr-06 1:40 
GeneralRe: Can I use static variable in a page? Pin
MudkiSekhon21-Apr-06 2:00
MudkiSekhon21-Apr-06 2:00 
AnswerRe: Can I use static variable in a page? Pin
Guffa21-Apr-06 2:16
Guffa21-Apr-06 2:16 
QuestionInstalling community starter kit Pin
vijayendra_shinde20-Apr-06 23:33
vijayendra_shinde20-Apr-06 23:33 
QuestionRetreiving values from excel sheet using COM Object ? Pin
narendrakumarp20-Apr-06 22:48
narendrakumarp20-Apr-06 22:48 
AnswerRe: Retreiving values from excel sheet using COM Object ? Pin
Paddy Boyd21-Apr-06 3:05
Paddy Boyd21-Apr-06 3:05 
QuestionUploading Zip file Pin
kirthikirthi20-Apr-06 21:58
kirthikirthi20-Apr-06 21:58 
AnswerRe: Uploading Zip file Pin
Vasudevan Deepak Kumar20-Apr-06 22:05
Vasudevan Deepak Kumar20-Apr-06 22:05 
GeneralRe: Uploading Zip file Pin
kirthikirthi20-Apr-06 22:10
kirthikirthi20-Apr-06 22:10 
GeneralRe: Uploading Zip file Pin
Vasudevan Deepak Kumar21-Apr-06 2:08
Vasudevan Deepak Kumar21-Apr-06 2:08 
Questiondebugging Pin
chakkara200320-Apr-06 21:25
chakkara200320-Apr-06 21:25 
AnswerRe: debugging Pin
Vasudevan Deepak Kumar20-Apr-06 22:07
Vasudevan Deepak Kumar20-Apr-06 22:07 
AnswerRe: debugging Pin
HimaBindu Vejella20-Apr-06 22:58
HimaBindu Vejella20-Apr-06 22:58 
GeneralRe: debugging Pin
chakkara200320-Apr-06 23:09
chakkara200320-Apr-06 23:09 
QuestionPDF report Pin
Jmshastri20-Apr-06 20:37
Jmshastri20-Apr-06 20:37 

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.