Solved

default button error - webform_firedefaultbutton not defined

Posted on 2006-11-23
4
2,037 Views
Last Modified: 2007-12-19
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
Comment
Question by:andieje
  • 2
4 Comments
 
LVL 18

Expert Comment

by:Elvio Lujan
ID: 18003987
andieje... i don't know where is this function... you have to define it!
0
 

Author Comment

by:andieje
ID: 18004663
it's a built in asp.net 2.0 function
0
 
LVL 15

Accepted Solution

by:
Solar_Flare earned 500 total points
ID: 18005422
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
 

Author Comment

by:andieje
ID: 18007378
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question