Está en la página 1de 18

Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process. inetinfo.

exe is the Microsoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension), the ISAPI filter aspnet_isapi.dll takes care of it by passing the request to the actual worker process aspnet_wp.exe. Whats the difference between Response.Write() andResponse.Output.Write()? Response.Output.Write() allows you to write formatted output. What methods are fired during the page load? Init() - when the page is instantiated Load() - when the page is loaded into server memory PreRender() - the brief moment before the page is displayed to the user as HTML Unload() - when page finishes loading. When during the page processing cycle is View State available? After the Init() and before the Page_Load(), or OnLoad() for a control. What namespace does the Web page belong in the .NET Framework class hierarchy? System.Web.UI.Page Where do you store the information about the users locale? System.Web.UI.Page.Culture Whats the difference between Codebehind ="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"? CodeBehind is relevant to Visual Studio.NET only. Whats a bubbled event? When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents. Suppose you want a certain ASP.NET function executed on MouseOver for a certain button. Where do you add an event handler? Add an OnMouseOver attribute to the button. Example: btnSubmit.Attributes.Add("onmouseover","someClientCod eHere();"); What data types do the RangeValidator control support? Integer, String, and Date. Explain the differences between Server-side and Clientside code? Server-side code executes on the server. Client-side code executes in the client's browser. What type of code (server or client) is found in a CodeBehind class? The answer is server-side code since code-behind is executed on the server. However, during the code-behind's execution on the server, it can render client-side code such as JavaScript to be processed in the clients browser. But just to be clear, code-behind executes on the server, thus making it server-side code.

Should user input data validation occur server-side or client-side? Why? All user input data validation should occur on the server at a minimum. Additionally, client-side validation can be performed where deemed appropriate and feasable to provide a richer, more responsive experience for the user. What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other? Server.Transfer transfers page processing from one page directly to the next page without making a round-trip back to the client's browser. This provides a faster response with a little less overhead on the server. Server.Transfer does not update the clients url history list or current url. Response.Redirect is used to redirect the user's browser to another page or site. This performas a trip back to the client where the client's browser is redirected to the new page. The user's browser history list is updated to reflect the new address. Can you explain the difference between an ADO.NET Dataset and an ADO Recordset? Valid answers are: A DataSet can represent an entire relational database in memory, complete with tables, relations, and views. A DataSet is designed to work without any continuing connection to the original data source. Data in a DataSet is bulk-loaded, rather than being loaded on demand. There's no concept of cursor types in a DataSet. DataSets have no current record pointer You can use For Each loops to move through the data. You can store many edits in a DataSet, and write them to the original data source in a single operation. Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources. What is the Global.asax used for? The Global.asax (including the Global.asax.cs file) is used to implement application and session level events. What are the Application_Start and Session_Start subroutines used for? This is where you can set the specific variables for the Application and Session objects. Can you explain what inheritance is and an example of when you might use it? When you want to inherit (use the functionality of) another class. Example: With a base class named Employee, a Manager class could be derived from the Employee base class. Whats an assembly? Assemblies are the building blocks of the .NET framework. Overview of assemblies from MSDN Describe the difference between inline and code behind. Inline code written along side the html in a page. Codebehind is code written in a separate file and referenced by the .aspx page. Explain what a diffgram is, and a good use for one? The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML. A good use is reading database data to an XML file to be sent to a Web Service.

Whats MSIL, and why should my developers need an appreciation of it if at all? MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL. MSIL also allows the .NET Framework to JIT compile the assembly on the installed computer. Which method do you invoke on the DataAdapter control to load your generated dataset with data? The Fill() method. Can you edit data in the Repeater control? No, it just reads the information from its data source. Which template must you provide, in order to display data in a Repeater control? ItemTemplate. How can you provide an alternating color scheme in a Repeater control? Use the AlternatingItemTemplate. What property must you set, and what method must you call in your code, in order to bind the data from a data source to the Repeater control? You must set the DataSource property and call the DataBind method. What base class do all Web Forms inherit from? The Page class. Name two properties common in every validation control? ControlToValidate property and Text property. Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box? DataTextField property. Which control would you use if you needed to make sure the values in two different controls matched? CompareValidator control. How many classes can a single .NET DLL contain? It can contain many classes.

What is ViewState? ViewState allows the state of objects (serializable) to be stored in a hidden field on the page. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source. ViewState is used the retain the state of server-side objects between postabacks. What is the lifespan for items stored in ViewState? Item stored in ViewState exist for the life of the current page. This includes postbacks (to the same page). What does the "EnableViewState" property do? Why would I want it on or off? It allows the page to save the users input on a form across postbacks. It saves the server-side values for a given control into ViewState, which is stored as a hidden value on the page before sending the page to the clients browser. When the page is posted back to the server the server control is recreated with the state stored in viewstate. What are the different types of Session state management options available with ASP.NET? ASP.NET provides In-Process and Out-of-Process state management. In-Process stores the session in memory on the web server. This requires the a "sticky-server" (or no load-balancing) so that the user is always reconnected to the same web server. Out-of-Process Session state management stores data in an external data source. The external data source may be either a SQL Server or a State Server service. Out-of-Process state management requires that all objects stored in session are serializable.

Explain the life cycle of an ASP .NET page. There are 8 steps 1.Page request 2.Start 3.Page initialization 4.Load 5.Validation 6.Postback event handling 7.Rendering 8.Unload ... ASP .Net Page Life Cycle ------------------------------------------------------------------------------1. OnInit (Init) Initializes each child control of the current 2. LoadControlState: Loads the ControlState of the control. To use this method the control must call the Page.RegisterRequiresControlState method in the OnInit method of the control. 3. LoadViewState: Loads the ViewState of the control. 4.LoadPostData: Is defined on interface IPostBackDataHandler. Controls that implement this interface use this method to retrieve the incoming form data and update the control s properties accordingly. 5. Load (OnLoad): Allows actions that are common to every request to be placed here. Note that the control is stable at this time; it has been initialized and its state has been reconstructed. 6. RaisePostDataChangedEvent: Is defined on the interface IPostBackData-Handler. Controls that implement this interface use this event to raise change events in response to the Postback data changing between the current Postback and the previous Postback. For example if a TextBox has a TextChanged event and AutoPostback is

Web Service Questions


What is the transport protocol you use to call a Web service? SOAP (Simple Object Access Protocol) is the preferred protocol. A Web service can only be written in .NET? - False What does WSDL stand for? Web Services Description Language. Where on the Internet would you look for Web services? http://www.uddi.org True or False: To test a Web service you must create a Windows application or Web application to consume this service? False, the web service comes with a test page and it provides HTTP-GET method to test. State Management Questions

turned off clicking a button causes the Text-Changed event to execute in this stage before handling the click event of the button which is raised in the next stage. 7. RaisePostbackEvent: Handles the client-side event that caused the Postback to occur 8. PreRender (OnPreRender): Allows last-minute changes to the control. This event takes place after all regular Post-back events have taken place. This event takes place before saving ViewState so any changes made here are saved. 9. SaveControlState: Saves the current control state to ViewState. After this stage any changes to the control state are lost. To use this method the control must call the Page. RegisterRequiresControlState method in the OnInit method of the control. 10. SaveViewState: Saves the current data state of the control to ViewState. After this stage any changes to the control data are lost. 11. Render: Generates the client-side HTML Dynamic Hypertext Markup Language (DHTML) and script that are necessary to properly display this control at the browser. In this stage any changes to the control are not persisted into ViewState. 12. Dispose: Accepts cleanup code. Releases any unmanaged resources in this stage. Unmanaged resources are resources that are not handled by the .NET common language runtime such as file handles and database connections. 13. UnLoad In which interface the template of any control like Gridview would Initiate? In ItemTemplate Inside TemplateColumn ... How we can set Different levels of Authentication in .Net?What are the difference between Windows Authenticatin, Passport Authentication and Form Authentication? Latest Answer: Windows authentication enables you to identify users without creating a custom page. Credentials are stored in the Web servers local user database or an Active Directory domain. Once identified, you can use the users credentials to gain access to ...

and a single Passport account can be used with many different Web sites. Passport authentication is primarily used for public Web sites with thousands of users. Anonymous authentication does not require the user to provide credentials. *************** What is tooltip class? How it was implemented? Latest Answer: This provider allows you to show help massage to user when they hovers the mouse over the control.For using tool tip control, you need to drag and drop component in to the component tray. After that, All of the controls on the form have new property called ...

********** explain virtual function in c# with an example Latest Answer: Some Facts about Virtual Keyword1)It is not compulsury to mark the derived/child class function with Override KeyWord while base/parent class contains a virtual method2)Instead of Virtual we can use New Keyword3)We will get a warning if we won't use ... Virtual functions implement the concept of polymorphism are the same as in C#, except that you use the override keyword with the virtual function implementaion in the child class. The parent class uses the same virtual keyword. Every class that overrides the virtual method will use the override keyword. class Shape{ public virtual void Draw() { Console.WriteLine("Shape.Draw") ; }}class Rectangle : Shape{ public override void Draw() { Console.WriteLine("Rectangle.Draw"); }}

