Interview Asp

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Interview Asp as PDF for free.

More details

  • Words: 3,920
  • Pages: 10
earn ASP.Net Interview Questions which comes in ASP.Net 2005 and ASP.Net 2.0. Its not the end you will be avail with ASP.Net 2005, ASP.Net 2.0 and all other ASP.Net Interview Questions usually asked in Interviews. After learning these ASP.Net Interview Questions you can get select in any Interview. Question:-What do you mean by Share Point Portal ? Answer: Here I have taken information regarding Share Point Portal Server 2003 provides mainly access to the crucial business information and applications.With the help of Share Point Server we can server information between Public Folders, Data Bases, File Servers and the websites that are based on Windows server 2003. This Share Point Portal is integrated with MSAccess and Windows servers,So we can get a Wide range of document management functionality. We can also create a full featured portal with readymade navigation and structure. Question:-What is cross page posting in ASP.NET2.0 ? Answer: When we have to post data from one page to another in application we used server.transfer method but in this the URL remains the same but in cross page posting there is little different there is normal post back is done but in target page we can access values of server control in the source page.This is quite simple we have to only set the PostBackUrl property of Button,LinkButton or imagebutton which specifies the target page.In target page we can access the PreviousPage property.And we have to use the @PreviousPageType directive.We can access control of PreviousPage by using the findcontrol method.When we set the PostBackURL property ASP.NET framework bind the HTML and Javascript function automatically. Question:-How to call method that handles the Click event for several buttons ? Answer: Protected Sub AnyClicked(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click, Button3.Click Dim b As Button = CType(sender, Button) Response.Write("You clicked the button labeled " & b.ID) End Sub

Question: What do you mean by Web Part Control in asp.net ? Answer: ASP.NET Web Parts controls are the integrated controls which helps in creation of Web sites that also help users to modify the content as well as appearance, and behavior of pages of web sites that are open in browser. Question: What changes are done in IIS 6.0 over IIS 5.0 ? Answer: IIS makes easy to get information.IIS 6.0 is the next latest of web server available in Windows Server 2003 platform. IIS 6.0 contains several enhancements over IIS 5.0 that are mainly to increase reliability, manageability, scalability, and security. IIS 6.0 is a key component of the Windows Server 2003 application platform, using which

you can develop and deploy high performance ASP.NET Web applications, and XML Web Services. Question: Com Marshler function in .NET ? Answer: Com Marshler is useful component of CLR.Main work of marshal data between Managed and Unmanaged environment .It helps in representation of data accross diffrenet execution enviroment.Its also convert data format between manage and unmanaged code.By the helps of Com Marshlar CLR allows manage code to interoperate with unmanaged code. Question: How Visual SourceSafe helps Us ? Answer: One of the powerful tool provided by Microsoft to keep up-to-date of files system its keeps records of file history once we add files to source safe it can be add to database and the changes ade by diffrenet user to this files are maintained in database from that we can get the older version of files to.This also helps in sharing,merging of files. Question: What is main difference between GridLayout and FormLayout ? Answer: GridLayout helps in providing absolute positioning of every control placed on the page.It is easier to devlop page with absolute positioning because control can be placed any where according to our requirement.But FormLayout is little different only experience Web Devloper used this one reason is it is helpful for wider range browser.If there is absolute positioning we can notice that there are number of DIV tags.But in FormLayout whole work are done through the tables. Question: What is the purpose of IIS ? Answer: We can call IIS(Internet Information Services) a powerful Web server that helps us creating highly reliable, scalable and manageable infrastructure for Web application which runs on Windows Server 2003. IIS helps development center and increase Web site and application availability while lowering system administration costs. It also runs on Windows NT/2000 platforms and also for above versions. With IIS, Microsoft includes a set of programs for building and administering Web sites, a search engine, and support for writing Web-based applications that access database. IIS also called http server since it process the http request and gets http response. Question: How to start Outlook,NotePad file in AsP.NET with code ? Answer: Here is the syntax to open outlook or notepad file in ASP.NET VB.NET Process.Start("Notepad.exe") Process.Start("msimn.exe"); C#.NET System.Diagnostics.Process.Start("msimn.exe"); System.Diagnostics.Process.Start("Notepad.exe"); Question: What you thing about the WebPortal ? Answer: Web portal is nothing but a page that allows a user to customize his/her homepage. We can use Widgets to create that portal we have only to drag and drop widgets on the page. The user can set his Widgets on any where on the page where he has to get them. Widgets are nothing but a page area that helps particular function to

response. Widgets example are address books, contact lists, RSS feeds, clocks, calendars, play lists, stock tickers, weather reports, traffic reports, dictionaries, games and another such beautiful things that we can not imagine. We can also say Web Parts in Share Point Portal. These are one of Ajax-Powered. Question:-Can you define what is SharePoint and some overview about this ? Answer: SharePoint helps workers for creating powerful personalized interfaces only by dragging and drop pre-defined Web Part Components. And these Web Parts components also helps non programmers to get information which care and customize the appearance of Web pages. To under stand it we take an example one Web Part might display a user's information another might create a graph showing current employee status and a third might show a list of Employees Salary. This is also possible that each functions has a link to a video or audio presentation.So now Developers are unable to create these Web Part components and make them available to SharePoint users. Question:-What is different between WebUserControl and in WebCustomControl ? Answer: Web user controls :- Web User Control is Easier to create and another thing is that its support is limited for users who use a visual design tool one gud thing is that its contains static layout one more thing a seprate copy is required for each application. Web custom controls:-Web Custom Control is typical to create and gud for dynamic layout and another thing is it have full tool support for user and a single copy of control is required because it is placed in Global Assembly cache. Question:-What is Sandbox in SQL server and explain permission level in Sql Server ? Answer: Sandbox is place where we run trused program or script which is created from the third party. There are three type of Sandbox where user code run. Safe Access Sandbox:-Here we can only create stored procedure,triggers,functions,datatypes etc.But we doesnot have acess memory ,disk etc. External Access Sandbox:-We cn access File systems outside the box. We can not play with threading,memory allocation etc. Unsafe Access Sandbox:-Here we can write unreliable and unsafe code. Question:-How many types of cookies are there in .NET ? Answer: Two type of cookeies. a) single valued eg request.cookies(”UserName”).value=”dotnetquestion” b)Multivalued cookies. These are used in the way collections are used example request.cookies(”CookiName”)(”UserName”)=”dotnetquestionMahesh” request.cookies(”CookiName”)(”UserID”)=”interview″ Question: When we get Error 'HTTP 502 Proxy Error' ? Answer: We get this error when we execute ASP.NET Web pages in Visual Web Developer Web server, because the URL randomly select port number and proxy servers did not recognize the URL and return this error. To resolve this problem we have to change settings in Internet Explorer to bypass the proxy server for local addresses, so that the request is not sent to the proxy.

Question:-What do you mean by three-tier architecture? Answer: The three-tier architecture was comes into existence to improve management of code and contents and to improve the performance of the web based applications.There are mainly three layers in three-tier architecture.the are define as follows (1)Presentation (2)Business Logic (3)Database (1)First layer Presentation contains mainly the interface code, and this is shown to user. This code could contain any technology that can be used on the client side like HTML, JavaScript or VBScript etc. (2)Second layer is Business Logic which contains all the code of the server-side .This layer have code to interact with database database and to query, manipulate, pass data to user interface and handle any input from the UI as well. (3)Third layer Data represents the data store like MS Access, SQL Server, an XML file, an Excel file or even a text file containing data also some addtional database are also added to that layers. Question: What is Finalizer in .NET define Dispose and Finalize ? Answer: We can say that Finalizer are the methods that's helps in cleanp the code that is executed before object is garbage collected .The process is called finalization . There are two methods of finalizer Dispose and Finalize .There is little diffrenet between two of this method . When we call Dispose method is realse all the resources hold by an object as well as all the resorces hold by the parent object.When we call Dispose method it clean managed as well as unmanaged resources. Finalize methd also cleans resources but finalize call dispose clears only the unmanged resources because in finalization the garbase collecter clears all the object hold by managed code so finalization fails to prevent thos one of methd is used that is: GC.SuppressFinalize. Question: Define SMTPclient class in DotNet framework class libarary ? Answer: Each classes in dotnet framework inclue some properties,method and events.These properties ,methods and events are member of a class.SMTPclient class mainly concern with sending mail.This class contain the folling member. Properties:Host:-The name or IP address of email server. Port:-Port that is use when sending mail. Methods:Send:-Enables us to send email synchronously. SendAsynchronous:-Enables us to send an email asynchronously. Event:SendCompleted:-This event raised when an asynchronous send opertion completes.

Question: What is late binding ? Answer: When code interacts with an object dynamically at runtime .because our code literally doesnot care what type of object it is interacting and with the methods thats are supported by object and with the methods thats are supported by object .The type of object is not known by the IDE or compiler ,no Intellisense nor compile-time syntax checking is possible but we get unprecedented flexibilty in exchange.if we enable strict type checking by using option strict on at the top of our code modules ,then IDE and compiler will enforce early binding behaviour .By default Late binding is done. Question:-Does .NET CLR and SQL SERVER run in different process ? Answer: Dot Net CLR and all .net realtes application and Sql Server run in same process or we can say that that on the same address because there is no issue of speed because if these two process are run in different process then there may be a speed issue created one process goes fast and other slow may create the problem. Question:-What is Com Marshler and its importance in .NET ? Answer: Com Marshler is one of useful component of CLR. Its Task is to marshal data between Managed and Unmanaged environment .It helps in representation of data accross diffrenet execution enviroment.It performs the conversion of data format between manage and unmanaged code.By the helps of Com Marshlar CLR allows manage code to interoperate with unmanaged code. Question: What is CSU and its description ? Answer: CSU stands for comma separate values also called comma delimited.It is plain text file which stores spreadsheets or basic datatype in very simple format.One record in each line and each field separted with comma's it is often used to transfer large ammount spreadsheet data or database information between program. Question: The IHttpHandler and IHttpHandlerFactory interfaces ? Answer: The IHttpHandler interface is implemented by all the handlers. The interface consists of one property called IsReusable. The IsReusable property gets a value indicating whether another request can use the IHttpHandler instance. The method ProcessRequest() allows you to process the current request. This is the core place where all your code goes. This method receives a parameter of type HttpContext using which you can access the intrinsic objects such as Request and Response. The IHttpHandlerFactory interface consists of two methods - GetHandler and ReleaseHandler. The GetHandler() method instantiates the required HTTP handler based on some condition and returns it back to ASP.NET. The ReleaseHandler() method allows the factory to reuse an existing handler.

Question: what is Viewstate? Answer:View state is used by the ASP.NET page framework to automatically save the values of the page and of each control just prior to rendering to the page. When the page is posted, one of the first tasks performed by page processing is to restore view state.

State management is the process by which you maintain state and page information over multiple requests for the same or different pages. Client-side options are: * The ViewState property * Hidden fields

* Query strings * Cookies

Server-side options are: * Application state

* Session state

* DataBase

Use the View State property to save data in a hidden field on a page. Because ViewState stores data on the page, it is limited to items that can be serialized. If you want to store more complex items in View State, you must convert the items to and from a string. ASP.NET provides the following ways to retain variables between requests: Context.Handler object Use this object to retrieve public members of one Web form’s class from a subsequently displayed Web form. Query strings Use these strings to pass information between requests and responses as part of the Web address. Query strings are visible to the user, so they should not contain secure information such as passwords. Cookies Use cookies to store small amounts of information on a client. Clients might refuse cookies, so your code has to anticipate that possibility. View state ASP.NET stores items added to a page’s ViewState property as hidden fields on the page. Session state Use Session state variables to store items that you want keep local to the current session (single user). Application state Use Application state variables to store items that you want be available to all users of the application. Question: DOTNET PAGE LIFECYCLE ? Answer: While excuting the page, it will go under the fallowing steps(or fires the events) which collectivly known as Page Life cycle. Page_Init -- Page Initialization LoadViewState -- View State Loading LoadPostData -- Postback data processing Page_Load -- Page Loading RaisePostDataChangedEvent -- PostBack Change Notification RaisePostBackEvent -- PostBack Event Handling Page_PreRender -- Page Pre Rendering Phase SaveViewState -- View State Saving Page_Render -- Page Rendering Page_UnLoad -- Page Unloading Question: What is Satellite Assemblies ? Answer: Satellite assemblies are often used to deploy language-specific resources for an application. These language-specific assemblies work in side-by-side execution because

the application has a separate product ID for each language and installs satellite assemblies in a language-specific subdirectory for each language. When uninstalling, the application removes only the satellite assemblies associated with a given language and .NET Framework version. No core .NET Framework files are removed unless the last language for that .NET Framework version is being removed. For example, English and Japanese editions of the .NET Framework version 1.1 share the same core files. The Japanese .NET Framework version 1.1 adds satellite assemblies with localized resources in a \ja subdirectory. An application that supports the .NET Framework version 1.1, regardless of its language, always uses the same core runtime files. Question: What is CAS ? Answer:CAS: CAS is the part of the .NET security model that determines whether or not a piece of code is allowed to run, and what resources it can use when it is running. For example, it is CAS that will prevent a .NET web applet from formatting your hard disk. How does CAS work? The CAS security policy revolves around two key concepts - code groups and permissions. Each .NET assembly is a member of a particular code group, and each code group is granted the permissions specified in a named permission set. For example, using the default security policy, a control downloaded from a web site belongs to the 'Zone - Internet' code group, which adheres to the permissions defined by the 'Internet' named permission set. (Naturally the 'Internet' named permission set represents a very restrictive range of permissions.) Question: Automatic Memory Management ? Answer: Automatic Memory Management: From a programmer's perspective, this is probably the single biggest benefit of the .NET Framework. No, I'm not kidding. Every project I've worked on in my long career of DOS and Windows development has suffered at some point from memory management issues. Proper memory management is hard. Even very good programmers have difficulty with it. It's entirely too easy for a small mistake to cause a program to chew up memory and crash, sometimes bringing the operating system to a screeching halt in the process. Programmers understand that they're responsible for releasing any memory that they allocate, but they're not very good at actually doing it. In addition, functions that allocate memory as a side effect abound in the Windows API and in the C runtime library. It's nearly impossible for a programmer to know all of the rules. Even when the programmer follows the rules, a small memory leak in a support library can cause big problems if called enough. The .NET Framework solves the memory management problems by implementing a garbage collector that can keep track of allocated memory references and release the memory when it is no longer referenced. A large part of what makes this possible is the blazing speed of today's processors. When you're running a 2 GHz machine, it's easy to spare a few cycles for memory management. Not that the garbage collector takes a huge number of cycles--it's incredibly efficient. The garbage collector isn't perfect and it doesn't solve the problem of mis-managing other scarce resources (file handles, for example), but it relieves programmers from having to

worry about a huge source of bugs that trips almost everybody up in other programming environments. On balance, automatic memory management is a huge win in almost every situation. Question: What Language familar to CLR? Answer: Any language that can be compiled into Microsoft Intermediate Language (MSIL) is considered a .NET-compliant language. Following are a few of the popular .NET-compliant languages supported by CLR: APL COBOL Component Pascal Eiffel Fortran Haskell JScript Mercury Oberon Pascal Perl Python Smalltalk Visual Basic Visual C# Visual C++ ( June 25th 2005 ) ================ Holool India Written Test Paper (By. Ram Naresh Yadav Talluri. (M.C.A ., M.S))================ 1. Use of Enable view state ? if turn off what happen ? 2. Response.write,server.transfer difference which one is used when ? 3. server.transfer limitation ? 4. how can i kill user session ? 5. wild card character in sql ? 6. can aspx page contains two pager tags ? 7. can aspx page have multi language declarations ? 8. readonly syntax ? 9. which control is used to compare two controls? 10. two common propertys for any validation contro ? 11. what is an assembly ? 12. what is inheritancy where u required ? 13 polymorphism and advantage ? 14. what is the method while we are using adapter and dataset ? 15. what are the things we generally declare in session_start , application_start ? 16. .net class library to find unique key? 17. can Array contains different datatypes ? 18. ACID properties ? 19. which tag i need to use manually to bind columns in a datagrid ? 20. throw exception and rethrowing difference. ? 21. when garbage collector come into picture. ? 22. what is code behined and an aspx files are for? 23. how u maintain data while navigating one page to another 24. -25. – WHAT IS SERIALIZATION? Serialization is the process of converting an object or a con-nected graph of objects into a contiguous stream of bytes. Deserialization is the process of converting a contiguous stream of bytes back into its graph of connected objects. The ability to convert objects to

and from a byte stream is an incredibly useful mechanism. Here are some examples: • An application's state (object graph) can easily be saved in a disk file or database and then restored the next time the application is run. ASP.NET saves and restores session state by way of serialization and deserialization. • A set of objects can easily be copied to the system's clipboard and then pasted into the same or another application. In fact, Windows® Forms uses this procedure. • A set of objects can be cloned and set aside as a backup while a user manipulates the main set of objects. • A set of objects can easily be sent over the network to a process running on another machine. The Microsoft® .NET Framework remoting architecture serializes and deserializes objects that are marshaled by value. Why would you want to use serialization? The two most important reasons are • to persist the state of an object to a storage medium so an exact copy can be recreated at a later stage, and • to send the object by value from one application domain to another. 1. Explain about Normalization? 2. What is the difference between union & union all? 3. What kind of transactions can handled? 4. temporay tables use & how we can manage? 5. perfomance tuning steps? 6. Difference btn method overload / override? 7. When Garbage collector come into picture? 8. Difference btn refernce & value types? 9. boxing / unboxing in ASP.NET 10. assemblies 11. What manifest file contains? 12. MSIL 13. JIT 14. clas vs module 15. dataadapter 16. dataset 17. ado.net objects 18. difference btn and, and also 19. dataset.copy & dataset.clone 20. code access security 21. finalization 22. strogn type dataset 2. --> ASP.Net page lifecycle --> What is first event of Datagrid for binding the data. --> What is itemcreated and itemdatabound --> What is Postback

--> What is multi file Assembly. --> How many assemblies u will get after compiling a solution of some projects. --> How the iis server processes a client request. --> What are the contents of an assembly. --> What is delay signing. --> AppDomain vs HttpApplicationObject 11. How can you sort the elements of the array in descending order? By calling Sort() and then Reverse() methods. 12. What’s the .NET collection class that allows an element to be accessed using a unique key? HashTable. 13. What class is underneath the SortedList class? A sorted HashTable. 14. Will the finally block get executed if an exception has not occurred? Yes. 15. What’s the C# syntax to catch any possible exception? A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch {}. 16. Can multiple catch blocks be executed for a single try statement? No. Once the proper catch block processed, control is transferred to the finally block (if there are any). 17. Explain the three services model commonly know as a three-tier application. Presentation (UI), Business (logic and underlying code) and Data (from storage or other sources).

3.

Related Documents

Interview Asp
June 2020 3
Interview Question Asp
November 2019 8
Interview Questions Asp
November 2019 7
Asp Interview Question
December 2019 19