Which control genrate the PostBack?
-
Hi, My custom webcontrol contains two buttons, both genrates PostBack. on the Page_Load event i am binding the control to a data source,but i need to do it only when user press the first butto. in the Page_Load event is it possible to now which button genrate the PostBack? BTW:The "button" are LinkButton and Button thanks in advance.
-
Hi, My custom webcontrol contains two buttons, both genrates PostBack. on the Page_Load event i am binding the control to a data source,but i need to do it only when user press the first butto. in the Page_Load event is it possible to now which button genrate the PostBack? BTW:The "button" are LinkButton and Button thanks in advance.
-
Thats what the OnClick events are used for :) I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
Thanks, as far as i know the Page_Load called before the OnClick and it is cause me problem. i am binding the control to a data source in the Page_Load event(just like i saw in many examples),sometimes when the user press a specific button,i dont need to bind the control,but on the OnClick event it is too late isn't it? thanks. tomer
-
Thanks, as far as i know the Page_Load called before the OnClick and it is cause me problem. i am binding the control to a data source in the Page_Load event(just like i saw in many examples),sometimes when the user press a specific button,i dont need to bind the control,but on the OnClick event it is too late isn't it? thanks. tomer
You should "never" databind in a postback in the PageLoad event. You should do it in the buttons event or what ever your chosen event is , but not in PageLoad. :) I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
-
You should "never" databind in a postback in the PageLoad event. You should do it in the buttons event or what ever your chosen event is , but not in PageLoad. :) I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
ok thanks,i will do it. tomer