************* When using code behind pages, which library must access file import from asp.net environment Latest Answer: ASP.Net uses two ways/techniques of coding pages 1) Inline code2) Code behind 1) In Inline code, code is directly embedded directly within asp.net aspx page. 2) In code behind technique we have a seprate class that contains our logic for the asp.net ... ****************** What do you mean by Declarative Security and Imperative Security? Explain with an example of usage where you would use them Latest Answer: Imperative versus Declarative SecurityThe code security can be implemented by either using the Declarative Security or the Imperative Security. Let us now understand how these two differ.Declarative SecurityThis is accomplished by placing security ... **************** How to alter the rows in a datagrid? Latest Answer: You can use DataGrid's OnItemCreated and OnItemDataBound events. OnItemCreated event is fired once a row is created but the values are not yet binded.OnItemDataBound will fire for every row that is bounded. You can get the values here for each column ... **************** How do you post a current page to different ASPx page? Latest Answer: protected void Page_Load { Response.Redirect("webform.aspx"); ... **************

Windows authentication enables you to identify users without creating a custom page. Credentials are stored in the Web server s local user database or an Active Directory domain. Once identified you can use the user s credentials to gain access to resources that are protected by Windows authorization. Forms authentication enables you to identify users with a custom database such as an ASP.NET membership database. Alternatively you can implement your own custom database. Once authenticated you can reference the roles the user is in to restrict access to portions of your Web site. Passport authentication relies on a centralized service provided by Microsoft. Passport authentication identifies a user with using his or her e-mail address and a password

Conditional BoatingWhat is Conditional Bloating? How do you handle it? Latest Answer: Bloating is an activity of performance improvement, which is basically introduced in AJAX controls. The property "UpdateMode" is responsible for bloating for example the control updatepanel if you set "UpdateMode"="Conditional" then that clears your ... ***************************** What is the difference between Dataset.clone() and Dataset.copy()?Latest Answer: Dataset.clone() copies the structure of the dataset including all data table schemas,relations and constraints. and Dataset.copy() copies the structure with data of the Dataset ********************** What is Ispostback method in ASP.Net? Why do we use that?How can we use pointers in ASP.Net?Latest Answer: IsPostBack is a property which returns boolean value. It checks weather the page is postedback or not. Note: Loading a page and Post Back is two different things.e.gPage_Load{if(!IsPostBack){ SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings[" TestConStr"].ConnectionString); ------------------------------------------------------------------------------What I should answer person on interview on question Can User Control be stored in library?.What I should answer person on interview on question Can User Control be stored in library?. The correct answer Yes, but interviewer demanding that correct answer No because User controls are not pre-compilableYes ------------------------------------------------------------------------------What is the difference between EVENTS and FUNCTIONS?Latest Answer: Event- An event is a message sent by a control to notify the occurrence of an action. Function- A Function is written to be used by the objects. A functions always return a value. ... ------------------------------------------------------------------------------What is .NET Partial Classes?One of the language enhancements in .NET 2.0available in both VB.NET 2005 and C# 2.0is support for partial classes. In a nutshell, partial classes mean that your class definition can be split Latest Answer: Using Partial Classes we can have same class span across multiple files.However it is considered as a single class by CLR. Infact,if we can take a look into IL code, we will find a single class only. So two developers can work on their own copy ------------------------------------------------------------------------------What is text stream object? Latest Answer: It facilitates sequential access to file.The property and method arguments can be any of the properties and methods associated with the TextStream object. Note that in actual usage TextStream is replaced by a variable placeholder representing the .. ************ How do you differentiate managed code and unmanaged code?Latest Answer: The code which is under control of CLR (Common Language Runtime) is called managed code.The code which takes Operating System help while execution is called unmanaged code -------------------------------------------------------------------------------

What is a Webcontrol?Latest Answer: Webcontrol is the base class that define methods, properties, events for all the controls in System.Web.UI.Webcontrols namespace. ------------------------------------------------------------------------------What is the difference between application state and cachingLatest Answer: Application Object and Cached Object both falls under Server side State Management.Application object resides in InProc i.e. on the same server where we hosted our application.Cache Object resides on server side/ DownStream/Client Side.Application Object ------------------------------------------------------------------------------What is boxing and unboxing?Latest Answer: Boxing: Converting Value Type into Reference TypeExample: int i = 10; string str = Convert.ToString(i);Unboxing: Converting Reference Type into Value TypeExample:string str = "10"; int i = Convert.ToInt16(str) ; ------------------------------------------------------------------------------What are the uses of Reflection?1. Viewing Metadata.2.Performing type discovery.3.Late binding to methods and properties (dynamic invocation)4.Creating new types at runtime(Reflection EMIT) Latest Answer: Reflection is a concept using which we can 1) Load assemblies dynamically2) Invoke methods at runtime3) Retriving type information at runtime.We are using reflection in Unit Testing for testing Private methods.Infact our friend Mr. Intellisence of MS.NET, . ------------------------------------------------------------------------------What is the use of AutoWireup in asp.netIn which circumstances we have to use this? Latest Answer: The AutoWireup attribute is either set as True or False. The attribute allows you to fire the events written in code behind file. If this page level attribute is set to False then the code behid Events will not fire automatically. For E.g if there is . ------------------------------------------------------------------------------What is diffrence between debug.trace and trace.write?Where is the information of debug stored?Latest Answer: Debug and Trace both are used to display messages. However Debug won't work in Release mode.Debug information stores in .pdb file.PDB stands for Project DataBase. ------------------------------------------------------------------------------What events will occur when a page is loaded?Latest Answer: We are having 11 Page life cycle events.Below are the events occures during page load.1) Page_PreInit2) Page_Init3) Page_InitComplete4) Page_PreLoad5) Page_Load6) Page_LoadComplete7) Page_PreRender8)RenderRest won't occure during pageload. Other events ------------------------------------------------------------------------------What must be done before you can consume a web service?Build a proxy library by using the wsdl.exe utility Latest Answer: There are 2 ways one can consume a webservice. 1) By creating a proxy manually 2) By adding web reference Creating Proxy manually: 1) Browse the

webservice 2) Add ?wsdl at the end of the URL 3) Save the wsdl file in local system 4) Use visual ... ------------------------------------------------------------------------------What property is used on the DataTable to indicate conflicts after update method is called?HasErrorConflict Latest Answer: HasConflict Mathod is used on the DataTable to indicate conflicts after update method is called? -------------------------------------------------------------------------------

What is Generics?Difference between OLEDB.OLEDB command builder & OLEDB.OLEDB command?Latest Answer: Generic provides typesafety for classes, proporties, delegates, Methods. ...Read Answers (2) | Asked by : kaberiAnswer Question Subscribe ------------------------------------------------------------------------------Where do the Cookie State and Session State information be stored?Latest Answer: Cookie Information will be stored in a txt file on client system under a folder named Cookies. Search for it in your system you will find it. Coming to Session State As we know for every process some default space will be allocated by OS. ------------------------------------------------------------------------------How can you perform validation on client side, if the validation controls are Server side?Latest Answer: Two ways you can achieve this.1) You can use javaScript to validate the data.2) You can use Validation Controls. (One for Client Side Validation One for Server Side Validation)Even though Validation controls are Server controls, by default it works on clientside ...Read Answers (2) | Asked by : veluworldAnswer Question Subscribe ------------------------------------------------------------------------------What are the Session Management Techniques?Latest Answer: Session Management can be achieved in two ways1)InProc2)OutProcOutProc is again two types1)State Server2)SQL Server InProcAdv.:1) Faster as session resides in the same process as the application2) No need to serialize the dataDisAdv.:1) Will degrade ... ********************

Hiding implementation and exposing the interface in OOP's is called?Encapsulation Latest Answer: Encapsulation ------------------------------------------------------------------------------What is Query String?Latest Answer: Query String is the part of a URL that contains data to be passed to web pages. Query string is a client side state management technique. URL is followed by Querystring separated by "?".Using Query string we can pass small values in plain ...Read Answers (2) | Asked by : lalithaAnswer Question Subscribe ------------------------------------------------------------------------------Where is the View state Data stored?Latest Answer: View State data is stored in Hidden Field. This is fine as far as small amount of data is stored. What will happen if I want to store large chunk of data (I know View state is not preferred in such scenario, just let us assume). In that case multiple ...Read Answers (3) | Asked by : richy_dhivyaAnswer Question Subscribe ------------------------------------------------------------------------------What is the difference between custom web user control and a custom web server control?Latest Answer: Web User Control:1) Easy to Create.2) It Can be used inside the same Application.(To use it in other application we need to add it to that project.)3) It Can take advantage of Caching Technique.Web Server Control:1) Bit tuff to create as compare to ...Read Answers (2) | Asked by : ZiaAnswer Question Subscribe ------------------------------------------------------------------------------Which is the best session management system in ASP.Net viewstate, cookies, application, Urlencoding?Which is the best session management system in ASP.Net - viewstate, cookies, application, Urlencoding? JustifyRead Answers (2) | Asked by : NagarajuAnswer Question Subscribe ------------------------------------------------------------------------------Why do we need databind() in asp.net and not in windows application?Latest Answer: In asp.net List server controls like DataGrid, ListBox and HTMLSelect use a collection as a data source. for example listbox uses list item as a chield control, but in case of windows there is no list items.When you call DataBind on a parent control, ...Read Answers (1) | Asked by : azharAnswer Question Subscribe -------------------------------------------------------------------------------

How to store data through form in xml format without overwriting the previous contentView Question | Asked by : RajAnswer Question Subscribe ------------------------------------------------------------------------------What is the difference between adding reference in solution Explorer and adding references by USINGLatest Answer: Adding reference in solution explorer is used to add the DLL for that project for reference only. If you want to utilize that DLL methods/functions in our aspx.cs/.cs file etc you must write using that nameclass library name in file. ...Read Answers (3) | Asked by : RavindranathAnswer Question Subscribe ------------------------------------------------------------------------------What is the difference between row.delete() and row. remove()??Latest Answer: The Delete method performs only a logical deletion by marking the row as Deleted. Hence when the Dataset batch update is done the row is removed from the datasource.The Remove method, instead, physically removes the row from the Rows collection. As a ...Read Answers (1) | Asked by : usonaliAnswer Question Subscribe ------------------------------------------------------------------------------What is share portal?Latest Answer: SharePoint Portal Server is used to build intranet portals and share documents. ...Read Answers (3) | Asked by : sandeepAnswer Question Subscribe

