0% found this document useful (0 votes)
173 views

Interview Questions

Button controls in ASP.NET are instances of the Button class. The ASP.NET page lifecycle involves initialization, loading, change notification, and rendering stages. Gridview templates initiate from the ItemTemplate interface. Authentication in ASP.NET can be set to different levels including no authentication, Windows authentication, and form authentication. Virtual functions in C# allow overriding behavior in derived classes.

Uploaded by

MK
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
173 views

Interview Questions

Button controls in ASP.NET are instances of the Button class. The ASP.NET page lifecycle involves initialization, loading, change notification, and rendering stages. Gridview templates initiate from the ItemTemplate interface. Authentication in ASP.NET can be set to different levels including no authentication, Windows authentication, and form authentication. Virtual functions in C# allow overriding behavior in derived classes.

Uploaded by

MK
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 20

ASP.

Net Interview Questions


Note-Some Questions answer may be Incorrect and uncompleted so you can search correct answer and you will Email me with correct answer
1. Webform Button

A button in a webform is class or object? If it is object than which is class for that object? Answer: Button on a web form is an instance of the Button class. If you see the designer.cs of you aspx page, you will notice the code, protected global::System.Web.UI.WebControls.Button button1,here button1 is the instance created. ...
2. ASP .Net Page Life Cycle

Explain the life cycle of an ASP .NET page. Answer: All the stages of Page Life Cycle and its relevant methods used are: (1) Page Initialization = Page_Init (2) View State Loading = LoadViewState (3) PostBack data processing = LoadPostData (4) Page Loading = Page_Load (5) PostBack Change Notification ...
3. Gridview Template Interface

In which interface the template of any control like Gridview would Initiate? Answer: In ItemTemplate Inside TemplateColumn ...
4. Authentication Levels

How we can set Different levels of Authentication in .Net?What are the difference between Windows Authenticatin, Passport Authentication and Form Authentication? Answer: There are basically Four types of authentication:-1. No Authentication: This means that one is not providing any kind of authentication to the form and everyone is authenticate to use the form.2. Windows Authentication : This means that the authentication ...
5. Tooltip class What is tooltip class? How it was implemented? Answer: ToolTip Class is used to create a custome tooltip message for the any controls and associated with controls.ToolTip objPictureBox=new ToolTip();objPictureBox.Text="This is picturebox control";PictureBox1.Controls.Add(objPictureBox); ... 6. Virtual function in c#

explain virtual function in c# with an example Answer: It has override keyword in the child class and the base class containing the virutual keyword. ...

7. Asp.net code behind pages

When using code behind pages, which library must access file import from asp.net environment 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 ...
8. Stimulate Processing Model

What type of processing model does ASP.NET stimulate? Answer: Event-driven ...
9. Declarative Security and Imperative Security

What do you mean by Declarative Security and Imperative Security? Explain with an example of usage where you would use them 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 ...
10. Datagrid Alter Rows

How to alter the rows in a datagrid? 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 ...
11. Page Posting How do you post a current page to different ASPx page? Answer: protected void Page_Load { Response.Redirect("webform.aspx");

..

12. Conditional Boating What is Conditional Bloating? How do you handle it? 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 ... 13. How does the cookies work in asp.net? i want to know the complete follow of the page how it store cookies and user info into session and when it get terminate also is it possible to call in-process application to out-process? Answer: we know Http is an state-less protocol which is required for interaction between clinet and server .so there is an need to remeber state of request raised by an web browser so that web server can recognize you have already previously visited or not.There ...

14. ASP.NET Binding

Why do we binds the data in Web-application not in the Windows-application

Answer: Actually this is not about converting server output into HTML, as asp.net could do it automatically like desktop does.the reason behind the databind() method is giving you an option whether to bind the data or not, as websites are stateless and databinding ...
15. What methods must be used with the application object to ensure that only one process

accross a varaible What methods must be used with the application object to ensure that only one process accross a varaible at a time?
16. What is the difference between Dataset.clone() and Dataset.copy()?

Answer: Dataset.clone() method copies the structure of the DataSet, including all datatable schemas, relations.constraints. But it does not copy any data.Dataset.copy() Copies both the structure and dataThank's Pradhan Prasanta Kumar ...
17. What is Ispostback method in ASP.Net? Why do we use that?How can we use pointers in

ASP.Net? 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); ...
18. 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?. Answer interviewer demanding that correct answer No because User controls are not precompilable
19. What is the difference between EVENTS and FUNCTIONS?

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. ...
20. 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 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 ...

21. What is text stream object?

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 ...
22. How do you differentiate managed code and unmanaged code?

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. ...

23. What is a Webcontrol?

