Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Tye Thompson   on Jul 01 In Asp.net Category.

  
Question Answered By: Amelia Schmidt   on Jul 01

The code  is ok, I would only think that there is a
javascript error
before the focus  scripts executes. And that error
could come up because
you set onload="focus()" in the body tag.

So, that's not necesary if you're using
RegisterStartupScript. just
remove the onload event handler.

A way of debug this is checkin the View Source in
the browser. You can
see if the js was generated  or not in appropiate
format.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Problem with Focusing the Text box on Page Load Or get search suggestion and latest updates.


Tagged: