.NET Mobile Web Developer's Guide

The following Frequently Asked Questions, answered by the authors of this book, are designed to both measure your understanding of the concepts presented in this chapter and to assist you with real-life implementation of these concepts. To have your questions about this chapter answered by the author, browse to www.syngress.com/solutions and click on the Ask the Author form.
| Q. | Can a page have a mix of .NET languages within it? | |
| A. | No, the page and the project it resides in should all be created within the same .NET language. However, referenced components used within the project can be of any .NET language. This is because all code gets compiled down to the same Microsoft Intermediate Language (MSIL). At this level, the code is all the same language. | |
| Q. | Is there a better or worse way for transferring control between pages? | |
| A. | Yes, two methods are available, depending on what is needed: Response.Redirect and Server.Transfer. The Response.Redirect actually has the page perform a redirect after essentially checking with the client s browser to make sure they really want to go somewhere else. The Server.Transfer will take you directly to the target without asking. The benefit is that there are less round trips to perform the same action. However, another difference is that Response.Redirect will allow you to pass QueryStrings, whereas Server.Transfer will not. So, unless you have a specific need to pass QueryStrings, I recommend the Server.Transfer method to reduce... |