Click here to Skip to main content
15,888,016 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: retiveig columns Pin
yuvachandra13-Apr-07 2:47
yuvachandra13-Apr-07 2:47 
QuestionNeed help in DotNetNuke ( Please reply urgent) Pin
Faisal Khatri13-Apr-07 1:11
Faisal Khatri13-Apr-07 1:11 
Questionstring js=AttachListener('isSelectCheckBox'); Pin
siddisagar13-Apr-07 1:09
siddisagar13-Apr-07 1:09 
AnswerRe: string js=AttachListener('isSelectCheckBox'); Pin
Guffa13-Apr-07 1:51
Guffa13-Apr-07 1:51 
Questiondetermine which button on a form was clicked Pin
Russell Jones13-Apr-07 0:30
Russell Jones13-Apr-07 0:30 
AnswerRe: determine which button on a form was clicked Pin
thomasa13-Apr-07 0:49
thomasa13-Apr-07 0:49 
AnswerRe: determine which button on a form was clicked Pin
enjoycrack13-Apr-07 0:51
enjoycrack13-Apr-07 0:51 
GeneralRe: determine which button on a form was clicked Pin
Russell Jones13-Apr-07 0:58
Russell Jones13-Apr-07 0:58 
the code's a bit wrapped up with data code etc at the moment. A lot of the code has come from a very object oriented winform / service app so it's been hacked about a bit.

private TableCell GetButtonCell(string name, string cssClass,string Text)<br />
{<br />
   Button newButton = new Button();<br />
   newButton.Click+=new EventHandler(Button_Click);<br />
   newButton.ID = name;<br />
   newButton.CssClass = cssClass;<br />
   newButton.Text = Text;<br />
   TableCell newCell = new TableCell();<br />
   newCell.Controls.Add(newButton);<br />
   return newCell;<br />
}


That's the code for adding a new button.

For the moment i've found that only the button that submits the form has its name in the request.form collection so i'm checking in there and calling the Button_Click method from there.

Do you add controls after every post back?

Russell
GeneralRe: determine which button on a form was clicked Pin
enjoycrack13-Apr-07 1:01
enjoycrack13-Apr-07 1:01 
GeneralRe: determine which button on a form was clicked Pin
Russell Jones13-Apr-07 2:03
Russell Jones13-Apr-07 2:03 
GeneralRe: determine which button on a form was clicked Pin
enjoycrack13-Apr-07 3:55
enjoycrack13-Apr-07 3:55 
GeneralRe: determine which button on a form was clicked Pin
Russell Jones13-Apr-07 4:06
Russell Jones13-Apr-07 4:06 
QuestionEditing In Grid Pin
Lijo Rajan13-Apr-07 0:20
Lijo Rajan13-Apr-07 0:20 
AnswerRe: Editing In Grid Pin
_AK_13-Apr-07 1:11
_AK_13-Apr-07 1:11 
GeneralRe: Editing In Grid Pin
Lijo Rajan17-Apr-07 0:45
Lijo Rajan17-Apr-07 0:45 
GeneralRe: Editing In Grid Pin
_AK_17-Apr-07 2:52
_AK_17-Apr-07 2:52 
QuestionBinding Grid Pin
Lijo Rajan13-Apr-07 0:16
Lijo Rajan13-Apr-07 0:16 
AnswerRe: Binding Grid Pin
_mubashir13-Apr-07 0:19
_mubashir13-Apr-07 0:19 
GeneralRe: Binding Grid Pin
Lijo Rajan17-Apr-07 0:58
Lijo Rajan17-Apr-07 0:58 
AnswerRe: Binding Grid Pin
enjoycrack13-Apr-07 0:54
enjoycrack13-Apr-07 0:54 
QuestionHiding menubar, statusbar and toolbar in javascript Pin
Kanjinghat12-Apr-07 23:45
Kanjinghat12-Apr-07 23:45 
AnswerRe: Hiding menubar, statusbar and toolbar in javascript Pin
Kunal P13-Apr-07 0:39
Kunal P13-Apr-07 0:39 
GeneralRe: Hiding menubar, statusbar and toolbar in javascript Pin
Kanjinghat13-Apr-07 1:04
Kanjinghat13-Apr-07 1:04 
AnswerRe: Hiding menubar, statusbar and toolbar in javascript Pin
Kunal P13-Apr-07 1:09
Kunal P13-Apr-07 1:09 
GeneralRe: Hiding menubar, statusbar and toolbar in javascript Pin
Kanjinghat13-Apr-07 1:15
Kanjinghat13-Apr-07 1:15 

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.