Click here to Skip to main content
15,914,488 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Difference between Server.Transfer and Response.Redirect?
Difference between asp 2.0 and asp 4.0?

When i search in Google i got an idea, But i need to know the Exact Difference.


While Search in Google i didnt got an clear materials to study the basic of asp.net for improve my carrer.

So anyone guide me the website name to study the basic of asp.net 2.0,asp 4.0,c sharp and prepare for interview.
Posted
Updated 19-Dec-11 21:17pm
v6
Comments
Sergey Alexandrovich Kryukov 20-Dec-11 1:34am    
Voted 1 for the questions incorrect in their nature. I don't care if it was interview questions -- not a good reason to ask them. My advice is: preparing for interviews is useless. Just learn technology and development, in theory and practice, don't waste time.
--SA

There is many websites for finding the tutorials about C#.

You can prefer MSDN site. it is best.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-Dec-11 1:32am    
I'm tired of the lazy weak-minded who down-vote the best answers and accept those looking more comfortable to the lazy. Yes, this answer is the best so far; and the one who voted 1 is the idiot and looser. I voted 5 and don't want to add my own answer to it.

However, I want to note: the questions like "what's the difference between {0} and {1}" are incorrect! OP gets my 1.
--SA
Server.Transfer and Response.Redirect

Response.Redirect involves a roundtrip to the server whereas Server.Transfer conserves server resources by avoiding the roundtrip. It just changes the focus of the webserver to a different page and transfers the page processing to a different page.

Response.Redirect can be used for both .aspx and html pages whereas Server.Transfer can be used only for .aspx pages.
Response.Redirect can be used to redirect a user to an external websites. Server.Transfer can be used only on sites running on the same server. You cannot use Server.Transfer to redirect the user to a page running on a different server
Response.Redirect changes the url in the browser. So they can be bookmarked. Whereas Server.Transfer retains the original url in the browser. It just replaces the contents of the previous page with the new one.
And try these links


Basics of c#
Basics of asp.net
asp 2.0 vs asp 4.0
 
Share this answer
 
Suppose that you learn the answers to these questions and get to another interview. Then what? What if they don't ask these questions in that interview? What if they want to know about the page lifecycle, or how to minimize viewstate?

The problem with questions like this is that you are short changing yourself, and any potential future employer. Do you want to be a professional software developer? If you do, then you must learn the basics. Buy some books, try out the samples and really dig into what's going on underneath. There is no substitute for experience when you go for interviews - and if you have the basics mastered, then interviewers are more likely to forgive you if you don't understand the difference between two seemingly similar techniques (although in this case, it's pretty basic stuff).

Bottom line:

Buy some books and read them
Read online tutorials
Develop some websites

My hint for learning from books as well; read them once to get your head around things and then read them again when you have more experience with the coding - things in earlier chapters will appear that much easier because of this experience.
 
Share this answer
 
Comments
Prince Antony G 22-Dec-11 2:58am    
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900