ASP.Net Interview Question and Answers
31. |
How many languages .NET is supporting now? |
|
When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. The site DotNetLanguages.Net says 44 languages are supported. |
|
|
32. |
What is smart navigation? |
|
The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed. |
|
|
33. |
How do you validate the controls in an ASP .NET page? |
|
Using special validation controls that are meant for this. We have Range Validator, Email Validator |
|
Gangurde, said |
Apr 24,2014 |
There are various validator control in asp.net but mostly used in Range validator and Required field validator.
|
Anbhu, said |
Jan 24,2014 |
There are validators like RequiredField validator, Range validator, Compare validator, Regular Expression validator, Custom Validator, Validation Summary.
|
|
34. |
How do you turn off cookies for one page in your site? |
|
Use Cookie.Discard property, Gets or sets the discard flag set by the server. When true, this property instructs the client application not to save the Cookie on the user's hard disk when a session ends. |
|
|
35. |
Which two properties are on every validation control? |
|
We have two common properties for every validation controls:
- Control to Validate
- Error Message
|
|
|