Qus: How to make an application offline in ASP.NET 2.0.
Ans: Microsoft's Internet Information Services web server software is used to make an application offline. The IIS is instructed to route all incoming requests for the web site to another URL automatically.
Qus: What are script injection attacks?
Ans: Script injection attacks called Cross-site scripting (XSS) attacks exploit vulnerabilities in Web page validation by injecting client-side script code.
Qus: What is Authentication in ASP.NET?
Ans: Authentication is the process of verifying user’s details and find if the user is a valid user to the system or not. This process of authentication is needed to provide authority to the user.
Qus: What is Authorization in ASP.NET?
Ans: Authorization is a process that takes place based on the authentication of the user. Once authenticated, based on user’s credentials, it is determined what rights des a user have.
Qus: What is the difference between login controls and Forms authentication?
Ans: Login controls are part of ASP. Net’s UI controls collection which allows users to enter their username and password to login to a website/application. They provide login solution without the need of writing code. They by default work with ASP.Net membership roles and forms authentication. Forms authentication on the other hand refers to the authentication type being used by an application. ASP.Net supports Forms Authentication, Integrated windows authentication and Custom authentication. One can however, change or configure the login controls to work with the authentication mechanism chosen and not just Forms authentication which is default.
Qus: What is Fragment Caching in ASP.NET?
Ans: Fragment caching does not cache a WebForm, rather it allows for caching of individual user controls within a Web Form, where each control can have different cache duration and behavior.
E.g.: If you have a User Control, then add the following line in Aspx page
<%@ OutputCache Duration="20" VaryByParam="none"%>
Similarly you could have another usercontrol with duration set to 10 and have both these controls on a single Web Form
Qus: What is partial classess in .net?
Ans: Net2.0 supports the concept of partial classes which is unlike the concept of one class one file. In .Net technology, one can define a single class over multiple files using the concept of partial classes. When an application is compiled, it groups all the partial classes and considers them as a single object. This allows for separation of concerns, e.g.: Aspx page class might have the UI code and the Aspx.cs class file has the code for it.
E.g.:
public partial class MyClass
{
public void Attend()
{
}
}
public partial class MyClass
{
public void Dismiss()
{
}
}
Qus: Explain how to pass a querystring from an .asp page to aspx page.
Ans: Yes you can do it using a hyperlink
<a href="Abc.aspx?name=test">Click to go to aspx </a>
Qus: What Is ASP.NET 2.0 AJAX?
Ans: AJAX-style communications between client and server. This communication is over web services. Asynchronous communication. All client-to-server communication in the ASP.NET 2.0 AJAX framework is asynchronous.
Qus: What Is ASP.NET AJAX?
Ans: ASP.NET AJAX is the name of Microsoft’s AJAX solution, and it refers to a set of client and server technologies that focus on improving web development with Visual Studio.
Balancing Client and Server Programming with ASP.NET AJAX
With AJAX, much of the logic surrounding user interactions can be moved to the client. This presents its own set of challenges. Some examples of AJAX use include streaming large datasets to the browser that are managed entirely in JavaScript.