What should you do?

You are creating an ASP.NET application by using the .NET Framework 3.5.

You review the design of an ASP.NET Web form that collects text input.

The Web form design has the following features:

* It uses the single-file page model that has script blocks which specify the runat=”server” attribute.
* It includes a TextBox control.
* It includes a LinkButton control to submit the Web form.
* It includes a RegularExpressionValidator control that validates the text input.

You need to ensure that the Web form functions properly in browsers that have JavaScript support disabled.

What should you do?

You are creating an ASP.NET application by using the .NET Framework 3.5.

You review the design of an ASP.NET Web form that collects text input.

The Web form design has the following features:

* It uses the single-file page model that has script blocks which specify the runat=”server” attribute.
* It includes a TextBox control.
* It includes a LinkButton control to submit the Web form.
* It includes a RegularExpressionValidator control that validates the text input.

You need to ensure that the Web form functions properly in browsers that have JavaScript support disabled.

What should you do?

A.
Convert the Web form from the single-file page model to the code-behind page model.

B.
Replace the TextBox control with an HtmlInputText control.

C.
Replace the LinkButton control with an HtmlInputSubmit control.

D.
Replace the RegularExpressionValidator control with a custom server-side validation that calls the Page.SetFocus method if the input does not match the required format.



Leave a Reply 0

Your email address will not be published. Required fields are marked *