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

IQ

Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process. What's the difference between Response.Write() andResponse.Output.Write? What's a bubbled event? add an onmouseover attribute to the button.

Uploaded by

Jack Jacky
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)
31 views

IQ

Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process. What's the difference between Response.Write() andResponse.Output.Write? What's a bubbled event? add an onmouseover attribute to the button.

Uploaded by

Jack Jacky
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/ 14

1. Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.

exe in the page


loading process.
inetinfo.exe is theMicrosoft 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 tothe actual worker
process aspnet_wp.exe.
2. What’s the difference between Response.Write() andResponse.Output.Write()?
Response.Output.Write() allows you to write formatted output.
3. 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.
4. When during the page processing cycle is ViewState available?
After the Init() and before the Page_Load(), or OnLoad() for a control.
5. What namespace does the Web page belong in the .NET Framework class hierarchy?
System.Web.UI.Page
6. Where do you store the information about the user’s locale?
System.Web.UI.Page.Culture
7. What’s the difference between Codebehind="MyCode.aspx.cs"
andSrc="MyCode.aspx.cs"?
CodeBehind is relevant to Visual Studio.NET only.
8. What’s 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.
9. 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","someClientCodeHere();");
10. What data types do the RangeValidator control support?
Integer, String, and Date.
11. Explain the differences between Server-side and Client-side code?
Server-side code executes on the server. Client-side code executes in the client's browser.
12. What type of code (server or client) is found in a Code-Behind class?
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.
13. Should user input data validation occur server-side or client-side?
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.
14. 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.
15. 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.
16. 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.
17. 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.
18. 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.
19. Whats an assembly?
Assemblies are the building blocks of the .NET framework.
20. Describe the difference between inline and code behind.
Inline code written along side the html in a page. Code-behind is code written in a
separate file and referenced by the .aspx page.
21. 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.
22. 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.
23. Which method do you invoke on the DataAdapter control to load your generated
dataset with data?
The Fill() method.
24. Can you edit data in the Repeater control?
No, it just reads the information from its data source.
25. Which template must you provide, in order to display data in a Repeater control?
ItemTemplate.
26. How can you provide an alternating color scheme in a Repeater control?
Use the AlternatingItemTemplate.
27. 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.
28. What base class do all Web Forms inherit from?
The Page class.
29. Name two properties common in every validation control?
ControlToValidate property and Text property.
30. 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.
31. Which control would you use if you needed to make sure the values in two different
controls matched?
CompareValidator control.
32. How many classes can a single .NET DLL contain?
It can contain many classes.
33. What is the transport protocol you use to call a Web service?
SOAP (Simple Object Access Protocol) is the preferred protocol.
34. A Web service can only be written in .NET?
False
35. What does WSDL stand for?
Web Services Description Language.
36. Where on the Internet would you look for Web services?
http://www.uddi.org
37. 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.
38. 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.
39. 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).
40. 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.
41. 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.
42.What is cross page posting in ASP.NET2.0 ?
When we have to post data from one page to another in application we used
server.transfer method but in this the URL remains the same but in cross page posting
there is little different there is normal post back is done but in target page we can access
values of server control in the source page.This is quite simple we have to only set the
PostBackUrl property of Button,LinkButton or imagebutton which specifies the target
page.In target page we can access the PreviousPage property.And we have to use the
@PreviousPageType directive.We can access control of PreviousPage by using the
findcontrol method.When we set the PostBackURL property ASP.NET framework bind
the HTML and Javascript function automatically.
43.How to call method that handles the Click event for several buttons ?
Answer: Protected Sub AnyClicked(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click, Button2.Click, Button3.Click
Dim b As Button = CType(sender, Button)
Response.Write("You clicked the button labeled " & b.ID) End Sub
44. What do you mean by CodeDom ?
In a simple language CodeDom is an object model which display or represent source
code.CodeDom is specially designed for language independent. And the method is quite
simple when we create CodeDom for a program we can generate the source code in
any .NET language.
45.Difference between System exceptions and Application exceptions ?
In ASP.NET all exception derives from Exception which is Base class. Exceptions can be
generated programmatically or can be generated by system. Application Exception serves
as the base class for all applicationspecific exception classes. It derives from Exception
but does not provide any extended functionality. You should derive your custom
application exceptions from Application Exception. Application exception is used when
we want to define user defined exception, while system exception is all which is defined
by .NET.
46.What is the difference between Shadowing and overriding ?
Overriding redefines only the implementation while shadowing redefines the whole
element.On the other side In overriding derived classes can refer the parent class element
by using “ME” keyword, but in shadowing you can access it by “MYBASE”.
47.What is the use of App_Code folder in asp.net ?
Its name helps us to understand what is this in another way we can say that its
automatically accessible in the application. App_Code Folder store classes, typed data
set, text files, Reports etc. If we don’t have this folder in web application we can add this
folder. One of more significant feature of this is a single dll is created of this folder. If we
have two different language classes in this folder then we have to create two folder one
for one language.
48.What is diffrence between Debug and Trace class ?
Debug Class helps to set methods and properties that helps in debugging code. If we use
methods in Debug class for print debugging information and checking our logic with
cases, we can make our code more robust without impacting the performance and code
size. On the other side we use the properties and methods in the Trace class to release
builds and instrumentation allows us to monitor the condition of our application running
in real-life settings. Tracing helps us to know problems and fix them without interact a
running system. Trace is enabled by default in visual 2005. So code is generated for all
trace methods in both release and debug builds.
49.What do you mean by Web Part Control in asp.net ?
ASP.NET Web Parts controls are the integrated controls which helps in creation of Web
sites that also help users to modify the content as well as appearance, and behavior of
pages of web sites that are open in browser.
50.What changes are done in IIS 6.0 over IIS 5.0 ?
IIS makes easy to get information.IIS 6.0 is the next latest of web server available in
Windows Server 2003 platform. IIS 6.0 contains several enhancements over IIS 5.0 that
are mainly to increase reliability, manageability, scalability, and security. IIS 6.0 is a key
component of the Windows Server 2003 application platform, using which you can
develop and deploy high performance ASP.NET Web applications, and XML Web
Services.
51.Com Marshler function in .NET ?
Com Marshler is useful component of CLR.Main work of marshal data between
Managed and Unmanaged environment .It helps in representation of data accross
diffrenet execution enviroment.Its also convert data format between manage and
unmanaged code.By the helps of Com Marshlar CLR allows manage code to interoperate
with unmanaged code.
52.How Visual SourceSafe helps Us ?
One of the powerful tool provided by Microsoft to keep up-to-date of files system its
keeps records of file history once we add files to source safe it can be add to database and
the changes ade by diffrenet user to this files are maintained in database from that we can
get the older version of files to.This also helps in sharing,merging of files.
53.What is main difference between GridLayout and FormLayout ?
GridLayout helps in providing absolute positioning of every control placed on the page.It
is easier to devlop page with absolute positioning because control can be placed any
where according to our requirement.But FormLayout is little different only experience
Web Devloper used this one reason is it is helpful for wider range browser.If there is
absolute positioning we can notice that there are number of DIV tags.But in FormLayout
whole work are done through the tables.
54.What is the purpose of IIS ?
We can call IIS(Internet Information Services) a powerful Web server that helps us
creating highly reliable, scalable and manageable infrastructure for Web application
which runs on Windows Server 2003. IIS helps development center and increase Web
site and application availability while lowering system administration costs. It also runs
on Windows NT/2000 platforms and also for above versions. With IIS, Microsoft
includes a set of programs for building and administering Web sites, a search engine, and
support for writing Web-based applications that access database. IIS also called http
server since it process the http request and gets http response.
55. How to start Outlook,NotePad file in AsP.NET with code ?
Here is the syntax to open outlook or notepad file in ASP.NET VB.NET
Process.Start("Notepad.exe") Process.Start("msimn.exe"); C#.NET
System.Diagnostics.Process.Start("msimn.exe");
System.Diagnostics.Process.Start("Notepad.exe");
56.What you thing about the WebPortal ?
Web portal is nothing but a page that allows a user to customize his/her homepage. We
can use Widgets to create that portal we have only to drag and drop widgets on the page.
The user can set his Widgets on any where on the page where he has to get them.
Widgets are nothing but a page area that helps particular function to response. Widgets
example are address books, contact lists, RSS feeds, clocks, calendars, play lists, stock
tickers, weather reports, traffic reports, dictionaries, games and another such beautiful
things that we can not imagine. We can also say Web Parts in Share Point Portal. These
are one of Ajax-Powered.
57.Can you define what is SharePoint and some overview about this ?
SharePoint helps workers for creating powerful personalized interfaces only by dragging
and drop pre-defined Web Part Components. And these Web Parts components also helps
non programmers to get information which care and customize the appearance of Web
pages. To under stand it we take an example one Web Part might display a user's
information another might create a graph showing current employee status and a third
might show a list of Employees Salary. This is also possible that each functions has a link
to a video or audio presentation.So now Developers are unable to create these Web Part
components and make them available to SharePoint users.
58.What is different between WebUserControl and in WebCustomControl ?
Web user controls :- Web User Control is Easier to create and another thing is that its
support is limited for users who use a visual design tool one gud thing is that its contains
static layout one more thing a seprate copy is required for each application.
Web custom controls:-Web Custom Control is typical to create and gud for dynamic
layout and another thing is it have full tool support for user and a single copy of control is
required because it is placed in Global Assembly cache.
59.What is Sandbox in SQL server and explain permission level in Sql Server ?
Sandbox is place where we run trused program or script which is created from the third
party. There are three type of Sandbox where user code run.
Safe Access Sandbox:-Here we can only create stored
procedure,triggers,functions,datatypes etc.But we doesnot have acess memory ,disk etc.
External Access Sandbox:-We cn access File systems outside the box. We can not play
with threading,memory allocation etc.
Unsafe Access Sandbox:-Here we can write unreliable and unsafe code.
60.How many types of cookies are there in .NET ?
Two
a) single valued eg request.cookies(”UserName”).value=”dotnetquestion”
b)Multivalued cookies. These are used in the way collections are used example
request.cookies(”CookiName”)(”UserName”)=”dotnetquestionMahesh”
request.cookies(”CookiName”)(”UserID”)=”interview″
61.When we get Error 'HTTP 502 Proxy Error' ?
We get this error when we execute ASP.NET Web pages in Visual Web Developer Web
server, because the URL randomly select port number and proxy servers did not
recognize the URL and return this error. To resolve this problem we have to change
settings in Internet Explorer to bypass the proxy server for local addresses, so that the
request is not sent to the proxy.
62.What is Finalizer in .NET define Dispose and Finalize ?
We can say that Finalizer are the methods that's helps in cleanp the code that is executed
before object is garbage collected .The process is called finalization . There are two
methods of finalizer Dispose and Finalize .There is little diffrenet between two of this
method .
When we call Dispose method is realse all the resources hold by an object as well as all
the resorces hold by the parent object.When we call Dispose method it clean managed as
well as unmanaged resources.
Finalize methd also cleans resources but finalize call dispose clears only the unmanged
resources because in finalization the garbase collecter clears all the object hold by
managed code so finalization fails to prevent thos one of methd is used that is:
GC.SuppressFinalize.
63.Define SMTPclient class in DotNet framework class libarary ?
Each classes in dotnet framework inclue some properties,method and events.These
properties ,methods and events are member of a class.SMTPclient class mainly concern
with sending mail.This class contain the folling member.
Properties:-
Host:-The name or IP address of email server.
Port:-Port that is use when sending mail.
Methods:-
Send:-Enables us to send email synchronously.
SendAsynchronous:-Enables us to send an email asynchronously.
Event:-
SendCompleted:-This event raised when an asynchronous send opertion completes.
64.What do you mean by Share Point Portal ?
Here I have taken information regarding Share Point Portal Server 2003 provides mainly
access to the crucial business information and applications.With the help of Share Point
Server we can server information between Public Folders, Data Bases, File Servers and
the websites that are based on Windows server 2003. This Share Point Portal is integrated
with MSAccess and Windows servers,So we can get a Wide range of document
management functionality. We can also create a full featured portal with readymade
navigation and structure.
65.What is cross page posting in ASP.NET2.0 ?
When we have to post data from one page to another in application we used
server.transfer method but in this the URL remains the same but in cross page posting
there is little different there is normal post back is done but in target page we can access
values of server control in the source page.This is quite simple we have to only set the
PostBackUrl property of Button,LinkButton or imagebutton which specifies the target
page.In target page we can access the PreviousPage property.And we have to use the
@PreviousPageType directive.We can access control of PreviousPage by using the
findcontrol method.When we set the PostBackURL property ASP.NET framework bind
the HTML and Javascript function automatically.
66.What do you mean by CodeDom ?
In a simple language CodeDom is an object model which display or represent source
code.CodeDom is specially designed for language independent. And the method is quite
simple when we create CodeDom for a program we can generate the source code in
any .NET language.
67.Difference between System exceptions and Application exceptions ?
In ASP.NET all exception derives from Exception which is Base class. Exceptions can be
generated programmatically or can be generated by system. Application Exception serves
as the base class for all applicationspecific exception classes. It derives from Exception
but does not provide any extended functionality. You should derive your custom
application exceptions from Application Exception. Application exception is used when
we want to define user defined exception, while system exception is all which is defined
by .NET.
68.What is the difference between Shadowing and overriding ?
Overriding redefines only the implementation while shadowing redefines the whole
element.On the other side In overriding derived classes can refer the parent class element
by using “ME” keyword, but in shadowing you can access it by “MYBASE”.
69.What is the use of App_Code folder in asp.net ?
Its name helps us to understand what is this in another way we can say that its
automatically accessible in the application. App_Code Folder store classes, typed data
set, text files, Reports etc. If we don’t have this folder in web application we can add this
folder. One of more significant feature of this is a single dll is created of this folder. If we
have two different language classes in this folder then we have to create two folder one
for one language.
70.What is diffrence between Debug and Trace class ?
Debug Class helps to set methods and properties that helps in debugging code. If we use
methods in Debug class for print debugging information and checking our logic with
cases, we can make our code more robust without impacting the performance and code
size. On the other side we use the properties and methods in the Trace class to release
builds and instrumentation allows us to monitor the condition of our application running
in real-life settings. Tracing helps us to know problems and fix them without interact a
running system. Trace is enabled by default in visual 2005. So code is generated for all
trace methods in both release and debug builds.
71.What do you mean by Web Part Control in asp.net ?
ASP.NET Web Parts controls are the integrated controls which helps in creation of Web
sites that also help users to modify the content as well as appearance, and behavior of
pages of web sites that are open in browser.
72.What changes are done in IIS 6.0 over IIS 5.0 ?
IIS makes easy to get information.IIS 6.0 is the next latest of web server available in
Windows Server 2003 platform. IIS 6.0 contains several enhancements over IIS 5.0 that
are mainly to increase reliability, manageability, scalability, and security. IIS 6.0 is a key
component of the Windows Server 2003 application platform, using which you can
develop and deploy high performance ASP.NET Web applications, and XML Web
Services.
73.Com Marshler function in .NET ?
Com Marshler is useful component of CLR.Main work of marshal data between
Managed and Unmanaged environment .It helps in representation of data accross
diffrenet execution enviroment.Its also convert data format between manage and
unmanaged code.By the helps of Com Marshlar CLR allows manage code to interoperate
with unmanaged code.
74.How Visual SourceSafe helps Us ?
One of the powerful tool provided by Microsoft to keep up-to-date of files system its
keeps records of file history once we add files to source safe it can be add to database and
the changes ade by diffrenet user to this files are maintained in database from that we can
get the older version of files to.This also helps in sharing,merging of files.
75.What is main difference between GridLayout and FormLayout ?
GridLayout helps in providing absolute positioning of every control placed on the page.It
is easier to devlop page with absolute positioning because control can be placed any
where according to our requirement.But FormLayout is little different only experience
Web Devloper used this one reason is it is helpful for wider range browser.If there is
absolute positioning we can notice that there are number of DIV tags.But in FormLayout
whole work are done through the tables.
76.What is the purpose of IIS ?
We can call IIS(Internet Information Services) a powerful Web server that helps us
creating highly reliable, scalable and manageable infrastructure for Web application
which runs on Windows Server 2003. IIS helps development center and increase Web
site and application availability while lowering system administration costs. It also runs
on Windows NT/2000 platforms and also for above versions. With IIS, Microsoft
includes a set of programs for building and administering Web sites, a search engine, and
support for writing Web-based applications that access database. IIS also called http
server since it process the http request and gets http response.
77.How to start Outlook,NotePad file in AsP.NET with code ?
Here is the syntax to open outlook or notepad file in ASP.NET VB.NET
Process.Start("Notepad.exe") Process.Start("msimn.exe"); C#.NET
System.Diagnostics.Process.Start("msimn.exe");
System.Diagnostics.Process.Start("Notepad.exe");
78.What you thing about the WebPortal ?
Web portal is nothing but a page that allows a user to customize his/her homepage. We
can use Widgets to create that portal we have only to drag and drop widgets on the page.
The user can set his Widgets on any where on the page where he has to get them.
Widgets are nothing but a page area that helps particular function to response. Widgets
example are address books, contact lists, RSS feeds, clocks, calendars, play lists, stock
tickers, weather reports, traffic reports, dictionaries, games and another such beautiful
things that we can not imagine. We can also say Web Parts in Share Point Portal. These
are one of Ajax-Powered.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy