ASP .Net
Asp.Net Faqs, Asp.Net interview questions,
Can you explain Forms authentication in detail ?
Dec 6th
In old ASP if you where said to create a login page and do authentication you have to do hell lot of custom coding. But now in ASP.NET that’s made easy by introducing Forms authentication. So let’s see in detail what form authentication is.
Forms authentication uses a ticket cookie to see that user is authenticated or not. That means when user is authenticated first time a cookie is set to tell that this user is authenticated. If the cookies expire then Forms authentication mechanism sends the user to the login page.
Following are the steps which defines steps for Forms authentication More >
Explain the differences between Server-side and Clientside code?
Dec 6th
Server side code is executed at the server side on IIS in ASP.NET framework, while client side code is executed on the browser.
What is the use of <%@ page aspcompat=true %> attribute ?
Dec 6th
This attribute works like a compatibility option. As mentioned before ASP worked in STA model and ASP.NET works in MTA model, but what if your ASP.NET application is using a VB COM component. In order that VB COM runs properly in ASP.NET threading model we have to set attribute. After defining the ASPCOMPAT directive attribute ASP.NET pages runs in STA model thus building the compatibility between ASP.NET and old COM components that does not support MTA model
ASP used STA threading model, what is the threading model used for ASP.NET ?
Dec 6th
ASP.NET uses MTA threading model.
How do I send email message from ASP.NET ?
Dec 6th
ASP.NET provides two namespaces System.WEB.mailmessage classand System.Web.Mail.Smtpmail class. Just a small homework create a Asp.NET project and send a email at example@example.comDo not Spam.
How do you upload a file in ASP.NET ?
Dec 6th
I will leave this to the readers … Just a hint we have to use System.Web.HttpPostedFile class.
How can I show the entire validation error message in a message box on the client side?
Dec 6th
In validation summary set “ShowMessageBox” to true.