Disable ValidationSummary control on pressing of Enter Key
-
I have got 2 panels on my page,Say, Panel1 with DefaultButton Button1,ValdationSummary1 and some textboxes. Here same validation group is assigned to Button1 & ValdationSummary1 Panel2 with DefaultButton Button2,ValdationSummary2 and some textboxes. Here also same validation group is assigned to Button2 & ValdationSummary2 On pressing Enter key,if I am in panel1 ,it is supposed to execute Button1_Click(), but here it is not even firing any event. And even after clicking on Button1, it is showing me ValidationSummry2's error messages(i.e. textboxes in panel2 are blank.) However, it works without the Validation summary controls.But I cant remove them from the page for some reason. Now, what I want to do is,in whichever panel I am working in, On pressing Enter key,it should fire that particular panels' default button's click event & should not check the validations in another panel. Can anyone please suggest me,how can I achieve this... Thank You.