1. ASP.NET validation controls works (handle validation) at:
Answer
Correct Answer:
Both client side and server side
Note: This Question is unanswered, help us to find answer for this one
2. Client-side validation is turned on by default. If you want that particular validation control should not validate at client side, what will you do?
Answer
Correct Answer:
Set the EnableClientScript property to false
Note: This Question is unanswered, help us to find answer for this one
3. There is a button on page name cancel and it should bypass validation when cancel button is clicked. What will you do?
Answer
Correct Answer:
Set CausesValidation = false
Note: This Question is unanswered, help us to find answer for this one
4.
Match the following List 1 to List 2
List 1 -----------------------------List 2
a. Client-side navigation-----------i Server.Transfer
b. Cross-page posting---------------ii. Response.Redirect
c. Client-side browser redirects----iii. PostBackUrl
d. Server-side transfer-------------iv. HyperLink
Answer
Correct Answer:
a-iv, b-iii, c-ii, d-i
Note: This Question is unanswered, help us to find answer for this one
5. Suppose that you are developing a website for company name Google. You have used validation control on web page. If the input data is wrong and error occurs, you want that focus should be on that particular control until it has valid data. What will you do?
Answer
Correct Answer:
Set SetFocusOnError property to true
Note: This Question is unanswered, help us to find answer for this one
6. CompareValidator control can be used for performing which task?
Answer
Correct Answer:
All
Note: This Question is unanswered, help us to find answer for this one
7. Which is the mandatory property for all validation controls?
Answer
Correct Answer:
ControlToValidate
Note: This Question is unanswered, help us to find answer for this one
8.
You are developing a Web page that contains many validated controls. You want to provide a detailed message for each validation error, but the page doesn’t have sufficient space to provide the detailed message next to each control. What can you do to indicate an error at the control and list the detailed error messages at the top of the Web page?
Answer
Correct Answer:
Set the ErrorMessage property of the validator control to the detailed message.
- Set the Text property to an asterisk (*).
- Place a ValidationSummary control at the top of the Web page.
Note: This Question is unanswered, help us to find answer for this one
9. Which validation control in ASP.NET can be used to determine if data that is entered into a TextBox control is of type Currency?
Answer
Correct Answer:
CompareValidator
Note: This Question is unanswered, help us to find answer for this one
10. If you want to validate the email addresses, Social Security numbers, phone numbers, and dates types of data which validation control will be used?
Answer
Correct Answer:
RegularExpressionValidator
Note: This Question is unanswered, help us to find answer for this one