Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2190
  • Last Modified:

default button error - webform_firedefaultbutton not defined

Hi

I have a default button set up on my webpage as so:
onkeypress="return WebForm_FireDefaultButton(event, 'Master_MainContent_Login1_LoginButton')"

but i am getting a javascript error saying that this function is not defined?

where is this function located? how come it is not defined in my page?

thanks
andrea
0
andieje
Asked:
andieje
  • 2
1 Solution
 
Elvio Lujan.Net Senior DeveloperCommented:
andieje... i don't know where is this function... you have to define it!
0
 
andiejeAuthor Commented:
it's a built in asp.net 2.0 function
0
 
Solar_FlareCommented:
that function will exist in the javascript in your rendered page. It is put there automatically by the server to achieve the dafault button functionality.

have a look at the source and see if you can find it in the HTML somewhere.
0
 
andiejeAuthor Commented:
hi solar_flare

i downloaded the javascript produced by the asp.net fraemwork. All the usual validator stuff was there but not the default submit javascript. Most odd!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now