Click here to Skip to main content
16,011,170 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: SaveDialog Pin
Vasudevan Deepak Kumar21-Apr-06 3:29
Vasudevan Deepak Kumar21-Apr-06 3:29 
QuestionAvoiding a dialog window when we are closing a page Pin
Jeeva Mary Varghese21-Apr-06 2:25
Jeeva Mary Varghese21-Apr-06 2:25 
AnswerRe: Avoiding a dialog window when we are closing a page Pin
Vasudevan Deepak Kumar21-Apr-06 3:30
Vasudevan Deepak Kumar21-Apr-06 3:30 
GeneralRe: Avoiding a dialog window when we are closing a page Pin
Jeeva Mary Varghese22-Apr-06 3:20
Jeeva Mary Varghese22-Apr-06 3:20 
QuestionHow can get the event of a button added in a datagrid in asp.net? Pin
SIJUTHOMASP21-Apr-06 2:16
professionalSIJUTHOMASP21-Apr-06 2:16 
AnswerRe: How can get the event of a button added in a datagrid in asp.net? Pin
sathish s21-Apr-06 2:25
sathish s21-Apr-06 2:25 
GeneralRe: How can get the event of a button added in a datagrid in asp.net? Pin
SIJUTHOMASP21-Apr-06 2:26
professionalSIJUTHOMASP21-Apr-06 2:26 
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 
I'll add a different approach to sathish's answer -

Since you are adding the button in a datagrid column, you can take advantage of event bubbling within the datagrid. Assign a CommandName (and optionally CommandArgument to the button (these are properties of the button). Then in the code handler for the DataGrid's ItemCommand event, you can determine if that command button were clicked by it's CommandName. For example, if you named your button "Details", then your DataGrid ItemCommand handler might look like this:
void MyGrid_ItemCommand(object o, DataGridCommandEventArgs e)
{
  if (e.CommandName == "Details")
  {
    // do something when "Details" is clicked...
    // perhaps check e.CommandArgument to get to additional
    // data assigned to the button...
  }
}
It's typical to use a switch statement in an ItemCommand handler if you have several buttons with CommandName's in your datagrid.
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 
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 

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.