Home / Dot Net

Dot Net

ASP. NET interview Question- Part 4

Is there any event named “ModeChanged”?   There is a event such as mode changed that is available in DetailView Control. It take place whenever DetailsView attempts to change between mode of edit,insert and read-only. DetailsView also supports “ModeChanging” event. 2. What are the common security threats for any ASP.NET …

Read More »

ASP.NET interview Question- Part3

Difference between Const and readonly? const cannot be static, readonly can be static. Evaluation of the values of const  is done during design time. A const required to be declared and initialized during declaration. 2. How can you show the number of visitors of your app? By making use of …

Read More »

ASP.NET Interview Question Part-2

1) How does the cookies work in asp.net? When a cookie is created it will be stored in the user’s hard disk. When the user visits a site the next time the browser sends all the cookies to the server. 2) What is the difference between Dataset. clone() and Dataset.copy()? …

Read More »

ASP.NET Interview Question Part-1

1) What’s a bubbled event? The event processing routine for each object in complex control like data grid is very difficult. In such case, can make use of the bubbled event. 2) What data types do the RangeValidator control support? The data types supported by rangevalidator are:- String Integer Date …

Read More »

ADO.NET interview Questions-Part 1

What is the namespace in which .NET has the data functionality classes? .NET provides the following name functionality:- System.data System.XML System.Data.OleDB System.Data.SqlClient 2. What are the two fundamental objects in ADO.NET? The two fundamental objects in ADO.NET Datareader Dataset 3. What is difference between dataset and datareader? The major difference …

Read More »

How to define a route in ASP.NET MVC?

You can define a route in ASP.NET MVC as given below: public static void RegisterRoutes(RouteCollection routes) { routes.MapRoute( “Default”, // Route name “{controller}/{action}/{id}”, // Route Pattern new { controller = “Home”, action = “Index”, id = UrlParameter.Optional }// Default values for above defined parameters ); } protected void Application_Start() { …

Read More »

What are advantages of ASP.NET MVC?

There are following advantages of ASP.NET MVC over Web Forms (ASP.NET): Separation of concern – MVC design pattern divides the ASP.NET MVC application into three main aspects Model, View and Controller which make it easier to manage the application complexity. TDD – The MVC framework brings better support to test-driven …

Read More »

ASP.NET MVC Benefits

Compared to Web Forms, ASP.NET MVC applications benefit by including all ASP.NET core features but also by the features in the MVC pattern. Some of those benefits are: • o manage complexity by clearly separating the functionality of the application into three core parts, the model, the view, and the …

Read More »