------------------------------------------------------------------------------What is the difference between autopostback and ispostback?Latest Answer: Autopostback - Property of the controlIsPostback - Property of the Page classAutopostback - get and set property to control postback on changes made for control.for e.g.this.ListBox1.AutoPostBack = true; whenever user will select item, the page will ...Read Answers (1) | Asked by : parvesh deviAnswer Question Subscribe ------------------------------------------------------------------------------What is different between .net framework1.1 and .net framework 2.0? Latest Answer: 1st difference: there is no inbuit IIS in .Net 1.1 where as in .Net 2.0 there is inbuilt IIS2 thing is: if there r 10 files and if v modify any 1 file we hav 2 rebulit all 10 files, but in .NET 2.0 one particular file that which ...Read Answers (3) | Asked by : jayashreeAnswer Question Subscribe ------------------------------------------------------------------------------What are the series of events that take place or the life cycle of page that takes place when a MasterWhat are the series of events that take place or the life cycle of page that takes place when a Master page and content page are involved ?Read Answers (1) | Asked by : Yusuf JelaniAnswer Question Subscribe ------------------------------------------------------------------------------What is difference between key word &key filterLatest Answer: The KeyFilter property is a new property that was added to control. Handling the KeyDown /KeyUp / KeyPress generates a callback on every key down which can be a great overhead if all you want is to handle a specific key down. That is way the new KeyFilter ...Read Answers (1) | Asked by : ashok kumarAnswer Question Subscribe ------------------------------------------------------------------------------What are the different types of sessions in ASP.Net? Name them.Latest Answer: Session Management can be achieved in two ways1)InProc2)OutProcOutProc is again two types1)State Server2)SQL ServerInProcAdv.:1) Faster as session resides in the same process as the application2) No need to serialize the data DisAdv.:1) Will degrade the ...Read Answers (3) | Asked by : puAnswer Question Subscribe ------------------------------------------------------------------------------How can you provide an alternating color scheme in a Repeater control? AlternatingItemTemplate Latest Answer: You can provide an alternating color scheme in Repeater control using AlternateItemTemplate, In Repeater control you cant edit the data, it's read only. ...Read Answers (1) | Asked by : ArunSankar123Answer Question Subscribe -------------------------------------------------------------------------------

to Language Specific Format.To change the string which is there in the label, button, etc to language specific ...Read Answers (2) | Asked by : sravanthi_chAnswer Question Subscribe ------------------------------------------------------------------------------What is meant by state management?Latest Answer: By default HTTP is a stale less protocol. It means it considers each request as a new request. Solution for this problem is state management. State Management is a technique used to maintain the state of between HTTP Request and Response. There ...Read Answers (3) | Asked by : mudduswamyAnswer Question Subscribe ------------------------------------------------------------------------------What is caching? What are different ways of caching in ASP.NET?Latest Answer: Caching: It is a technique of temporary storage of page or data on ClientSide or DownStream or ServerSide.(Ofcourse storing page on serverside doesn't make any sence still .NET provide us that option.)Instead of fetching the required page from Central ...Read Answers (5) | Asked by : avkdsivaAnswer Question Subscribe ------------------------------------------------------------------------------What is main advantage of appdomain in dynamic assembly invokation?When appDomain is unloaded assembly is automatically unloaded from the memory, that is the main advantage. This kind of architecture is used when we want to load assembly resing in seperate server dynamically.It Latest Answer: When appDomain is unloaded assembly is automatically unloaded from the memory, that is the main advantage. This kind of architecture is used when we want to load assembly resing in seperate server dynamically. ...Read Answers (1) | Asked by : Indrajeet KAnswer Question Subscribe ------------------------------------------------------------------------------How do you optimize a query?my interviewer asked me to optimize q query in 2 mins... how will you do it. He wanted to test my approach .. nothing specific to any query. Latest Answer: Reduce the size of index ...Read Answers (3) | Asked by : madhuri2405Answer Question Subscribe ------------------------------------------------------------------------------What is different between BCL and FCL in dot net?Latest Answer: The Base Class Library (BCL), sometimes incorrectly referred to as the Framework Class Library (FCL) (which is a superset including the Microsoft.* namespaces), is a library of types available to all languages using the .NET Framework. The BCL provides ...Read Answers (3) | Asked by : sunileswar beheraAnswer Question Subscribe ------------------------------------------------------------------------------What is the main event fired when we call bind method in a datagride?Latest Answer: It's ItemDataBound that occurs when we call a bind method.Please refer the following link http: // msdn.microsoft.com/enus/library/system.web.ui.webcontrols.datagrid_events . aspxGood Luck!Anwar ...Read Answers (7) | Asked by : sbehera02Answer Question Subscribe

How do you design a website with multilingual support in ASP.NETLatest Answer: Multilingual website can be created using Globalization and Localization.Using Globalization we change the Currency, Date, Numbers, etc

------------------------------------------------------------------------------What is meant by 3-tier architectureLatest Answer: First of all there is a difference between 3-Tier and 3-Layer Architecture.Tier's represents the physical separation of the application. e.g.If I keep my whole application in one server and database in another server (which we generally do for security ...Read Answers (7) | Asked by : janardhanAnswer Question Subscribe ------------------------------------------------------------------------------What DataType is return in Postback propertyLatest Answer: PostBack always return boolean value(true/false)true-page is posting subsequntly on each hit from client sidefalse-page is posting first time ...Read Answers (4) | Asked by : mudduswamyAnswer Question Subscribe ------------------------------------------------------------------------------What is the main difference between External and inline style sheet.Latest Answer: Below are the differences.1) External Style Sheet can be used in different pages. Inline Style Sheet can only be used for the page where it is written.2) Incase of modification, We have to modify in the External Style Sheet file, which will ...Read Answers (3) | Asked by : Anita SinghAnswer Question Subscribe ------------------------------------------------------------------------------State the different types of style sheets.Latest Answer: There are 3 types of style sheets1. Inline2. Embeded3. External ...Read Answers (3) | Asked by : Anita SinghAnswer Question Subscribe ------------------------------------------------------------------------------What is the difference between single data binding and multi-record data bindingRead Answers (1) | Asked by : Anita SinghAnswer Question Subscribe ------------------------------------------------------------------------------What are web /application servers of .Net?Latest Answer: IIS ,BusTalk Etc ...Read Answers (3) | Asked by : sunitha@gmail.comAnswer Question Subscribe ------------------------------------------------------------------------------What is Flex-Grid in ASP.NET?Read Answers (1) | Asked by : sbehera02Answer Question Subscribe ------------------------------------------------------------------------------Explain the basic functionality of garbage collectorLatest Answer: Memory Management a part of CLR functionality is a important aspect in .NET. Garbage Collector well known as GC is the one responsible for Memory Management. GC Runs periodically through Managed Heap (Which is divided into 3 Generations) and find ...Read Answers (4) | Asked by : ravivarmaAnswer Question Subscribe ------------------------------------------------------------------------------What is the difference between mechine.config and web.config?Latest Answer: The MACHINE.config file contains default and machnine-specific values for all

supported setting. Machine setting are normally controlled by the system admin, and app should never be given write access to it.An application can override most default values ...Read Answers (5) | Asked by : sivalalAnswer Question Subscribe ------------------------------------------------------------------------------State the difference between a Session and an ApplicationLatest Answer: Application state is global to the application regardless of the number of application instances. All instances share the same application state variables. Each instance has its own session variables. They are stored at the server end. One use of session ...Read Answers (6) | Asked by : lakshminarayananAnswer Question Subscribe ------------------------------------------------------------------------------What are the types of JIT found?Latest Answer: There are three types of JIT compilers in .NETPre :-Compiles complete source code into native code in a single compilation cycle.This is done at the time of deployment.Econo :-Compiles only those methods that are called at runtime.Compiled methods are ...Read Answers (5) | Asked by : syed abdul katherAnswer Question Subscribe ------------------------------------------------------------------------------In an ASP.NET application can we add more than one WEB.CONFIG files? Can it run?Latest Answer: Yes.There can be multiple web.config files in an ASP.NET application but they should be in the different folders.For the entire application there can be only one main Web.Config.If you assign membership and roles to an application you can see a specific ...Read Answers (4) | Asked by : sbehera02Answer Question Subscribe ------------------------------------------------------------------------------Can we run asp.net apllication without WEB.CONFIG file?Latest Answer: In 2005 The VS When we trying to run first time any application the 2005 VS gives us warning that want to run application without beb.config file. ...Read Answers (3) | Asked by : sbehera02Answer Question Subscribe ------------------------------------------------------------------------------What is the Generation of Garbage Collector ?Latest Answer: garbage collector has 3 generations 0,1,2 the highest generation is 2. In .net the garbage collector is normally invocked implicitly but you can force the GC explicitly also.when first generations is fill i.e 0 GEN & your application wants to store ...Read Answers (1) | Asked by : sbehera02Answer Question Subscribe ------------------------------------------------------------------------------What is APP Domain? what is the main role of it? can we create custom APP Domain?Latest Answer: The primary purpose of the AppDomain is to isolate an application from other applications. Win32 processes provide isolation by having distinct memory address spaces. The .NET runtime enforces AppDomain isolation by keeping control over the use of memory ...Read Answers (1) | Asked by : cwa.mcaAnswer Question Subscribe

------------------------------------------------------------------------------How can exception be handled with out the use of try catch?Latest Answer: using Exception Management application blockorPage_errorApplication_error objects ...Read Answers (1) | Asked by : Sabyasachi GhoshAnswer Question Subscribe ------------------------------------------------------------------------------Is that possible to connect remoting with anyother site without session id??Latest Answer: yes it is possible because we were having the Server.Transfer() where it will transefer the request to other page. ...Read Answers (2) | Asked by : pankajkapoorAnswer Question Subscribe ------------------------------------------------------------------------------Do you have to worry about database connection state in ASP.NET ? Why ?Latest Answer: try{Connection.Open()}catch{...}finally{ Connection.Close()}The finally block will ALWAYS execute regardless of exception. ...Read Answers (3) | Asked by : NithyaSurendranAnswer Question Subscribe ------------------------------------------------------------------------------My interviewer asked me i want maintain same header and footer in number of pages what is the way toMy interviewer asked me i want maintain same header and footer in number of pages what is the way to do minimum level of code i use? i said user control he again asked what areall the other ways?Read Answers (26) | Asked by : rajiniAnswer Question Subscribe ------------------------------------------------------------------------------Diagram of complete .net framework with elaborationLatest Answer: Hi, Difgram is used to differentiate the change of curent data with original data. ...Read Answers (1) | Asked by : ravi shanker pandeyAnswer Question Subscribe ------------------------------------------------------------------------------What is use of DataAdapater? and is it possible to add data from data reader directly to a dataset orWhat is use of DataAdapater? and is it possible to add data from data reader directly to a dataset or a datatable? Read Answers (5) | Asked by : NikhilAnswer Question Subscribe ------------------------------------------------------------------------------What is the difference between Response.Redirect and Server.TransferLatest Answer: Response.Redirect("http://www.geekinterview.com")This will redirect to the website ,that is other than the application directory:Server.Transfer("http://www.geekinterview.com" )Invalid path for child request 'http://www.geekinterview.com'. A virtual path ...Read Answers (6) | Asked by : SanthoshAnswer Question Subscribe ------------------------------------------------------------------------------How to retrieve the address from the web sites and upload to the SQL-Server.How to write coding in ASP.Net?How to retrieve the address from the web sites and upload to the

SQL-Server.How to write coding in ASP.Net?Read Answers (1) | Asked by : GajalakshmiAnswer Question Subscribe ------------------------------------------------------------------------------In your asp.net application there is a textbox, How can clear the textbox with out round trip?Latest Answer: Assume that your textbox ID is TextBox1. And the button ID is Button1. If you want to clear the text from textbox by clicking the button without refresh then do the following steps.1) In Page_Load writeButton1.Attributes.Add("OnClick","clearIt();");2) ...Read Answers (2) | Asked by : RamakrishnaAnswer Question Subscribe ------------------------------------------------------------------------------If i place an attribute called "runat=server"how the execution goes to server? i.e will thisIf i place an attribute called "runat=server"how the execution goes to server? i.e will this application contact client browser?Read Answers (1) | Asked by : R.Anil prasadAnswer Question Subscribe ------------------------------------------------------------------------------Can one try statement have many catch statements Latest Answer: Don't trust the people who say that a try block can have only one catch block... ...Read Answers (7) | Asked by : gajalakshmiAnswer Question Subscribe ------------------------------------------------------------------------------One application can have only one Web config file - true or falseLatest Answer: We can use more than one web.config file to meet the different security and other configuration requirements of different directories, and in any case web.config file of subdirectory will take the precedence over file of root directory. ...Read Answers (8) | Asked by : GajalakhsmiAnswer Question Subscribe ------------------------------------------------------------------------------What is the difference between serializable and marshalbyrefobject in remoting?Latest Answer: Hai, In .net Remoting if u want ur class to be participated in remoting it has to inherit from MarshalByRefObject class so that class definition can be passed by reference Where as [seraliazable] attribute is preceded before class ...Read Answers (1) | Asked by : gayathriAnswer Question Subscribe ------------------------------------------------------------------------------How to load data from one page to another page in asp.netLatest Answer: what about viewstate, cache and the good old cookes :) ...Read Answers (9) | Asked by : laxmiAnswer Question Subscribe ------------------------------------------------------------------------------How many kinds of web services are there? Latest Answer: Hai, I think answer is XML WebServices.. ...Read Answers (3) | Asked by : gokamadhubabuAnswer Question Subscribe -------------------------------------------------------------------------------