Answer: Webcontrol is the base class that define methods, properties, events for all the controls in System.Web.UI.Webcontrols namespace. ...
24. What is the difference between application state and caching

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 ...
25. What is boxing and unboxing?

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) ; ...
26. 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) 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, ... 27. What is the use of AutoWireup in asp.net

In which circumstances we have to use this? Answer: AutoEventWireup attribute is used to set whether the events needs to be automatically generated or not.In the case where AutoEventWireup attribute is set to false (by default), event handlers are automatically required for Page_Load or Page_Init. However, ...
28. What is diffrence between debug.trace and trace.write?Where is the information of debug

stored? 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. ...

29. What events will occur when a page is loaded?

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 ...

30. What must be done before you can consume a web service?

Build a proxy library by using the wsdl.exe utility 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 ...
31. What are the Session Management Techniques? 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 ... 32.How to store data through form in xml format without overwriting the previous content 33. What is the difference between adding reference in solution Explorer and adding references

by USING 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. ...
34. What is the difference between row.delete() and row. remove()??

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 ...
35. What is share portal?

Answer: SharePoint Portal Server is used to build intranet portals and share documents. ...
36. What is the difference between autopostback and ispostback? 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 ...

37. What is different between .net framework1.1 and .net framework 2.0? 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 ... 38. What are the series of events that take place or the life cycle of page that takes place when

a Master What 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 ?

39. What is difference between key word &key filter

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 ...
40. What are the different types of sessions in ASP.Net? Name them.

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 ...
41. How can you provide an alternating color scheme in a Repeater control? AlternatingItemTemplate 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. ... 42. How do you design a website with multilingual support in ASP.NET Answer: Multilingual website can be created using Globalization and Localization.Using Globalization we change the Currency, Date, Numbers, etc to Language Specific Format.To change the string which is there in the label, button, etc to language specific ... 43. What is meant by state management?

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 ...
44. What is caching? What are different ways of caching in ASP.NET?

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 ...

45. 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 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. ...
46. 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.
47. What is different between BCL and FCL in dot net?

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 ...
48. What is the main event fired when we call bind method in a datagride? Answer: It's ItemDataBound that occurs when we call a bind method.Please refer the following link http: // msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.datagrid_events . aspxGood 49. What is meant by 3-tier architecture 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 ... 50. What DataType is return in Postback property

Answer: PostBack always return boolean value(true/false)true-page is posting subsequntly on each hit from client sidefalse-page is posting first time ...
51. What is the main difference between External and inline style sheet. 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 ... 52. State the different types of style sheets.

Answer: There are 3 types of style sheets1. Inline2. Embeded3. External ...
53. What is the difference between single data binding and multi-record data binding

Answer: Hai,Simple Data Binding is the process of bounding the value in dataset to simple controls such as TextBoxes,Labels etc..Simple Data Binding is the process of bounding the multiple values in dataset to rich web controls like Datagrid,DataList ...

54. What are web /application servers of .Net?

Answer: IIS ,BusTalk Etc ...


55. What is Flex-Grid in ASP.NET?

Answer: Hai,We dont have flexigrid control in VB.Net instead of that we have DataGrid Framework1.0 and GridView in Framework 2.0 .Flexigrid is there with VB 6.0 IDE. ...
56. Explain the basic functionality of garbage collector

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 ... 57. What is the difference between mechine.config and web.config? 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 ...
58. State the difference between a Session and an Application Answer: Application is global and initiated when the application is loaded for the first time and remains active till the application is terminated. Session is for a particular user. It gets loaded when the user first accesses the application and remains active ... 59. What are the types of JIT found?

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 ...
60. In an ASP.NET application can we add more than one WEB.CONFIG files? Can it run?

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 ...
61. Can we run asp.net apllication without WEB.CONFIG file? 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. ... 62. What is the Generation of Garbage Collector ?

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 ...
63. What is APP Domain? what is the main role of it? can we create custom APP Domain?

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 ...

64. How can exception be handled with out the use of try catch?

Answer: using Exception Management application blockorPage_errorApplication_error objects ... 65. Is that possible to connect remoting with anyother site without session id?? Answer: yes it is possible because we were having the Server.Transfer() where it will transefer the request to other page. ...
66. Do you have to worry about database connection state in ASP.NET ? Why ?

Answer: try{Connection.Open()}catch{...}finally{ Connection.Close()}The finally block will ALWAYS execute regardless of exception. ...
67. My interviewer asked me i want maintain same header and footer in number of pages what

is the way to My 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?
68. Diagram of complete .net framework with elaboration

Answer: Difgram is used to differentiate the change of curent data with original data. ...
69. What is use of DataAdapater? and is it possible to add data from data reader directly to a

