Avoiding navigation to another page on enter key press. in ASP.NET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pratsadhu
    New Member
    • Mar 2007
    • 16

    Avoiding navigation to another page on enter key press. in ASP.NET

    Hi,

    I have a web application which has a set of content pages under the master page. In one of the content pages i have a set of textboxes. When i focus on of the textboxes and press enter, it redirects to another which happens to be the first button on the master page. How to avoid this?



    Thanks,
    Prat
  • maheshmrk22
    New Member
    • Dec 2007
    • 23

    #2
    Hi

    Can you put your code here because it is very difficult to explain anything without understanding fact.

    Thanks
    Mahesh


    Originally posted by pratsadhu
    Hi,

    I have a web application which has a set of content pages under the master page. In one of the content pages i have a set of textboxes. When i focus on of the textboxes and press enter, it redirects to another which happens to be the first button on the master page. How to avoid this?



    Thanks,
    Prat

    Comment

    • fayazmd
      New Member
      • Jul 2007
      • 41

      #3
      Hi,

      Your question is not clear. Why you are pressing enter after focussing on textbox? I think your enter key press takes button click event of your page which has default tab location. Could you put your code here for further explanation.

      Originally posted by pratsadhu
      Hi,

      I have a web application which has a set of content pages under the master page. In one of the content pages i have a set of textboxes. When i focus on of the textboxes and press enter, it redirects to another which happens to be the first button on the master page. How to avoid this?



      Thanks,
      Prat

      Comment

      Working...