DefaultButton Error

J

Jeff

We have 3 environments, Dev, Qa, Prod. I'm working on an application
that has a search page. On the search page is 3 panels. One panel is
the advanced search, another a normal search and the third contains a
search and clear button. I hide one of the search panels based on what
the user wants. When search is clicked a datagrid is populated to the
right of the panels. What I want is for the search button to be
"clicked" when the user hits enter. In the Dev environment this works
fine. However in the QA environment I get script errors. More
specifically "object expected" and the code is on the line:

WebForm_AutoFocus('btnFilter');// -->

When I hit enter it takes me back to the main screen which I have a
button on the screen that does just that. I suspect it's "clicking"
that button instead of the "default" one.

I've:

Put the defaultbutton tag in the form and removed it for the panel
tags.
Put the defaultbutton tag in the panel tags
Put the defaultbutton tag in both places
Added the frm.Defaultbutton = btnFilter.UniqueId to the Page_load

All with the same result. The part I don't get is that it works in the
dev environment, and as far as I can tell they as identical (same
OS/.NET CLR/Framework Version/ASP Version)

Anyone have any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top