.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
satyapriyanayak
SP
abhays
Sasi Prabhu


Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.


Post New Question Subscribe to Interview Questions
 
Quick Links For Interview Questions Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  OOPs  JQuery  JavaScript/VBScript
BiztalkPatten/PracticesIISWCFWPFWWF
NetworkingAptitudeOthers  All    
 

ASP.Net Interview Questions and Answers

What is the difference between width="100" and width="100%" in HTML?

Author: Subhransu Sekhar Jena          Posted Date: September 29, 2014    Category: ASP.Net     Points: 40

"100"takes only 100px where as "100%" takes available space.

How to find number of items in the current session collection in ASP.NET

Author: abhays          Posted Date: September 26, 2014    Category: ASP.Net     Points: 40

System.Web.SessionState.HttpSessionState member Count which returns the number of items in the current session collection

What are the client-side state management technique supported by ASP.NET?

Author: Subhransu Sekhar Jena          Posted Date: September 26, 2014    Category: ASP.Net     Points: 40

Control state

View state

Cookies

Hidden fields

Query strings

View state is client-side or server side state management technique?

Author: Subhransu Sekhar Jena          Posted Date: September 26, 2014    Category: ASP.Net     Points: 40

Client-side

What is the default session mode in asp.net?

Author: Subhransu Sekhar Jena          Posted Date: September 26, 2014    Category: ASP.Net     Points: 40

InProc

How does a content page differ from a master page?

Author: Swati Kadam          Posted Date: September 17, 2014    Category: ASP.Net     Points: 40

A content page does not have complete HTML source code; whereas a master page has complete HTML source code inside its source file.

What is the difference among Errors, Warnings and Messages which Visual Studio shows?

Author: ASPEvil          Posted Date: August 31, 2014    Category: ASP.Net     Points: 40

Errors are fatal error, which for, the ASP.Net page code is not getting converted to the MSIL code.

Warnings are non-fatal error which do not oppose ASP.Net page code to be converted to the MSIL, but if these warnings
could be resolved, then it would be perfect and Visual Studio can co-operate to resolve these warnings.

Messages are the text/string messages which IIS generates, at the time of page building which programmer can include in the page.

How you will validate that the selected date from date picker is Monday.

Author: Ashutosh Jha          Posted Date: August 31, 2014    Category: ASP.Net     Points: 40

first save the date in string like below-

DateTime selecteddate = Convert.ToDateTime(Txtfromdate.SelectedDateValue.ToString());

and then check for monday

if (selecteddate.DayOfWeek != DayOfWeek.Monday)
{
lblmsg.Text = "Yo must select the monday date only";
return;
}

What is Session in ASP.NET

Author: Ashutosh Jha          Posted Date: August 31, 2014    Category: ASP.Net     Points: 40

Session is one of the server side state management techniques where the a unique client id gets generated for the first request from the client and maintained during the session with the server. Each tie the request sends to the server with the session id, the server checked if the session id is live,it respond back to h client with the the required details.
There are 2 types of sessions:
1. InProc session: When the session is stored in the process memory of the browser, the session is called as the Inproc session.In this session, when the browser is closed, the session data gets vanished.
2. OutProc Session: When the session is maintained out of the process memory of the browser, it is called as OutProc session. In this case, the session is maintained outside in a separate server so that if the browser is closed, then also session will be maintained.

What is the difference between authentication and authorization?

Author: ASPEvil          Posted Date: August 30, 2014    Category: ASP.Net     Points: 40

With the login page, when we put our userid and password and click the submit button, then the combination of that entered
userid and password is sent to the server and then server checks if that combination is existing with the server or not. This process
is called the authentication.

After the authentication is completed, if the server found the userid and password combination is true, the server redirect the user
to his/her allocated page. For example: if the user is an ordinary user, then the user is sent to the user dashboard and if the user is the admin, then he/she is sent to the admin panel. This process is called the authorization.
« Previous12345678910….5657Next »



Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend