• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

Asp.Net Interview Questions Answers

Question - 61 : - When do you set "<IDENTITY impersonate="true" />" ?

Answer - 61 : -   Identity is a webconfig declaration under System.web, which helps to control the application Identity of the web applicaton. Which can be at any level(Machine,Site,application,subdirectory,or page), attribute impersonate with "true" as value specifies that client impersonation is used.

Question - 62 : - Which two properties are on every validation control?

Answer - 62 : -   We have two common properties for every validation controls 1. Control to Validate, 2. Error Message.

Question - 63 : - How do you implement Paging in .Net?

Answer - 63 : -   The DataGrid provides the means to display a group of records from the data source (for example, the first 10), and then navigate to the "page" containing the next 10 records, and so on through the data. Using Ado.Net we can explicit control over the number of records returned from the data source, as well as how much data is to be cached locally in the DataSet. 1.Using DataAdapter.fill method give the value of 'Maxrecords' parameter  (Note: - Don't use it because query will return all records but fill the dataset based on value of 'maxrecords' parameter). 2.For SQL server database, combines a WHERE clause and a ORDER BY clause with TOP predicate. 3.If Data does not change often just cache records locally in DataSet and just take some records from the DataSet to display.

Question - 64 : - What tag do you use to add a hyperlink column to the DataGrid?

Answer - 64 : -   < asp:HyperLinkColumn > </ asp:HyperLinkColumn>

Question - 65 : - Where on the Internet would you look for Web services?

Answer - 65 : - http://www.uddi.org

Question - 66 : - What does WSDL stand for?

Answer - 66 : - Web Services Description Language.

Question - 67 : - Whats an assembly?

Answer - 67 : - Assemblies are the building blocks of the .NET framework. Overview of assemblies from MSDN

Question - 68 : - Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component? 

Answer - 68 : -   Communicating through a Firewall When building a distributed application with 100s/1000s of users spread over multiple locations, there is always the problem of communicating between client and server because of firewalls and proxy servers. Exposing your middle tier components as Web Services and invoking the directly from a Windows UI is a very valid option.  Application Integration When integrating applications written in various languages and running on disparate systems. Or even applications running on the same platform that have been written by separate vendors.  Business-to-Business Integration This is an enabler for B2B intergtation which allows one to expose vital business processes to authorized supplier and customers. An example would be exposing electronic ordering and invoicing, allowing customers to send you purchase orders and suppliers to send you invoices electronically.  Software Reuse This takes place at multiple levels. Code Reuse at the Source code level or binary componet-based resuse. The limiting factor here is that you can reuse the code but not the data behind it. Webservice overcome this limitation. A scenario could be when you are building an app that aggregates the functionality of serveral other Applicatons. Each of these functions could be performed by individual apps, but there i

Question - 69 : - What tags do you need to add within the asp:datagrid tags to bind columns manually?

Answer - 69 : -   < asp:DataGrid id="dgCart" AutoGenerateColumns="False" CellPadding="4" Width="448px" runat="server"  >  < Columns > < asp:ButtonColumn HeaderText="SELECT" Text="SELECT" CommandName="select" >< /asp:ButtonColumn > < asp:BoundColumn DataField="ProductId" HeaderText="Product ID" > < /asp:BoundColumn > < asp:BoundColumn DataField="ProductName" HeaderText="Product Name" >< /asp:BoundColumn > < asp:BoundColumn DataField="UnitPrice" HeaderText="UnitPrice" >     </asp:BoundColumn > < /Columns > < /asp:DataGrid >

Question - 70 : - What namespace does the Web page belong in the .NET Framework class hierarchy?

Answer - 70 : - System.Web.UI.Page 

Computer Contributors

Rajeev Katiyar
Yes Baroda

Share your email for latest updates


Our partners