panel.defaultbutton is not working in IIS 7.5, but it IS working in VS Express 2012

adithi

New Member
I'm working on a Quiz application that has three sections - Quizzes, Questions, and Answers. Each section is a child of the one above. For example, I have a gridview object that displays all of the quizzes that a quiz admin creates. If you select one of those quizzes in the GridView, there is another GridView object that shows all of the questions for that quiz. And if you select a Question from the "gvQuestions" GridView, all of the answers pertaining to that question are displayed in a third GridView ("gvAnswers") in the last section. Within each panel (besides the GridView object) there is an area where a new Quiz, Question, or Answer can be added, respectfully. That is, the "pnlQuiz" panel has a GridView object that shows all of the user's quizzes, and also a couple of textboxes and a button so that a user can click the "btnAddNewQuiz" button to add a new Quiz to the database. Likewise for the Questions and Answers Panels. I have the default button for each panel set for the add new button in each panel (btnAddNewQuestion and btnAddNewAnswer).When I run the app from VS Express 2012 for Web, everything works fine. But when I upload my files to my webserver (Windows 2008 R2) the btnAddNewQuestion button is ALWAYS the default, regardless of which panel/textbox my cursor is in when I press Enter. Has anyone else run into this issue? Is there a workaround? I have to assume there's some setting on my webserver that's causing the issue since it's working as it should when I run it from VS Express.I DID install .Net Framework 4.5 on the server and attempt to set the web.config file to use it, but no luck.Thanks for any help you can provide.
 
Back
Top