What is view state and how it is maintained?ViewState in ASP.NET IntroductionMicrosoft ASP.NET Web Forms pages are capable of maintaining their own state across multiple client round trips. When a property is set for a control, the ASP.NET saves Latest Answer: Session variables are maintained for particular session like for particular user only, so any user related information has to be saved in session variable. While application variables are maintained for whole application. Whole application related ...Read Answers (2) | Asked by : ShivAnswer Question Subscribe ------------------------------------------------------------------------------What exactly happens when we change AUTOEVENTWIREUP = FALSE TO TRUELatest Answer: Hi,Autoeventwireup=true will autmatically enable the events like prerender, page_init to execute. These events enable the page to build before loading. Making this false will cause nothing if and only if you dint write anything in these events. These ...Read Answers (3) | Asked by : surendarAnswer Question Subscribe ------------------------------------------------------------------------------What is the advantage of third party component SMTP over ASP.NET mail componentLatest Answer: I think by using third party component, you can make your web service more featurable like HTML editor, RTF and email forwarding, pop setting and more.. you can use freetextbox for your ASP . Net email component. ...Read Answers (1) | Asked by : shaikAnswer Question Subscribe -------------------------------------------------------------------------------

Always query data using Reader, views are good as long as the underlying data is static ! Ensure that the source tables have proper indexes for making the query efficients, use stored procedures for DAL ...Read Answers (1) | Asked by : shaikmohiuddinAnswer Question Subscribe ------------------------------------------------------------------------------What is the difference between inline coding & code behind.Latest Answer: This option is asked when you are Add New Item - > Web Form - > Place Code In seperatefile Codebehind The code behind programming model adds another file to the webpage that is called codebehind page . the codebehind page consist ...Read Answers (5) | Asked by : ramAnswer Question Subscribe ------------------------------------------------------------------------------Difference between DataList and Repeater?ans:Both are similar,except for a difference that RepeaterDifference between DataList and Repeater?ans:Both are similar,except for a difference that Repeater datas can't be edited whereas datalist datas can be editedRead Answers (3) | Asked by : dineshrajanAnswer Question Subscribe ------------------------------------------------------------------------------Where can we save cashed data and session dataLatest Answer: The 'Location' attribute of the @OutputCache element specifies the location where the cache should be created. Following are the options for saving ASP.Net cache:1. Any2. Client3. Server4. Downstream5. NoneThe session data location is controlled ...Read Answers (2) | Asked by : laxmanAnswer Question Subscribe ------------------------------------------------------------------------------How to update the data in datasetLatest Answer: we use ISqlcommandBuilder interface to add, edit or delete any data in the original database.system.data.ISqlCommandBuilder commandbuilder= new SqlCommandBuilder("dataAdapter"); ...Read Answers (2) | Asked by : laxmanAnswer Question Subscribe ------------------------------------------------------------------------------How a grid can be made editable int ASP.Net? How to Access a particular cell of Grid?What is the differenceHow a grid can be made editable int ASP.Net? How to Access a particular cell of Grid?What is the difference between datagrid and datalist?Read Answers (2) | Asked by : ashishmisra78Answer Question Subscribe ------------------------------------------------------------------------------Is xml plays any role in ado.net architecture?Latest Answer: the ado.net is based on xml, xml is used for data transfer, XML provide Great scalability to ado.net normally in other languages data transfer is done in binary formet which give a limited scope to a application bcz it is not easy to send data ...Read Answers (3) | Asked by : foramAnswer Question Subscribe ------------------------------------------------------------------------------V

What is AutoWiredUp=false in PAGE directive in ASP.NET? Microsoft documentation says default value forWhat is AutoWiredUp=false in PAGE directive in ASP.NET? Microsoft documentation says default value for AutoWiredUp is TRUE, but in reality it is FALSE by default whenever we add new web page. What is it actually?Read Answers (2) | Asked by : KavirajuAnswer Question Subscribe ------------------------------------------------------------------------------How to add data of dataset to the datagrid without binding it to datagrid?Latest Answer: I guess , i am not sure, by using dataviewsdatagrid.datasource = dataset.defaultView or datagrid.datasource = dataview ...Read Answers (1) | Asked by : mkatpatalAnswer Question Subscribe ------------------------------------------------------------------------------Which Validation Control Should I use to select at least one value in Dropdown List controlLatest Answer: Use RequiredFieldValidator control. Set its 'InitialValue' property to something like 'Select an item'.This control will ensure that the user has to change the value from InitialValue to another value.If InitialValue is not set the dropdown ...Read Answers (5) | Asked by : marisarlaAnswer Question Subscribe ------------------------------------------------------------------------------When querying data, would you recomend that views be used or is there any better approach ?Latest Answer:

