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
andiejeAsked:
Who is Participating?
 
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
 
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
 
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.

All Courses

From novice to tech pro — start learning today.