Tag Archives: ASP.NET

ASP.NET interview questions: – How many types of validation controls are provided by ASP.NET? How can we create custom controls in ASP.NET?

There are six main types of validation controls: – RequiredFieldValidator It checks whether the control have any value. It is used when you want the control should not be empty. RangeValidator It checks if the value in validated control is … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment

ASP.NET interview questions: – How ‘Server.Transfer’ differs from ‘response.Redirect’ and when to use “Server.Transfer” or “Response.Redirect”?

Both “response.redirect” and “server.transfer” helps to navigate from one page to other page. In “Server.Transfer” following is the sequence of how navigation happens:- User sends a request to navigate to other page. Server creates the page object, executes the complete … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

ASP.NET interview questions: – How do we encrypt web.config files in ASP.NET?

Encryption can be done in ASP.NET using the “aspnet_regiis.exe” tool. There are two encryption options provided by ASP.NET: – Windows Data Protection API (DPAPI) Provider (DataProtectionConfigurationProvider) – this provider uses the built-in cryptography capabilities of Windows to encrypt and decrypt … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

ASP.NET interview questions: – Explain differences and how to write Httphandlers and HttpModules in ASP.NET

Handlers and modules helps you inject pre-processing logic before the ASP.NET request reaches the website. One of the scenarios where you would like use them is, before request reaches on the server you would like to check if the user … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 1 Comment

30 important ASP.NET MVC interview question

This question are taken from the book .NET interview question book latest edition written by Shivprasadkoirala and published by BPB publications. What is MVC? Can you explain the complete flow of MVC? Is MVC suitable for both windows and web … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

MVC ASP.NET interview question: -What is the difference between tempdata ,viewdata and viewbag?

Temp data: -Helps to maintain data when you move from one controller to other controller or from one action to other action. In other words when you redirect,“tempdata” helps to maintain data between those redirects. It internally uses session variables. … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | 1 Comment

C# and WCF interview question:- What is the difference between Remoting,Web services and WCF services ?

I have lost count of how many times this has been asked in WCF interviews. So the first thing is WCF is a combination of Web service + remoting + MSMQ + COM plus. The above question is taken from … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , | Leave a comment