What is AutoEventWireUp? Latest Answer: Put breakpoint on page_load You will find control of break point will stop in case 1 where AutoEventWireup="true" and you will not find stop in debug mode in case 2 You will find break also in case 3 at dubugging time because handler is explicitly ...Read Answers (2) | Asked by : vajjasAnswer Question Subscribe ------------------------------------------------------------------------------Diagram of the.net architechtureLatest Answer: http://en.wikipedia.org/wiki/Microsoft.NETthe above link can help you to understand architecture. ...Read Answers (1) | Asked by : sumanta dasAnswer Question Subscribe ------------------------------------------------------------------------------1. can we run .net application on com+ server2. max no. of column in a table3. diffrence b/w vb.net1. can we run .net application on com+ server2. max no. of column in a table3. diffrence b/w vb.net & c#Read Answers (1) | Asked by : deepakAnswer Question Subscribe ------------------------------------------------------------------------------When we click a button on webform it shows java script which function is used to show thisthanks friendsWhen we click a button on webform it shows java script which function is used to show thisthanks friends ambica kiran kumar.majjiRead Answers (1) | Asked by : ambica kiranTags : Java Script FunctionAnswer Question Subscribe ------------------------------------------------------------------------------How to Search the XML file in Web Server. Latest Answer: Hi Neeraj,Your question is too short to understand. As per my understanding if you want to search for files [say XML files] on the server there are two methods:1. Use a server side page to which you pass the files to search in query-string and in return ...Read Answers (1) | Asked by : Neeraj SharmaAnswer Question Subscribe ------------------------------------------------------------------------------Whats the diffrence between Custom Control and a User Control?Latest Answer: User Control : A usercontrol is a templete control that provides extra behaviour to all individual control to be added to user control in GUI designer. These controls are added to the user's control Templete file .ascx. it is similar to aspx file and ...Read Answers (4) | Asked by : sundarrAnswer Question Subscribe ------------------------------------------------------------------------------What is name space for xml in asp.netLatest Answer: NameSpace : System.XMLFilde: System.Xml.dll ...Read Answers (2) | Asked by : ambicakiranAnswer Question Subscribe ------------------------------------------------------------------------------Can anybody tell me how to fire the textchanged event of texbox inside the grid?Latest Answer: Hi,Keep some test procedure in text chnage event of the text box,for examplein html view,and in code behind,protected void

CalculatePayingFee(object ...Read Answers (1) | Asked by : amit1978Answer Question Subscribe ------------------------------------------------------------------------------Where the assembly is stored in asp.net?Latest Answer: Hi, Every control is maintained with hiddenfield property on the form. when the page is submitted to the server, the values of each control are read from the hidden fields of each control and they were reseted on postback. When ...Read Answers (3) | Asked by : sunileswar beheraAnswer Question Subscribe ------------------------------------------------------------------------------Why we need both server controls and html controls in asp.net. what is the difference between them?Why we need both server controls and html controls in asp.net. what is the difference between them?Read Answers (2) | Asked by : jacinthaAnswer Question *********************************

What is a power event?View Question | Asked by : HarithaAnswer Question Subscribe ------------------------------------------------------------------------------What is a view state?Can Dataset be stored in view state?Does datagrid has a view state?Latest Answer: View state is of maintaining the state of the object until the page is destroyed. In the sense viewstate maintains the state of the object in all the postbacks. Dataset can be stored in viewstate. ...Read Answers (5) | Asked by : Deepu94Answer Question Subscribe ------------------------------------------------------------------------------How to create components? What is difference between assembly and component in .NET?Latest Answer: Components are packaged in assemblies. Assemblies are the reusable, versionable, self-describing building blocks of .NET applications. The simplest assembly is a single executable that contains all the information necessary for deployment and versioning.x ...Read Answers (2) | Asked by : kiran kumarAnswer Question Subscribe ------------------------------------------------------------------------------Is there any difference between Form Post and PostBack.If yes What is the difference?Latest Answer: When you POST a form you specify the location where the form data will be sent to be processed. It can be the same page or a different page. This is determined by the value of the ACTION attribute of the FORM tag. POSTBACK posts the data back to the same ...Read Answers (1) | Asked by : deepuAnswer Question Subscribe ------------------------------------------------------------------------------One aplication have 50 pages out of 50 , 5 pages shouldn't ask user name and password other 45One aplication have 50 pages out of 50 , 5 pages shouldn't ask user name and password other 45 should ask user name and password?how will you write the code in web.config?Read Answers (6) | Asked by : harinath29Answer Question Subscribe

------------------------------------------------------------------------------How to uploading and downloding the image in oracle database using asp.netThis is how I have done this in one of our projects:-1. First way is store image in BYTEARRAY while checking UPLOAD CONTROL and hold that image in CACHE. And then store it (bytearray) in Database while Latest Answer: To upload the image in to the Oracle: if you are using stored procedure then by using command instance object you and pass the image in Binary Format is Request.BinaryRead() and to display the image user the same method i.e. reponse.binarwrite() ...Read Answers (1) | Asked by : NidhiAnswer Question Subscribe ------------------------------------------------------------------------------How to create a permenent cookieLatest Answer: HttpCookie l_objCookie = new HttpCookie("myCokie", "myValue");l_objCookie.Expires = DateTime.MaxValue;Response.Cookies.Add(l_objCookie); ...Read Answers (3) | Asked by : esub khanAnswer Question Subscribe ------------------------------------------------------------------------------I am handling an exception using catch block what will happen if there an error occur it in catch blockI am handling an exception using catch block what will happen if there an error occur it in catch block while handling exception?Read Answers (2) | Asked by : vishalsharmaAnswer Question Subscribe ------------------------------------------------------------------------------How can i decrypt a password that had already encrypted using MD5 format in ASP.NET?orHow can I compareHow can i decrypt a password that had already encrypted using MD5 format in ASP.NET?orHow can I compare password that entered by a user with the encrypted password ( encryption had done using MD5 format) ?Read Answers (7) | Asked by : vijayan_kiranTags : EncryptionAnswer Question Subscribe ------------------------------------------------------------------------------Which method get called between a object is declared and it is collect by the garbage collector.A)DeleteB)Disposec)FinalizeD)CloseWhich method get called between a object is declared and it is collect by the garbage collector.A)DeleteB)Disposec)FinalizeD)CloseRead Answers (2) | Asked by : singhAnswer Question Subscribe -------------------------------------------------------------------------------

