Friday, September 26, 2008

ASP.NET4

 10.     Server.Transfer V/s Response.Redirect

A:  Response.Redirect  simply  sends a  message down  to  the  browser,  telling  it  to  move  to

another        page.       So,        you       can      run,       

Response.Redirect(”WebForm2.aspx”)       or Response.Redirect(”http:99www.karlmoore.com9”) 

Server.Transfer  is similar  in that it  sends the  user to  another  page with  a statement  such 

as Server.Transfer(”WebForm2.aspx”).    But    transferring    to    another    page   conserves  

server resources. Instead of telling the browser to  redirect, it simply changes the ”focus” on the

Web server and transfers the request. This means you don’t get quite as many HTTP requests coming

through,  which  therefore  eases the  pressure on your  Web  server  and makes your  applications

run  faster.  But  remember,  you can’t  use Server.Transfer  to  send the  user to  an external 

site. Secondly,  Server.Transfer  maintains  the  original  URL  in  the  browser.  This  can 

really  help streamline data entry techniques, although it may make for confusion  when debugging.

 

That’s not all: The Server.Transfer method also has a second parameterH”preserveForm”. If you set  

this   to   True,  using  a  statement   such   as  Server.Transfer(”WebForm2.aspx”,  True),  the

existing   query  string   and  any  form   variables   will   still  be  available  to   the  page

 you  are transferring to. For example, if your WebForm1.aspx has a TextBox control called TextBox1

and you transferred to WebForm2.aspx with the preserveForm parameter set to True, you’d be able to 

   retrieve     the     value     of     the     original     page    TextBox     control     by   

 referencing Request.Form(”TextBox1”). 

Q: Introduction to .Net configuration (machine.config and other config files) Q: Session mangment

(Web.config’s Session State and cookie less session etc.) Q: Authentication and Authorization

(Forms, Windows a Passport Authentication and in depth Form Auth.) Q: Global.aspx

Q: Caching (cache attribute, fragment caching, cache object) Q: Value Type and Ref. Type (Boxing

and Un-boxing)

Q: Structure and classes, Difference? Q: Interface and classes, Difference?

Q: Class properties, methods and data members

Q: What the internal data member?

Q: What is difference between const and static readonly? Q: Overload and override

methods9properties?

Q: Abstract, virtual, override, new, sealed etc. keywords for method9property9class

Q: What is inheritance, abstraction etc. OOPs and real life example? Q: What is .Net framework,

CLR, class library, MSIL etc.

Q: What is assembly and how to create global assembly? Q: What are the objects of ADO.NET?

Q: What is difference between Reader and Dataset? Q: How to add relation in dataset’s 2 tables?

OOPs

 

12.What is object? What is class?

What are members? data, properties, methods, events

Access modifiers

Static members, static constructor

Overloading (parameters, return type etc. out) Constructors and distructor

Encapsulation (Data hinding)

through method or properties

Inheritance

Simple and multilevel inheritance

Interface and multiple inheritance

Polymorphism

virtual and override

method hiding with new key word abstract and sealed methods/classes 

13.When was .NET announced?

Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET ‘vision‘. The

July 2000 PDC had a number of sessions on .NET technology, and delegates were given CDs containing

a pre-release version of the .NET framework/SDK and Visual Studio.NET. 

14.When was the first version of .NET reLeased?

The final version of the 1.0 SDK and runtime was made publicly available around 6pm PST on

15-Jan-2002. At the same time, the final version of Visual Studio.NET was made available to

MSDN subscribers. 

15.What pLatforms do the .NET Framework run on?

The runtime supports Windows XP, Windows 2000, NT4 SP6a and Windows ME/98. Windows 95 is not

supported. Some parts of the framework do not work on all platforms - for example, ASP.NET is only

supported on Windows XP and Windows 2000. Windows 98/ME cannot be used for development.

IIS is not supported on Windows XP Home Edition, and so cannot be used to host ASP.NET.

However, the ASP.NET Web Matrix web server does run on XP Home.

The Mono project is attempting to implement the .NET framework on Linux. 

16.What is the CLR?

CLR 3 Common Language Runtime. The CLR is a set of standard resources that (in theory) any

.NET program can take advantage of, regardless of programming language. Robert Schmidt

(Microsoft) lists the following CLR resources in his MSDN PDC# article:

Object-oriented programming model (inheritance, polymorphism, exception handling, garbage

collection)

 Security model 

 Type system 

  ll  NET base classes 

 Many  NET framework classes 

 Development, debugging, and profiling tools 

 Execution and code management 

 IL-to-native translators and optimizers

What this means is that in the .NET world, different programming languages will be more equal

in capability than they have ever been before, although clearly not all languages will support all

CLR services.

No comments: