I am developing an ASP.net Web Application. I have an weird incident right now:
I got a Master Page which contains the Menu and some other stuff. It also contains in the right Upper corner 2 Buttons two switch language.
The weird thing is, when a user in the content Page presses Enter in a disabled textbox the German Button gets pressed. This behavior isn’t implemented in any form.
Here is the code for the Button:
<asp:ImageButton ID="german" runat="server" AlternateText="de-AT" ImageUrl="~/Design/img/german.gif"
meta:resourcekey="germanResource1" OnClick="english_Click" style="" />
<br />
<asp:ImageButton ID="english" runat="server" AlternateText="en-US" ImageUrl="~/Design/img/english.jpg"
meta:resourcekey="englishResource1" OnClick="english_Click" style="" />
Does anyone have an idea what is going wrong, or how to fix this?
i suppose you can use
in the Page_Load to set a default button and focus,
also you could put the buttons at the bottom of the html and use css to position them to the top part of the page