Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 10995 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > ASP.NET Interview Questions

Now you don't need go anywhere to get the best interview questions on Microsoft technology. We are trying to gather all real interview questions asked from MNCs and put them here. You can also assist us in doing so by submitting .net interview questions. These questions are generally different from certification questions however it may help you in that too.



Page copy protected against web site content infringement by Copyscape
It can be done in two ways.

1) If you want to turn off cookies at application level, set in web.config file.

cookie state= false


2) At page level use the Cookie.Discard property.

In UDDI. If you want to share your web service over the internet, you need to register it in UDDI server.

UDDI is the server which holds the list of web services.

No, it is not true that web services can only be written in .net. It can be written in any language, because web service is the concept of XML, so that it can be written in any platform.

An indexer is a member which enables an object to be indexed in the same way as an array.

Example:

namespace ConsoleApplication

{
using System;
class Employee
{
private string[]name = new string[10];
public string this[int index]
{
get
{
return name[index];
}
set
{
name[index] = value;
}
}
}

class Test
{
public static void Main()
{
Employee emp = new Employee();
emp[0] = "Joydip";
emp[1] = "Manashi";
emp[2] = "Jini";
Console.WriteLine("The namesare:--");
for (int i = 0; i < 3;Console.WriteLine(emp[i++]))
;
Console.ReadLine();
}
}
}


The output is as follows:

The names are:--

Joydip

Manashi

Jini

View State data is stored in a hidden field called "__VIEWSTATE " on a web page.

Example :-

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTQ" />




Thanks and Regards
Akiii

<meta http-equiv="refresh" content="15">


The above code will refresh your page after every 15 seconds.


Note :- sites like www.espncricinfo.com apply this mechanism to refresh there page.


Thanks and Regards
Akiii

(1) Hide the page extension. From security aspect, it is always better to not show the extension (this concept is shown in ASP.NET MVC).

(2) Dynamic url's increase the rank of the page.

(3) It would make the url simple and more readable.



Thanks and Regards
Akiii

We can access master page controls from the content pages.For examples :-

TextBox txtbx = (TextBox)Master.FindControl("txtMaster");

txtbx .Text = "DotnetFunda";


In the above code, FindControl is a method which is taking name of the control which is in the master page. Then it is casting in the textbox. Now, with the help of the text property we can assign any property.



Thanks and Regards
Akiii

(1) Security -- The view state is stored in a hidden field on the page. Although view state stores data in a hashed format, it can easily be tampered.

(2) Performance -- The view state is stored in the page itself, so increases the page size. Hence the performance is decreased if you store loads of information in the viewstate.




Thanks and Regards
Akiii

Code Metrics generally belong to the Code Re-factoring group. Its a measures of some property of a piece of software that provides developers better insight into the code they are developing.



Thanks and Regards
Akiii

Maintainability Index calculates an index value between 0 and 100 that represents the relative ease of maintaining the code. A higher value means better maintainability.

20 to 100 --- good maintainability

10 to 19 --- moderately maintainable
0 to 9 --- low maintainability




Thanks and Regards
Akiii

Cyclomatic Complexity refers to the structural complexity of the code. Here, different code paths in the flow of the program are calculated.

A complex control flow requires a more tests to achieve good code coverage. hence, the code will be less maintainable.



Thanks and Regards
Akiii

Depth of Inheritance shows the number of class definitions that extend to the root of the class hierarchy. The deeper the hierarchy the more difficult it might be to understand where particular methods and fields are defined or/and redefined.



Thanks and Regards
Akiii

Class Coupling measures the coupling to unique classes through parameters, local variables, return types, method calls, generic or template instantiations, base classes, interface implementations, fields defined on external types, and attribute decoration.

A Good software design dictates that types and methods should have high cohesion and low coupling.

High coupling indicates a design that is difficult to reuse and maintain because of its many inter-dependencies on other types.


Thanks and Regards
Akiii

The steps are :-

(1) Open the url for example(www.testing.com)
(2) Login page opens.
(3) User enters user name and password and submits these to the server.
(4) Server validates the credentials and if valid, creates an authentication cookie and sends it back to the user browser.
(5) With valid cookie, user no longer needs to enter a user name and password to access the site on each page request.
(6) From next time he/she is simply redirected to the default page.



Thanks and Regards
Akiii

Found this useful, bookmark this page link to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape
Navigate to Page: 1 | ... | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | ... | 71 |

 More Exclusive ASP.NET Interview Questions and Answers here


Found interesting? Add this to:


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/19/2013 5:50:35 PM