------------------------------------------------------------------------------1)How will you load dynamic assembly? How will create Assemblies at run time? 2)How to maintain View1)How will you load dynamic assembly? How will create Assemblies at run time? 2)How to maintain View State of dynamically created user controls? For example, If I am creating few instances ?Read Answers (1) | Asked by : prangyasri jenaAnswer Question Subscribe ------------------------------------------------------------------------------How will you load dynamic assembly? How will create assesblies at run time? Latest Answer: There are basically two methods in .Net to generate dynamic code through your program. One is to use CodeDom library while other is to use Reflection Emit library. The System.CodeDom library is used to generate the standard CLS (Common Language ...Read Answers (1) | Asked by : siddu46565Answer Question Subscribe ------------------------------------------------------------------------------How to maintain ViewState of dynamically created user controls? For example, If I am creating few instancesHow to maintain ViewState of dynamically created user controls? For example, If I am creating few instances of a User control using LoadControl(...) method, then how do I make sure that the viewstate of all these controls is during postbacks?Read Answers (6) | Asked by : vikrampAnswer Question Subscribe ------------------------------------------------------------------------------How do you know what version of IIS is being used by server..I mean can a client know what version ofHow do you know what version of IIS is being used by server..I mean can a client know what version of IIS is being used? or how can I know what version of IIS is being used by my hosting company?Read Answers (3) | Asked by : mak1600Answer Question Subscribe ------------------------------------------------------------------------------1. What is the core difference between ASP and ASP.NET and why do you want to migrate from asp to asp.net2.1. What is the core difference between ASP and ASP.NET and why do you want to migrate from asp to asp.net2. What is the diff b/w HTML server Controls and Web Server Controls3. How sessions are handled in ASP Vs ASP.NET4. How versions are controlled in ASP Vs ASP.NET5. Explain the concurrency problems using DATASETS6. what is XSD and XSLT. what is XML and what are the types of XML7. What are web servicesRead Answers (3) | Asked by : mak1600Answer Question Subscribe ------------------------------------------------------------------------------Which class builds insert,update,delete colums for automatically?Latest Answer: Command builder class ...Read Answers (1) | Asked by : vishnu vardhan goudAnswer Question Subscribe ------------------------------------------------------------------------------Which namespace is used for event log support?Latest Answer: using System.Diagnostics; ...Read Answers (1) |

Difference between remoting and web service in .net?explain with an exampleLatest Answer: ASP.NET Web Services.NET RemotingProtocol Can be accessed only over HTTPCan be accessed over any protocol (including TCP, HTTP, SMTP and so on)State Management Web services work in a stateless environmentProvide support for both stateful and stateless ...Read Answers (2) | Asked by : MarimuthuramanAnswer Question Subscribe

Asked by : vishnu vardhan goudAnswer Question Subscribe ------------------------------------------------------------------------------What is the difference between Session and Cookies. Can we use both in the same webpage. when we shouldWhat is the difference between Session and Cookies. Can we use both in the same webpage. when we should go for cookies.. What are the advantages and disadvantages of both.. Plz send me code also..Thanks in advance..Ravi Read Answers (2) | Asked by : aspnetAnswer Question Subscribe ------------------------------------------------------------------------------How to refresh the crystal report data from ASP.NetLatest Answer: Try to use following code :within ur .This would refresh the whole page.To avoid this ,you could embed your page with the report in an iframe and then embed that iframe in your "outer" page.That ...Read Answers (1) | Asked by : Prajakta DeshpandeAnswer Question Subscribe -------------------------------------------------------------------------------

there's a limit on the browser side, and another limit on server side, true? ...Read Answers (7) | Asked by : Senthil kumarAnswer Question Subscribe ------------------------------------------------------------------------------How to create a package for web application with components that shared with other applications?Latest Answer: I believe you create a merge module as there are components that are used in other apps ...Read Answers (2) | Asked by : Senthil KumarAnswer Question Subscribe ------------------------------------------------------------------------------How to debug javascript or vbscript in .Net?Latest Answer: You are right, in addition that it's always good to place your script in .js file with in your project so that u can place a break point and step through the code.In addition ,you can ceven attach worker process and select the 'code type' ...Read Answers (2) | Asked by : Senthil KumarAnswer Question Subscribe ------------------------------------------------------------------------------How to validate xmlschema in xml document?Latest Answer: We can use XmlReaderSettings Class and set validation type to schema and then create a event handler to the handle the validation erros.Below link has a good and simpale examplehttp:// aspalliance . com/1143_CodeSnip_Validating_XML_Data_using_the_X ML_Schema_Definition ...Read Answers (5) | Asked by : ArchanaAnswer Question Subscribe ------------------------------------------------------------------------------What is the difference between web.config and machine.config ?Latest Answer: The MACHINE.config file contains default and machnine-specific values for all supported setting. Machine setting are normally controlled by the system admin, and app should never be given write access to it.An application can override most default values ...Read Answers (9) | Asked by : chougule_archanaAnswer Question Subscribe ------------------------------------------------------------------------------How to compare an xml schema with xml schema?Latest Answer: We can do the same using System.xml namespace Where two methods exists for converting XML to Dataset viceversa. Then we can easily check whether two objects are same or not. ...Read Answers (2) | Asked by : ArchanaAnswer Question Subscribe ------------------------------------------------------------------------------How to handle the exception occured in catch block? (If a exception occurs in catch block,which statementHow to handle the exception occured in catch block? (If a exception occurs in catch block,which statement is executed next?)Read Answers (3) | Asked by : jyothsna80Answer Question Subscribe ------------------------------------------------------------------------------What are web parts ?Latest Answer: Web parts is very useful feature provided by .Net2.0.using this one administrator can easily change look and feel of web application. which is observed by end user. using diffrent

How to show graphs in ASP .net ?graphs will be based on the databse.Latest Answer: You can Use namespace mentioned above.For Bar Chart / Pie Chart Convert data to numeric Equivalent/ % thenUsing HatchBrush class/Rectangle Class Draw rectangle or Circles or Ellipse Partially using methods DrawCircle/Rectangle etc. Create evivalent Image ...Read Answers (2) | Asked by : Prajakta DeshpandeAnswer Question Subscribe ------------------------------------------------------------------------------Explain the life cycle of an ASP .NET page. Latest Answer: 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 ...Read Answers (3) | Asked by : anubpragadaAnswer Question Subscribe ------------------------------------------------------------------------------How can we associate a single codebehind file with two aspx pages.eg. We have two files First.aspx andHow can we associate a single codebehind file with two aspx pages.eg. We have two files First.aspx and Second.aspx and we have cs files codebehind.cs in which we want to write code for both files. Then how we will execute this cs file for both of the aspx file\'s events.Read Answers (5) | Asked by : neelamtestAnswer Question Subscribe ------------------------------------------------------------------------------How we implement Web farm and Web Garden concept in ASP.NET?At least give an exampleLatest Answer: yes , above mention answer is absolutly correct. ...Read Answers (2) | Asked by : NidhiAnswer Question Subscribe ------------------------------------------------------------------------------Is there any limit for query string? if means what is the maximum size?.Latest Answer: Just want to confirm,

web zones we can adjust look of website. ...Read Answers (2) | Asked by : k_v_reddyAnswer Question Subscribe ------------------------------------------------------------------------------Whats the significance of Request.MapPath( )Latest Answer: Mappath() method converts a virtual path to a fully qualified physical path on the servere.g.string fullpath = Request.MapPath("~\txt.txt"); ...Read Answers (2) | Asked by : prajapati_anilAnswer Question Subscribe ------------------------------------------------------------------------------What is ReflectionLatest Answer: Reflection is the ability to read metadata at runtime. Using reflection, it is possible to uncover the methods, properties, and events of a type, and to invoke them dynamically. Reflection also allows us to create new types at runtime.Reflection generally ...Read Answers (7) | Asked by : sanjaygAnswer Question Subscribe ------------------------------------------------------------------------------What is .net frame work?The .NET Framework has two main components: the common language runtime and the .NET Framework class library.You can think of the runtime as an agent that manages code at execution time, providing core Latest Answer: .NET framework consists of 1) CLR 2) Class library 3) ASP.Net CLR (Common Language Runtime): The name itself gives you an idea what CLR is. RUNTIME can be described as a reduced version of a program. It enables you to Execute the program ...Read Answers (2) | Asked by : rajaniAnswer Question Subscribe ------------------------------------------------------------------------------What is the maximum number of cookies that can be allowed to a web siteLatest Answer: 20 cookies ...Read Answers (7) | Asked by : renjimonAnswer Question Subscribe ------------------------------------------------------------------------------What are different properties provided by Object-oriented systems ? Can you explain different propertiesWhat are different properties provided by Object-oriented systems ? Can you explain different properties of Object Oriented Systems? Whats difference between Association , Aggregation and Inheritance relationships?Read Answers (1) | Asked by : sankerTags : InheritanceAnswer Question Subscribe ------------------------------------------------------------------------------Whats the use of @ Register directives ?Latest Answer: used to register the Web user control with tag prefix and name to use in our web page ...Read Answers (2) | Asked by : sankerAnswer Question Subscribe ------------------------------------------------------------------------------What do you mean by authentication and authorization?Authentication is the process of validating a user on the credentials (username and password) and authorization performs after authentication. After Authentication a user will be verified for performing Latest Answer: Authenticate - Making sure that only valid user can access the website or application by entering the user id

& Password.Authorization - Making sure that user is having some permission on the website Ex : view access, admin access or report access ...Read Answers (6) | Asked by : sankerAnswer Question Subscribe ------------------------------------------------------------------------------Can i assign datagrid.datasource = datareaderwill it work?will it fill my datagrid with the valuesthankxCan i assign datagrid.datasource = datareaderwill it work?will it fill my datagrid with the valuesthankx in advance.parikshit sehgalRead Answers (10) | Asked by : parikshitAnswer Question Subscribe ------------------------------------------------------------------------------Home Interview Questions Microsoft ASP.NETASP.NET Interview Questions

ASP.NET Interview QuestionsQuestions: 164Comments: 528 ASP.NET Tags Encryption, Java Script Function, Inheritance Showing Questions 151-160 of 164 Questions<< Previous 12 13 14 15 [16] 17 Next >> Sponsored Links ASP.NET Interview QuestionsSorting Options : Replies Date Added Last Update While searching a record in database it accepts all the letters and special characters.but,i enter ApostropheWhile searching a record in database it accepts all the letters and special characters.but,i enter Apostrophe it is showing error(Cannot perform 'Mod' operation on System.String and System.String) like this...how to clear this bug?Read Answers (4) | Asked by : sudhagarAnswer Question Subscribe ------------------------------------------------------------------------------I am searching a record in datagrid.if i enter any value it display record not found,if the record isI am searching a record in datagrid.if i enter any value it display record not found,if the record is not there.but i enter Apostrophe it is showing error(Cannot perform 'Mod' operation on System.String and System.String)....how to clear this bug.....i need answer from someone. Read Answers (3) | Asked by : sudhagarAnswer Question Subscribe ------------------------------------------------------------------------------How do we connect to the 11S if we want to use it instead of the built in Web Server?When opening a project file explicitly open it from an existing virtual directory. Latest Answer: Create virtual directory of your website. Than access that website directly from IIS, using localhost. This is what we do when we delpoy the application on client end when the client has no VStudio installed. ...Read Answers (2) | Asked by : bicuAnswer Question Subscribe ------------------------------------------------------------------------------Is there no concept of Project in VS2005The Concept of Project exists in VS 2005 but is supports multiple ways to open websites. Unlike in VS2005, paper can be opened using Front Page serer extensions, FTP or a direct file system path, existing View Question | Asked by : bicuAnswer Question Subscribe

------------------------------------------------------------------------------What is meant by container environment and how does VS 2005 interprate multiple visualWhat is meant by container environment and how does VS 2005 interprate multiple visual designers?Visual studio 2005 has a number of designers contained within a single inteprated development environment 91DE). It has the following designers.i) Windows Forms Application ii) ASP.NET Website Applicationsiii) View Question | Asked by : bicuAnswer Question Subscribe ------------------------------------------------------------------------------What is the trace in ASP.NETLatest Answer: Trace in ASP.Net is nothing but to trace error. When we use this trace, we will get complete step-by-step diagnosis of our application or site. It will also give some details of the error, so that the user can easily debug the code. ...Read Answers (4) | Asked by : naguAnswer Question Subscribe ------------------------------------------------------------------------------Explain Assemblies?,Difference between Panel and GroupBox?,Differences between ASP and ASP.NET? Latest Answer: Assemblies?Assemblies contains code that the common language runtime executes,An assembly is the unit at which permissions are requested and grantedIt also stores the information about itself called metadata and includes name and verison of the assembly ...Read Answers (9)Answer Question Subscribe ------------------------------------------------------------------------------What is the difference between excute query and excute nonquery.? Latest Answer: In ADO.NET we are not using execute query but execute non query is used, when SQL stmt is DDL (Create, Alter, Drop stmts), DML (Insert, Delete, Update), stored sub program . ...Read Answers (12)Answer Question Subscribe ------------------------------------------------------------------------------Difference between datagrid and datareader? Latest Answer: Data grid is a control used to bind data from database. but data reader is an object used to read data from database.Data reader is read only means it only reads data from database & it doesn't support any manipulations to database. After reading ...Read Answers (7)Answer Question Subscribe ------------------------------------------------------------------------------What is the difference between excute query and excute nonquery.? Latest Answer: ExecuteReader expects to run a query command or a stored procedure that selects records. It expects to have one or more resultsets to return. cmd.Connection.Open(); SqlDataReader dr = cmd.ExecuteReader(); // process ...Read Answers (6)Answer Question Subscribe -------------------------------------------------------------------------------

