What is the difference between Server.Transfer and Response.Redirect?
Response.Redirect:This tells the browser that the requested page can be found at a new location. The browser then initiates another request to the new page loading its contents in the browser.
Server.Transfer: It transfers execution from the first page to the second page on the server. As far as the browser client is concerned, it made one request and the initial page is the one responding with content. The benefit of this approach is one less round trip to the server from the client browser.Reply
Describe Paging in ASP.NET?
"In computer operating systems there are various ways in which the operating system can store and retrieve data from secondary storage for use in main memory". One such memory management scheme is referred to as paging.In ASP.Net the DataGrid control in ASP.NET enables easy paging of the data. The AllowPaging property of the DataGrid can be set to True to perform paging. ASP.NET automatically performs paging and provides the hyperlinks to the other pages in different styles, based on the property that has been set for PagerStyle.Mode.
What is the ASP.NET validation controls?
Validation controls applied on client side scripting.List of Validations:
1. RequiredFieldValidator:Makes a input control to required field.
2. RangeValidator:Chek the values falls between to values.
3. CompareValidator:Compares the value of one input control to the value of another input control or to a fixed value.
4. RegularExpressionValidator:Input value matches a specific pattern.
5. CustomValidator:Write a Method to validat input.
6. ValidationSummary:Displays a report of all validation errors occurred in a Web page.Reply
Explain the differences between server-side and client-side code in Asp.Net?
In Asp.Net Environment Server side code or scripting means the script will executed by server as interpreted needed.Server side scripting done the bussines logic like transaction and fetching data to Sever.
What is Postback in Asp.net?
When Frist time reqest to the server PostBack is False.When request or an action occurs (like button click), the page containing all the controls within the <FORM... > tag performs an HTTP POST, while having itself as the target URL. This is called Postback.We can say its a mechanism to allow the communication between client side and server side.Reply
Explain Web Services?
Web services are programmable business logic components that provide access to functionality through the Internet. Web services are given the .asmx extension.Standard protocols like HTTP can be used to access them. Web services are based on the Simple Object Access Protocol (SOAP), which is an application of XML.In .Net FrameWork Web services convert your application in to Web Application.which published their functionality to whole world on internet.Web Services like a software system that designed to support interoperable machine-to-machine interaction over a Internet.
What is Shallow Copy and Deep Copy in .NET?
Shallow copy:When a object creating and copying nonstatic field of the current object to the new object know as shallow copy.
If a field is a value type --> a bit-by-bit copy of the field is performed
a reference type --> the reference is copied but the referred object is not; therefore, the original object and its clone refer to the same object.
Deep copy:Deep cooy little same as shallow copy,deep copy the whole object and make a different object, it means it do not refer to the original object while in case of shallow copy the target object always refer to the original object and changes in target object also make changes in original object.
What is CLR?
CLR(Common Language Runtime) provide Environment to debugg and run program and utility developed at the .Net FrameWork.CLR provide memory management, debugging, security, etc. The CLR is also known as Virtual Execution System (VES). The managed and unmanaged code both runs under CLR.Unmanaged code run through the Wrapered Classes.There are many system Utilities run under the CLR.
Explain Namespace ?
There are many classes in Asp.Net.If Microsoft simply jumbled all the classes together, then you would never find anything. Microsoft divided the classes in the Framework into separate namespaces.All classes working with a file system located in Systen.Io Namespace. All classes working with SQL data base used System.Data.SqlClient Namespace.
The ASP.NET Framework gives you the most commonly used namespaces:
. System.Web.UI.HTMLControls Reply
What are the advantages and disadvantage of Using Cookies?
1.Cookies do not require any server resources since they are stored on the client.
2. Cookies are easy to implement.
3. Cookies to expire when the browser session ends (session cookies) or they can exist for a specified length of time on the computer (persistent cookies).
1. Users can delete a cookies.
3. Cookies exist as plain text on the client machine and they may security risk as anyone can open and tamper with cookies.