1. What is name space for xml in asp.net?
Ans: system.XML is name space in xml we use for providing libarary class so further functions and linked shared functions will be accpeted globally
2. What is the exact purpose of http handlers and interfaces?
Ans: httphandler: does the mapping of incoming URLs. This is the last part of the http request.
Ex: http://servername/project/trace.axd
( The trace.axd file is being requested by the user. The URL checks for httphandler section name in the web.config,
3.What is the difference between excute query and excute nonquery.?
Ans: ExecuteQuery from command Object
we can use the ExecuteNonQuery to perform catalog operations (Insert,Delete,Update)
ExecuteNonQuery does not return any rows, any output parameters or return values mapped to parameters are populated with data.
4. What do you mean by authentication and authorization?
Ans: Authorization is validating credentials
Authentication is validating user rights
5.What is the core difference between ASP and ASP.NET and why do you want to migrate?
Ans: There are many difference between asp and asp.net
In asp.net the programming approach used is Object oriented programming with which you can create scallable application seperating presentation layer from business logic.
asp.net provides build in security ,authentication nad authorization machinism.
asp.net provides better database programming access then asp using ado.net(which also provides disconnected data operations)
6. Which namespace is used for event log support?
Ans: using System.Diagnostics;
7.How to refresh the crystal report data from ASP.Net
Ans: Try to use following code :
<meta http-equiv="refresh" content="1">
within ur <head>.
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 way, you can refresh the inner page with just the report, while the main page remains.
The problem here would be that when the embedded page refreshes the browser,it would show the progress bar in the status bar and the whole page shows a flicker which is same as if the whole page (outside page) is refreshed. For that ,use refresh code and this in iframe header.
<meta HTTP-EQUIV="Page-Enter" CONTENT="revealtrans(duration=0.0)">
<meta HTTP-EQUIV="Page-Exit" CONTENT="revealtrans(duration=0.0)">
That way , we can get a smoother effect.
8. Explain the life cycle of an ASP .NET page.
Ans: Events in ASP.Net 1.1 & 2.0 :-
Application: BeginRequest
Application: PreAuthenticateRequest
Application: AuthenticateRequest
Application: PostAuthenticateRequest
Application: PreAuthorizeRequest
Application: AuthorizeRequest
Application: PostAuthorizeRequest
Application: PreResolveRequestCache
Application: ResolveRequestCache
Application: PostResolveRequestCache
Application: PreMapRequestHandler
Page: Construct
Application: PostMapRequestHandler
Application: PreAcquireRequestState
Application: AcquireRequestState
Application: PostAcquireRequestState
Application: PreRequestHandlerExecute
Page: AddParsedSubObject
Page: CreateControlCollection
Page: AddedControl
Page: AddParsedSubObject
Page: AddedControl
Page: ResolveAdapter
Page: DeterminePostBackMode
Page: PreInit
Control: ResolveAdapter
Control: Init
Control: TrackViewState
Page: Init
Page: TrackViewState
Page: InitComplete
Page: LoadPageStateFromPersistenceMedium
Control: LoadViewState
Page: EnsureChildControls
Page: CreateChildControls
Page: PreLoad
Page: Load
Control: DataBind
Control: Load
Page: EnsureChildControls
Page: LoadComplete
Page: EnsureChildControls
Page: PreRender
Control: EnsureChildControls
Control: PreRender
Page: PreRenderComplete
Page: SaveViewState
Control: SaveViewState
Page: SaveViewState
Control: SaveViewState
Page: SavePageStateToPersistenceMedium
Page: SaveStateComplete
Page: CreateHtmlTextWriter
Page: RenderControl
Page: Render
Page: RenderChildren
Control: RenderControl
Page: VerifyRenderingInServerForm
Page: CreateHtmlTextWriter
Control: Unload
Control: Dispose
Page: Unload
Page: Dispose
Application: PostRequestHandlerExecute
Application: PreReleaseRequestState
Application: ReleaseRequestState
Application: PostReleaseRequestState
Application: PreUpdateRequestCache
Application: UpdateRequestCache
Application: PostUpdateRequestCache
Application: EndRequest
Application: PreSendRequestHeaders
Application: PreSendRequestContent
9. How to validate xmlschema in xml document?
Ans: One can validate the XML document againest a given schema using the .Net class under the package System.Xml.Schema; like using XMLSchemaValidator and XmlSchema.
10.How to create a permenent cookie
Ans: The permanent cookie is created the same way the normal cookie is created. To create a permanent cookie you have to specify a date in the future. Like,oHeader.AddCookie('userid',lcID,'/wconnect','NEVER') where NEVER is converted to a date in future.
11.How will you load dynamic assembly? How will create assesblies at run time?
Ans: 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 Specification) compliant code that can be emitted in any of .Net languages. On the other hand, the System.Reflection.Emit library is used to generate the MSIL (Micrsoft Intermediate Language) code. Dot Net Reflection Emit allows us to construct assemblies, modules, types at runtime and define code inside these types.
12.How to update the data in dataset
Ans: The dataset can be considered as an in-memory cache of the data retrieved from the database.So the dataset consites of the tables, relationship and constraints.
To insert, update or delete the data in the database we use the sqlcommand
13.Difference between DataList and Repeater?
Ans: The Default format for repeater contol is normal formate, but in datalist control it is in table format.
14. plays any role in ado.net architecture?
Ans: xml basically used for data transfer la guage
15.What is the difference between inline coding & code behind.
Ans: Inline-HTML page coding<% page languge="c#" codebehind=".name....aspx.cs" AutoEventwireup="false" inherits="......."%>.
codebehind--we are using .aspx(.vb or .cs). mean languge coding side
16.What are the types of memory management?
Ans: Memory Management is a crucial role in every operating system. Memory management is there are many types such as 1. Storage memory Management 2. I/O Memory Management etc ..
17.What are web parts ?
Ans: Web Parts is a way of letting the user to customize the information that is available in our site this is a very interesting feature available in ASP 2.0 which brings a world of Web Parts controls like Web Parts Manager control, Web Part Zone, Catalog Zone to name a few....hope this info is useful.
18.How to show graphs in ASP .net ?graphs will be based on the database ?
Ans: We can use
System.Drawing;
System.Drawing.Drawing2D;
name spaces for drawing graphs based on data from databases in web pages
19.Which class builds insert,update,delete colums for automatically?
Ans: Command builder class
20.What is the satelite assembly?
Ans: Satellite assemblies are often used to deploy language-specific resources for an application. These language-specific assemblies work in side-by-side execution because the application has a separate product ID for each language and installs satellite assemblies in a language-specific subdirectory for each language. When uninstalling, the application removes only the satellite assemblies associated with a given language and .NET Framework version. No core .NET Framework files are removed unless the last language for that .NET Framework version is being removed
satellite assemblies are purely based on culture,these are loaded dynamically.