dataset or What is use of DataAdapater? and is it possible to add data from data reader directly to a dataset or a datatable?
70. What is the difference between Response.Redirect and Server.Transfer

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 ...
71. 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?
72. In your asp.net application there is a textbox, How can clear the textbox with out round

trip? 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) ...
73. If i place an attribute called "runat=server"how the execution goes to server? i.e will this

If i place an attribute called "runat=server"how the execution goes to server? i.e will this application contact client browser?
74. Can one try statement have many catch statements

Answer: Don't trust the people who say that a try block can have only one catch block... ...
75. One application can have only one Web config file - true or false 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. ... 76. What is the difference between serializable and marshalbyrefobject in remoting? 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 ... 77. How to load data from one page to another page in asp.net

Answer: what about viewstate, cache and the good old cookes :) ...
78. How many kinds of web services are there?

Answer:I think answer is XML WebServices.. ...


79. 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 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 ...
80. What exactly happens when we change AUTOEVENTWIREUP = FALSE TO TRUE 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 ... 81. What is the advantage of third party component SMTP over ASP.NET mail component

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. ...
82. What is AutoEventWireUp?

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 ...
83. Diagram of the.net architechture Answer: http://en.wikipedia.org/wiki/Microsoft.NETthe above link can help you to understand architecture. ... 1. can we run .net application on com+ server2. max no. of column in a table3. diffrence b/w vb.net 1. can we run .net application on com+ server2. max no. of column in a table3. diffrence b/w vb.net & c#

84. When we click a button on webform it shows java script which function is used to show

thisthanks friends When we click a button on webform it shows java script which function is used to show thisthanks friends ambica kiran kumar.majji
85. How to Search the XML file in Web Server.

Answer: 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 ...
86. Whats the diffrence between Custom Control and a User Control?

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 ...
87. What is name space for xml in asp.net

Answer: NameSpace : System.XMLFilde: System.Xml.dll ...


88. Can anybody tell me how to fire the textchanged event of texbox inside the grid?

Answer:Keep some test procedure in text chnage event of the text box,for examplein html view,and in code behind,protected void CalculatePayingFee(object ...
89. Where the assembly is stored in asp.net? Answer: 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 ...

90. 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?
91. What is AutoWiredUp=false in PAGE directive in ASP.NET? Microsoft documentation

says default value for What 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?
92. How to add data of dataset to the datagrid without binding it to datagrid?

Answer: I guess , i am not sure, by using dataviewsdatagrid.datasource = dataset.defaultView or datagrid.datasource = dataview ...

93. Which Validation Control Should I use to select at least one value in Dropdown List

control 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 ...
94. When querying data, would you recomend that views be used or is there any better

approach ? Answer: 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 ...
95. What is the difference between inline coding & code behind.

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 ...
96. Difference between DataList and Repeater?ans:Both are similar,except for a difference that

Repeater Difference between DataList and Repeater?ans:Both are similar,except for a difference that Repeater datas can't be edited whereas datalist datas can be edited
97. Where can we save cashed data and session data

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 ...

98. How to update the data in dataset

Answer: we use ISqlcommandBuilder interface to add, edit or delete any data in the original database.system.data.ISqlCommandBuilder commandbuilder= new SqlCommandBuilder("dataAdapter");
99. How a grid can be made editable int ASP.Net? How to Access a particular cell of Grid?

What is the difference How 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? Is xml plays any role in ado.net architecture? 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 ...
100.

101. 102.

What is a power event?

What is a view state?Can Dataset be stored in view state?Does datagrid has a view state? 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. ... How to create components? What is difference between assembly and component in .NET? Answer: Components are packaged in assemblies. Assemblies are the reusable, versionable, selfdescribing building blocks of .NET applications. The simplest assembly is a single executable that contains all the information necessary for deployment and versioning.x ...
103.

Is there any difference between Form Post and PostBack.If yes What is the difference? 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 ...
104.

One aplication have 50 pages out of 50 , 5 pages shouldn't ask user name and password other 45 One 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?
105.

106.

How to uploading and downloding the image in oracle database using asp.net

This 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 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() .. How to create a permenent cookie Answer: HttpCookie l_objCookie = new HttpCookie("myCokie", "myValue");l_objCookie.Expires = DateTime.MaxValue;Response.Cookies.Add(l_objCookie); ...
107.

I am handling an exception using catch block what will happen if there an error occur it in catch block I am handling an exception using catch block what will happen if there an error occur it in catch block while handling exception?
108.

How can i decrypt a password that had already encrypted using MD5 format in ASP.NET?orHow can I compare How 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) ?
109.

Which method get called between a object is declared and it is collect by the garbage collector.A)DeleteB)Disposec)FinalizeD)Close Which method get called between a object is declared and it is collect by the garbage collector.A)DeleteB)Disposec)FinalizeD)Close
110.

Difference between remoting and web service in .net?explain with an example 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 ...
111.

How will you load dynamic assembly? How will create Assemblies at run time? 2)How to maintain View 1)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 ?
112.

113.

How will you load dynamic assembly? How will create assesblies at run time?

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 ... How to maintain ViewState of dynamically created user controls? For example, If I am creating few instances How 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?
114.

How do you know what version of IIS is being used by server..I mean can a client know what version of How 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? 116. 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 services
115.

Which class builds insert,update,delete colums for automatically? Answer: Command builder class ...
117.

Which namespace is used for event log support? Answer: using System.Diagnostics; ...
118.

What is the difference between Session and Cookies. Can we use both in the same webpage. when we should What 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
119.

How to refresh the crystal report data from ASP.Net 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 ...
120.

121.

How to show graphs in ASP .net ?graphs will be based on the databse.

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 ... Explain the life cycle of an ASP .NET page. 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 ...
122.

How can we associate a single codebehind file with two aspx pages.eg. We have two files First.aspx and How 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.
123.

How we implement Web farm and Web Garden concept in ASP.NET?At least give an example Answer: yes , above mention answer is absolutly correct. ...
124.

Is there any limit for query string? if means what is the maximum size?. Answer: Just want to confirm, there's a limit on the browser side, and another limit on server side, true? ...
125.

How to create a package for web application with components that shared with other applications? Answer: I believe you create a merge module as there are components that are used in other apps
126.

How to debug javascript or vbscript in .Net? 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' ...
127.

How to validate xmlschema in xml document? 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_XML_Schema_Definition ...
128. 129.

What is the difference between web.config and machine.config ?

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 ...
130. How to compare an xml schema with xml schema? 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. ...

How to handle the exception occured in catch block? (If a exception occurs in catch block,which statement How to handle the exception occured in catch block? (If a exception occurs in catch block,which statement is executed next?)
131.

What are web parts ? Answer: ASP.NET Web Parts is an integrated set of controls for creating Web sites that enable end users to modify the content, appearance, and behavior of Web pages directly from a browser. The modifications can be applied to all users on the site or to individual ...
132.

Whats the significance of Request.MapPath( ) Answer: Mappath() method converts a virtual path to a fully qualified physical path on the servere.g.string fullpath = Request.MapPath("~\txt.txt"); ...
133. 134. What is Reflection Answer: Reflection is the feature of C# that enables you to obtain the information about a type. ...

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 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 ...
135. 136. What is the maximum number of cookies that can be allowed to a web site Answer: - A maximum of 300 cookies can be stored on the user's system. - No cookie can be larger than 4 kilobytes. - No server or domain can place more than 20 cookies on a user's system. (One website can't hog all 300 cookies.) - If you go beyond ... 137.

What are different properties provided by Object-oriented systems ? Can you explain different properties

What 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? Whats the use of @ Register directives ? Answer: used to register the Web user control with tag prefix and name to use in our web page ...
138.

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 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 ...
139.

Can i assign datagrid.datasource = datareaderwill it work?will it fill my datagrid with the valuesthankx Can i assign datagrid.datasource = datareaderwill it work?will it fill my datagrid with the valuesthankx in advance.parikshit sehgal
140.

While searching a record in database it accepts all the letters and special characters.but,i enter Apostrophe While 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?
141.

I am searching a record in datagrid.if i enter any value it display record not found,if the record is I 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.
142.

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. 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. ...
143.

144.

Is there no concept of Project in VS2005

The 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 What is meant by container environment and how does VS 2005 interprate multiple visual What 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)
145.

What is the trace in ASP.NET 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. ...
146.

Explain Assemblies?,Difference between Panel and GroupBox?,Differences between ASP and ASP.NET? 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 ...
147.

What is the difference between excute query and excute nonquery.? 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 . ...
148.

Difference between datagrid and datareader? 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 ...
149.

What is the difference between excute query and excute nonquery.? 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 ...
150.

What is indexing on asp.net? Answer: Indexer is like a property but with argument.you can create the property usingpublic string this(int i){ return myaaray[i];}Allow you to get the value from list of objects at particular index. ...
151.

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 Answer: ASPNET is the account name for the asp.net application running on IIS 5.0. ...
152. 153. What is the exact purpose of http handlers and interfaces? 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 ..

Can we use http handlers to upload a file in asp.net? 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. ...
154.

You might also like