ASP.NET Exclusive Interview Questions and Answers (348) - Page 13

  • A joint initiative from DotNetFunda.Com and Questpond.
  • A one stop place on the internet to get trusted and proven Interview Questions (based on more than a decade of experience in this field) to ensure the success of the candidates.
  • You will find almost all Interview questions from Questpond here and this list is growing day by day with all latest and updated interview questions.

348 records found.

Get 650+ Questpond's Interview videos on discount

_______ is a control that attempts to provide CAPTCHA-like bot/spam prevention without requiring any user interaction.

NOTE: This is objective type question, Please click question title for correct answer.
What is ViewState restored in Page lifecycle?

The viewstate is loaded between the init and the load event. So this also means that if you want to access the property values of a web control after a postback you have to do this after the viewstate has been restored and you can not do this in the page_init event rather it should be done in or after Page_Load event handler.
what is the life time of a web application?

By default it is 20 min.session will expire after 20 min.by default
ASP.NET configuration settings are stored in ___________ files

NOTE: This is objective type question, Please click question title for correct answer.
How to know the different styles applied to the aspx page in ASP.NET?

Open the website and aspx page for which you want to see the styles applied. In the menu bar , go to View -> Manage Styles -> In the Left side pane you will find Manage styles window docked. There when you click on Options, choose Show Styles used in current page. Now here it lists all the styles which are applied to current page according to 1. Green color circles representing styles applied to controls with class property initialized with style. 2. Blue color circles reperesent the HTML tags for which that style is applied. 3. Red color circle representing the id of the control for which style is applied. Using manage styles will really help us in finding out the different styles applied in a particular page. If you want to modify any style property. We need to double click on the style and then we can edit it directly in the css file. It also shows the preview of the style applied.
What are the different ways in which we can host website on IIS ?

We can host website on IIS in following ways: 1. By creating Virtual Directory through IIS manager. 2. Folder Web Sharing . Apart from that Visual studio provide some inbuilt features to host the site on IIS like 3.Publishing the web site. 4. Copy web Tool. 5. Creating Virtual directory during creating the project by choosing Location as HTTP.
How to pass information between pages?

Out of many choices one choice is to make use of Query String property of Request object, which allows us to pass information between pages. For example to pass information: Response.Redirect(“Newpage.aspx?Name=”+txtName.Text +”&Age=”+txtAge.Text); To Retrieve information: String name=Request.QueryString[“Name”]; String age=Request.QueryString[“Age”]; Advantages: 1. It is easy to use and is light weight. DisAdvantages: 1. It has Max length of 1or 2 kb ,so limited information can be passed. 2. It is visible in address part of the browser and hence we cannot send any sensitive information. 3. QueryString cannot be used to send ‘ &’ and ‘space’ characters. To solve this problem we have to use Server.UrlEncode. For example above code can be rewritten as: Response.Redirect(“Newpage.aspx?Name=”+Server.UrlEncode(txtName.Text )+”&Age=”+Server.UrlEncode(txtAge.Text));
Describe the difference between inline and code behind?

Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page.
Explain what a diffgram is, and a good use for one?

The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML. A good use is reading database data to an XML file to be sent to a Web Service.
SharePoint Products and Technologies rely on ___________ to provide configurable and extensible user interfaces.

NOTE: This is objective type question, Please click question title for correct answer.
Should user input data validation occur server-side or client-side? Why?

All user input data validation should occur on the server at a minimum. Additionally, client-side validation can be performed where deemed appropriate and feasable to provide a richer, more responsive experience for the user.
Is JavaScript platform independent or dependent?

It is platform independent because it is interpreted and we just need to have interpreter for executing javascript code on any platform.
Can we write Classes and create objects in javascript ?

Yes, JavaScript is an object based programming language and we can write classes in JavaScript and we can also instantiate them.
Can a webform execute without web.config file ?

Yes, it inherits the required settings from the machine.config file

More ASP.NET Interview Questions & Answers here

Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Exclusive Interview Questions and Answers Categories