ASP.NET Interview Questions and Answers (1544) - Page 72

Which property is used to turn on sorting Gridview control?

NOTE: This is objective type question, Please click question title for correct answer.
Which property is used to turn on paging in asp.net Gridview control?

NOTE: This is objective type question, Please click question title for correct answer.
How to change Html Encoded Characters from Gridview Cells?

We can use Server.HtmlDecode method for Encoded Character.It takes string values.

Whenever we manually add the space in the address,Gridview encoded the ("") space as '& #160 ;'.Same value " & #160 ;" would be assigned in the List as well.So this "& #160;" character needs to be changed as " " space again.
Which of the following statement is true?

NOTE: This is objective type question, Please click question title for correct answer.
In ASP.NET if we want to set the focus on a particular control,then which method will be used?

NOTE: This is objective type question, Please click question title for correct answer.
The control used in Asp.Net to display information from data set but with better formatting and editing behavior is?

NOTE: This is objective type question, Please click question title for correct answer.
Which option of Location in Output cache will tell the browser not to cache the page

NOTE: This is objective type question, Please click question title for correct answer.
What are the Visual Studio Debugging Features available in ASP.NET application?

There are three different ways to debug a web application from Visual Studio which are as follows:-

1).Visual Studio Internal Debugger.
2).Local IIS Debugging.
3).Remote IIS Debugging.
How to check whether the Browser supports Javascript or Not?

Use below code:-
if(Page.Request.Browser.JavaScript)  

{
...
}
else
{
...
}


If Javascript is enabled then it will return true otherwise return false.
Which statement(s) is True about CheckboxList in Asp.Net?

NOTE: This is objective type question, Please click question title for correct answer.
How to assign contents to Div or which property of Division tag is used to assign contents to a Div?

NOTE: This is objective type question, Please click question title for correct answer.
Which statements are true about Var keyword?

NOTE: This is objective type question, Please click question title for correct answer.
Which statements are correct about Dynamic Keyword?

NOTE: This is objective type question, Please click question title for correct answer.
Tell us about Statements regarding INTO keyword.

1). When used with the select keyword,into will end the scope.
2). When used with the join keyword,into will add a variable containing all of the matching items from the join.Hence this is called a Group Join.
Which property is used to set text size at server-side.

NOTE: This is objective type question, Please click question title for correct answer.
What is the used of Novalidate attribute in Form Tag.

Novalidate attribute is used in Form tag definition and is used to send the information which will not validate any form field whether they are right or wrong.In short,we can say that,NoValidate attribute specifies that the form data should not be validated and then processed.
For Example:-
<form action = "info.aspx" novalidate>

<input type ="email" name = "email" autocomplete = "off">
<input type = "submit" name = "submit" value = "Submit">
</form>

In the above code,if we will give wrong or incorrect email,and click on Submit button,then it will not validate Email and process.
How to add Meta Keywords on web page?

First import System.Web.UI.HtmlControls Namespace at the top of the page.
using System.Web.UI.HtmlControls;

HtmlMeta meta_keywords = new HtmlMeta();
meta_keywords.Name = "keywords";
meta_keywords.Content = "Dotnet funda.com";
Page.Header.Controls.Add(meta_keywords);


Output:-
When run the page,and viewing page source,then we can see Meta Keyword as shown below:-

<head><title>
</title><meta name="keywords" content="Dotnet" />
</head>

How to add Meta Description on web page?

using System.Web.UI.HtmlControls;

HtmlMeta meta_description = new HtmlMeta();
meta_description.Name = "description";
meta_description.Content = "Dotnet funda.com";
Page.Header.Controls.Add(meta_description);


Output:-
<meta name="description" content="Dotnet funda.com" />

How to Refresh Webpage using HTML Meta Tag?

Write below code at the top of aspx or html page as:-
<head>

<meta http-equiv = "refresh" content = "60">
</head>

Then after every 1 minute,page will get refresh.
Using which property can we turn off Cookies in our web page?

NOTE: This is objective type question, Please click question title for correct answer.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories