5
Answers

Event Handler for dynamic created control

Alok Uniyal

Alok Uniyal

12y
2.3k
1
Hello all,
I dynamically generate asp:table in  selectedindex change event of ExamType dropdown.
At last column in row of table i add a submit button. I add event handler in that button like- 
  btnSave.Click += new EventHandler(this.btnSaveClick);

But it is not working .Plz give any suggestion. I m attaching a snapshot of this prob.
Answers (5)
0
Kunal Vaishya

Kunal Vaishya

NA 4.1k 265.7k 12y

Dear Please Set IsPostBack Property true of DropDown Control it will work
0
Alok Uniyal

Alok Uniyal

NA 550 15.7k 12y
But i want to bind table on selected index change event of Drop-down. i don't know why it is not working. I know it will work on page load event.
0
Kunal Vaishya

Kunal Vaishya

NA 4.1k 265.7k 12y


Put this Code on Page Load Event
0
Alok Uniyal

Alok Uniyal

NA 550 15.7k 12y
Sir how to add Event handler on submit button?
0
Kunal Vaishya

Kunal Vaishya

NA 4.1k 265.7k 12y

Dear yes this good you can implement this .