usingpublic string this(int i){ return myaaray[i];}Allow you to get the value from list of objects at particular index. ...Read Answers (2)Answer Question Subscribe ------------------------------------------------------------------------------By default what is the Asp.Net application login context on IIS 5.0?By default the ASP.Net app runs in the context of a local user ASPNet on IIS version 5. On IIS version 6 on windows 2003 it is called Network service Latest Answer: ASPNET is the account name for the asp.net application running on IIS 5.0. ...Read Answers (1)Answer Question Subscribe ------------------------------------------------------------------------------What is the exact purpose of http handlers and interfaces?Latest Answer: Handlers are used to process individual endpoint requests. Handlers enable the ASP.NET framework to process individual HTTP URLs or groups of URL extensions within an application. Unlike modules, only one handler is used to process a request. All handlers ...Read Answers (5)Answer Question Subscribe ------------------------------------------------------------------------------Can we use http handlers to upload a file in asp.net? Latest Answer: Yes we can use Http Handlers to upload the files to the web server but you need to set specific permissions for the application user to Directory to which you are uploading. ...Read Answers (3)Answer Question Subscribe ----------------------------------------------------

Subjective question and their answers 1. what is .NET? Microsoft .NET (pronounced dot net) is a software component that runs on the Windows operating system. .NET provides tools and libraries that enable developers to create Windows software much faster and easier. .NET benefits end-users by providing applications of higher capability, quality and security. The .NET Framework must be installed on a users PC to run .NET applications. This is how Microsoft describes it: .NET is the Microsoft Web services strategy to connect information, people, systems, and devices through software. Integrated across the Microsoft platform, .NET technology provides the ability to quickly build, deploy, manage, and use connected, security-enhanced solutions with Web services. .NET-connected solutions enable businesses to integrate their systems more rapidly and in a more agile manner and help them realize the promise of information anytime, anywhere, on any device. 2. What is .NET Framework ----------------------The Microsoft .NET Framework is a software framework that can be installed on computers running Microsoft Windows operating systems. It includes a large library of coded solutions to common programming problems and a virtual machine that manages the execution of programs written specifically for the framework. The .NET Framework is a Microsoft offering and is intended to be

What is indexing on asp.net? Latest Answer: Indexer is like a property but with argument.you can create the property

used by most new applications created for the Windows platform. The framework's Base Class Library provides a large range of features including user interface, data and data access, database connectivity, cryptography, web application development, numeric algorithms, and network communications. The class library is used by programmers, who combine it with their own code to produce applications. Programs written for the .NET Framework execute in a software environment that manages the program's runtime requirements. Also part of the .NET Framework, this runtime environment is known as the Common Language Runtime (CLR). The CLR provides the appearance of an application virtual machine so that programmers need not consider the capabilities of the specific CPU that will execute the program. The CLR also provides other important services such as security, memory management, and exception handling. The class library and the CLR together constitute the .NET Framework. Version 3.0 of the .NET Framework is included with Windows Server 2008 and Windows Vista. The current stable version of the framework, which is 3.5, can also be installed on Windows XP and the Windows Server 2003 family of operating systems.[2] Version 4 of the framework was released as a public Beta on 20 May 2009.[3] The .NET Framework family also includes two versions for mobile or embedded device use. A reduced version of the framework, the .NET Compact Framework, is available on Windows CE platforms, including Windows Mobile devices such as smartphones. Additionally, the .NET Micro Framework is targeted at severely resource constrained devices. 3. Common Language Infrastructure (CLI) The purpose of the Common Language Infrastructure, or CLI, is to provide a language-neutral platform for application development and execution, including functions for exception handling, garbage collection, security, and interoperability. By implementing the core aspects of the .NET Framework within the scope of the CLI, this functionality will not be tied to a single language but will be available across the many languages supported by the framework. Microsoft's implementation of the CLI is called the Common Language Runtime, or CLR. 4. Assemblies The CIL code is housed in .NET assemblies. As mandated by specification, assemblies are stored in the Portable Executable (PE) format, common on the Windows platform for all DLL and EXE files. The assembly consists of one or more files, one of which must contain the manifest, which has the metadata for the assembly. The complete name of an assembly (not to be confused with the filename on disk) contains its simple text name, version number, culture, and public key token. The public key token is a unique hash generated when the assembly is compiled, thus two assemblies with the same public key token are guaranteed to be identical from the point of view of the framework. A private key can also be specified known only to the creator of the assembly and can be used for strong naming and to guarantee that the assembly is from the same author when a

new version of the assembly is compiled (required to add an assembly to the Global Assembly Cache). 5. Metadata All CIL is self-describing through .NET metadata. The CLR checks the metadata to ensure that the correct method is called. Metadata is usually generated by language compilers but developers can create their own metadata through custom attributes. Metadata contains information about the assembly, and is also used to implement the reflective programming capabilities of .NET Framework. 6. Security .NET has its own security mechanism with two general features: Code Access Security (CAS), and validation and verification. Code Access Security is based on evidence that is associated with a specific assembly. Typically the evidence is the source of the assembly (whether it is installed on the local machine or has been downloaded from the intranet or Internet). Code Access Security uses evidence to determine the permissions granted to the code. Other code can demand that calling code is granted a specified permission. The demand causes the CLR to perform a call stack walk: every assembly of each method in the call stack is checked for the required permission; if any assembly is not granted the permission a security exception is thrown. When an assembly is loaded the CLR performs various tests. Two such tests are validation and verification. During validation the CLR checks that the assembly contains valid metadata and CIL, and whether the internal tables are correct. Verification is not so exact. The verification mechanism checks to see if the code does anything that is 'unsafe'. The algorithm used is quite conservative; hence occasionally code that is 'safe' does not pass. Unsafe code will only be executed if the assembly has the 'skip verification' permission, which generally means code that is installed on the local machine. .NET Framework uses appdomains as a mechanism for isolating code running in a process. Appdomains can be created and code loaded into or unloaded from them independent of other appdomains. This helps increase the fault tolerance of the application, as faults or crashes in one appdomain do not affect rest of the application. Appdomains can also be configured independently with different security privileges. This can help increase the security of the application by isolating potentially unsafe code. The developer, however, has to split the application into subdomains; it is not done by the CLR. 7. Class library The .NET Framework includes a set of standard class libraries. The class library is organized in a hierarchy of namespaces. Most of the built in APIs are part of either System.* or Microsoft.* namespaces. These class libraries implement a large number of common functions, such as file reading and writing, graphic rendering, database interaction, and XML document manipulation, among others. The .NET class libraries are available to all .NET languages. The .NET Framework class library is divided into two parts: the Base Class Library and the Framework Class Library. The Base Class Library (BCL) includes a small subset of the entire class library and is the core set of classes that serve as the basic API of the Common Language

Runtime.[10] The classes in mscorlib.dll and some of the classes in System.dll and System.core.dll are considered to be a part of the BCL. The BCL classes are available in both .NET Framework as well as its alternative implementations including .NET Compact Framework, Microsoft Silverlight and Mono. The Framework Class Library (FCL) is a superset of the BCL classes and refers to the entire class library that ships with .NET Framework. It includes an expanded set of libraries, including WinForms, ADO.NET, ASP.NET, Language Integrated Query, Windows Presentation Foundation, Windows Communication Foundation among others. The FCL is much larger in scope than standard libraries for languages like C++, and comparable in scope to the standard libraries of Java. 8. Memory management The .NET Framework CLR frees the developer from the burden of managing memory (allocating and freeing up when done); instead it does the memory management itself. To this end, the memory allocated to instantiations of .NET types (objects) is done contiguously[11] from the managed heap, a pool of memory managed by the CLR. As long as there exists a reference to an object, which might be either a direct reference to an object or via a graph of objects, the object is considered to be in use by the CLR. When there is no reference to an object, and it cannot be reached or used, it becomes garbage. However, it still holds on to the memory allocated to it. .NET Framework includes a garbage collector which runs periodically, on a separate thread from the application's thread, that enumerates all the unusable objects and reclaims the memory allocated to them. The .NET Garbage Collector (GC) is a non-deterministic, compacting, mark-and-sweep garbage collector. The GC runs only when a certain amount of memory has been used or there is enough pressure for memory on the system. Since it is not guaranteed when the conditions to reclaim memory are reached, the GC runs are non-deterministic. Each .NET application has a set of roots, which are pointers to objects on the managed heap (managed objects). These include references to static objects and objects defined as local variables or method parameters currently in scope, as well as objects referred to by CPU registers.[11] When the GC runs, it pauses the application, and for each object referred to in the root, it recursively enumerates all the objects reachable from the root objects and marks them as reachable. It uses .NET metadata and reflection to discover the objects encapsulated by an object, and then recursively walk them. It then enumerates all the objects on the heap (which were initially allocated contiguously) using reflection. All objects not marked as reachable are garbage.[11] This is the mark phase.[12] Since the memory held by garbage is not of any consequence, it is considered free space. However, this leaves chunks of free space between objects which were initially contiguous. The objects are then compacted together, by using memcpy[12] to copy them over to the free space to make them contiguous again.[11] Any reference to an object invalidated by moving the object is updated to reflect the new location by the GC.[12] The application is resumed after the garbage collection is over. The GC used by .NET Framework is actually generational.[13] Objects are assigned a generation; newly created objects belong to Generation 0. The objects that survive a garbage collection are tagged as Generation 1,

