How to persist the focus on the panel during postback
-
Hi, I am a beginner in .Net. In my application i have 4 panels. But,during postback(such as a button click event),the focus automatically goes to the first panel. In web,i found on idea to use TabbedPanels1.showPanel(tabindex) on button's onclick event. But,both in the OnClientClick and OnServerClick events i have written the validation and some task to be done respectively. How to persist the focus on the panel during postback? Thanks in advance :)
Yazhini
-
Hi, I am a beginner in .Net. In my application i have 4 panels. But,during postback(such as a button click event),the focus automatically goes to the first panel. In web,i found on idea to use TabbedPanels1.showPanel(tabindex) on button's onclick event. But,both in the OnClientClick and OnServerClick events i have written the validation and some task to be done respectively. How to persist the focus on the panel during postback? Thanks in advance :)
Yazhini
YazhiniP wrote:
But,both in the OnClientClick and OnServerClick events i have written the validation and some task to be done respectively.
You should always do validation on the server side, don't trust the client validation. If there's no server side focus method to call, then you need to write javascript to do it.
Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp