Solved

default button error - webform_firedefaultbutton not defined

Posted on 2006-11-23
4
2,031 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Moving code from one TFS branch to another 3 33
Error handling in asp.net site 5 34
Easy filter aspnet 2 24
asp Google Map 2 23
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

809 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