Search

Provide defaultButton attribute for all templated controls by vs2010junkie

Active

1
0
Sign in
to vote
Type: Suggestion
ID: 670393
Opened: 5/25/2011 5:35:13 AM
Access Restriction: Public
0
Workaround(s)
Currently, only the ASP.Net Panel control and the ASP.Net Form have attributes which support a default button. However, numerous other templated controls such as the Wizard control do not support a defaultButton attribute, thereby making it very difficult to configure a default button for handling the Enter Key Press event. This is especially important when using templates within the Wizard control such as the Navigation Templates available for the Wizard control where one wishes to configure a defaultButton attribute for each and every step in the Wizard control rather than a single defaultButton for the entire control
Details (expand)

Visual Studio/Silverlight/Tooling version

.NET Framework 4

What category (if any) best represents this feedback?

Compatibility

Steps to reproduce

1. Create an ASP.Net Web Form
2. Add an ASP.Net Wizard control to the form
3. Use the Step Navigation Template or Finish Navigation Template etc. for storing the wizard control navigation buttons
4. Notice that there is no defaultButton attribute available for any of the ASP.Net Wizard Control steps
5. Add an ASP.Net Panel control within one or more of the wizard steps
6. Set the defaultButton attribute on the ASP.Net Panel control to refer to one of the IDs for the button controls defined in the Step or Finish Navigation template
7. Attempt to execute/run the web form
8. Notice that you will receive an error message stating that the Panel control cannot find or reference the ID defined within the StepNavigation or FinishNavigation template

Product Language

English

Operating System

Windows 7

Operating System Language

English

Actual results

Unable to utilize a defaultButton attribute on the individual steps of the ASP.Net Wizard Templated control.

Expected results

Provide a defaultButton attribute for all ASP.Net Templated controls such as the ASP.Net Wizard control.
File Attachments
0 attachments
Sign in to post a comment.
Posted by vs2010junkie on 7/22/2011 at 5:46 AM
I would like to configure a defaultButton for each and every single step in the Wizard control, not simply a defaultButton for the entire Wizard control.
Posted by Microsoft on 7/14/2011 at 12:45 PM
You should be able to achieve this with something like the following:

Form.DefaultButton = ((Button)Wizard1.FindControl("StepNavigationTemplateContainerID").FindControl("StepNextButton")).UniqueID;
Posted by Microsoft on 5/25/2011 at 6:40 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.