and the Generation 1 objects that survive another collection are Generation 2 objects. The .NET Framework uses up to Generation 2 objects.[13] Higher generation objects are garbage collected less frequently than lower generation objects. This helps increase the efficiency of garbage collection, as older objects tend to have a larger lifetime than newer objects.[13] Thus, by removing older (and thus more likely to survive a collection) objects from the scope of a collection run, fewer objects need to be checked and compacted.[13] 9. Common Language Specification (CLS) The CLS is a common platform that integrates code and components from multiple .NET programming languages. In other words, a .NET application can be written in multiple programming languages with no extra work by the developer (though converting code between languages can be tricky). .NET includes new object-oriented programming languages such as C#, Visual Basic .NET, J# (a Java clone) and Managed C++. These languages, plus other experimental languages like F#, all compile to the Common Language Specification and can work together in the same application. 10. Common Language Runtime (CLR) The CLR is the execution engine for .NET applications and serves as the interface between .NET applications and the operating system. The CLR provides many services such as: Loads and executes code Converts intermediate language to native machine code Separates processes and memory Manages memory and objects Enforces code and access security Handles exceptions Interfaces between managed code, COM objects, and DLLs Provides type-checking Provides code meta data (Reflection) Provides profiling, debugging, etc. 11. What is the history of .NET? .NET started as a classic Microsoft FUD operation. In the late 1990s, Microsoft had just successfully fought off a frontal assault on its market dominance by killing the Netscape Web browser with its free Internet Explorer. But Microsoft was facing a host of new challenges, including serious problems with COM, C++, DLL hell, the Web as a platform, security, and strong competition from Java, which was emerging as the go-to language for Web development. Microsoft started building .NET in the late 90s under the name Next Generation Windows Services (NGWS). Bill Gates described .NET as Microsofts answer to the Phase 3 Internet environment, where the Internet becomes a platform in its own right, much like the PC has traditionally been Instead of a world where Internet users are limited to reading information, largely one screen at a time, the Phase 3 Internet will unite multiple Web sites running on any device, and allow users to read, write and annotate them via speech, handwriting recognition and the like, Gates said. We are certainly approaching that vision. Microsoft announced .NET to the world in June 2000 and released version 1.0 of the .NET framework in January 2002. Microsoft also labeled everything .NET including

briefly Office to demonstrate its commitment and dominance on this new thing called the Web. But out of that grand FUD campaign emerged the very capable and useful .NET development environment and framework for both the Web and Windows desktop. 12. What are the benefits of .NET? .NET provides the best platform available today for delivering Windows software. .NET helps make software better, faster, cheaper, and more secure. .NET is not the only solution for developing Web softwareJava on Linux is a serious alternative. But on the Windows desktop, .NET rules. For developers, .NET provides an integrated set of tools for building Web software and services and Windows desktop applications. .NET supports multiple programming languages and Service Oriented Architectures (SOA). For companies, .NET provides a stable, scalable and secure environment for software development. .NET can lower costs by speeding development and connecting systems, increase sales by giving employees access to the tools and information they need, and connect your business to customers, suppliers and partners. For end-users, .NET results in software thats more reliable and secure and works on multiple devices including laptops, Smartphones and Pocket PCs. 13. Just-in-Time Compilation(JIT) If your mantra is, "Why do something now you can put off till tomorrow?" then you have something in common with the CLR. When you compile your code and it is translated to the intermediate language it is then simply stored in an assembly. When that assembly is used the CLR picks up that code and compiles it on-the-fly for the specific machine that is running the code. This means the runtime could compile the code differently based on what CPU or operating system the application is being run on. However, at this point the CLR doesn't compile everything in the assembly; it only compiles the individual method that is being invoked. This kind of on-the-fly compilation, referred to as jitting, only happens once per method call. The next time a method is called, no compilation occurs because the CLR has already compiled that code. 14. What is .NET Framework and what are CLR, CTS and CLS? . NET is a software platform. It's a language-neutral environment for developing .NET applications that can easily and securely operate within it. The .NET Framework has two main components: the Common Language Runtime (CLR) and the .NET Framework class library. The Runtime can be considered an agent that manages code at execution time. Thus providing core services such as memory management, thread management, and remoting. Also incorporating strict type safety, security and robustness. The class library is a comprehensive collection of reusable types that you can use to develop traditional command-line, WinForm (graphical user interface) applications, Web Forms and XML Web services.

The .NET Framework provides a Runtime environment called the Common Language Runtime or (CLR) that handles the execution of the code and provides useful services for the implementation of the application. CLR takes care of code management upon program execution and provides various services such as memory management, thread management, security management and other system services. The managed code targets CLR benefits by using useful features such as cross-language integration, cross-language exception handling, versioning, enhanced security, deployment support, and debugging. Common Type System (CTS) describes how types are declared, used and managed. CTS facilitates cross-language integration, type safety, and high performance code execution. The CLS is a specification that defines the rules to support language integration. This is done in such a way, that programs written in any language (.NET compliant) can interoperate with one another. This also can take full advantage of inheritance, polymorphism, exceptions, and other features. 15. Boxing and Unboxing in C# .Net C# provides us with Value types and Reference Types. Value Types are stored on the stack and Reference types are stored on the heap. The conversion of value type to reference type is known as boxing and converting reference type back to the value type is known as unboxing. Let me explain you little more about Value and Reference Types. Value Types Value types are primitive types that are mapped directly to the FCL. Like Int32 maps to System.Int32, double maps to System.double. All value types are stored on stack and all the value types are derived from System.ValueType. All structures and enumerated types that are derived from System.ValueType are created on stack, hence known as ValueType.

Reference Types Reference Types are different from value types in such a way that memory is allocated to them from the heap. All the classes are of reference type. C# new operator returns the memory address of the object. 16. Marshaling Marshaling is the act of taking data from the environment you are in and exporting it to another environment. In the context of .NET, marhsaling refers to moving data outside of the app-domain you are in, somewhere else. When you work with unmanaged code, you are marshaling data from your managed app-domain to the unmanaged realm. Also, when transferring data between app-domains (to another application, on the same or another machine), you are also marshaling data from your appdomain, to another app-domain.

17. Namespace A Namespace in Microsoft .Net is like containers of objects. They may contain unions, classes, structures, interfaces, enumerators and delegates. Main goal of using namespace in .Net is for creating a hierarchical organization of program. In this case a developer does not need to worry about the naming conflicts of classes, functions, variables etc., inside a project. In Microsoft .Net, every program is created with a default namespace. This default namespace is called as global namespace. But the program itself can declare any number of namespaces, each of them with a unique name. The advantage is that every namespace can contain any number of classes, functions, variables and also namespaces etc., whose names are unique only inside the namespace. The members with the same name can be created in some other namespace without any compiler complaints from Microsoft .Net.

also implements that other interface. If it does, you can cast the interface reference to an instance reference, or to a reference to another interface. Conversely, you can not go from a delegate to the instances it will call or to any other methods those instances may support. However, don't conclude from this that you should always implement callbacks via interfaces, not delegates. One key difference between delegates and interfaces is that you can create a delegate to any method with the right prototype. 20. Refelction Refelction is the mechanism of discovering class information solely at run time.Wondering where it would be useful? Imagine,you are in visual studio IDE (Integrated devolopment environment) and as you type "object." you would see all the methods,properties and events associated with that object.An other example would be an Object browser.The code attached here,loads all assemblies and displays each class,its contructors, methods, properties and events in tree view.The form also hase a command botton (labeled More Reflection) in whose click event I create an object of MyClass1 class based on the name of the class and invoke its methods during run time

To declare namespace C# .Net has a reserved keyword namespace. If a new project is created in Visual Studio .NET it automatically adds some global namespaces. These namespaces can be different in different projects. But each of them should be placed under the base namespace System. The names space must be added and used through the using operator, if used in a different project. 18. Delegates A delegate in C# is similar to a function pointer in C or C++. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object. The delegate object can then be passed to code which can call the referenced method, without having to know at compile time which method will be invoked. 19 Difference Between Delegates and Interfaces You use delegates when you think of a .NET code that takes callback parameters, which look a lot like strongly typed method pointers in C++. You may not think that you can implement a callback parameter as an interface. Interfaces and delegates have a common key property of allowing you to call a method with the right prototype without knowing which object implements the method, which instance is bound to the call, or the name of the method you're calling. 1. Interface calls are faster than delegate calls. An interface reference is a reference to an instance of an object which implements the interface. An interface call is not that different from an ordinary virtual call to a method. A delegate reference, on the other hand, is a reference to a list of method pointers. While invoking a delegate looks like you're making an indirect call through a method pointer, it's actually a subroutine call that walks the list of method pointers. The overhead involved in making the call and walking the list means that delegate invocation can be two or three times slower than calling a method through an interface reference. 2. Interfaces are also a bit more general than are delegates. A single interface reference gives you access to all the methods of the interface. You can also check if the interface is implemented by this object type, or if the object

También podría gustarte