Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Microsoft Forefront UAG 2010 Administrator's Handbook

You're reading from  Microsoft Forefront UAG 2010 Administrator's Handbook

Product type Book
Published in Jan 2011
Publisher Packt
ISBN-13 9781849681629
Pages 484 pages
Edition 1st Edition
Languages
Concepts

Table of Contents (21) Chapters

Microsoft Forefront UAG 2010 Administrator's Handbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Planning Your Deployment 2. Installing UAG 3. UAG Building Blocks 4. Publishing Web Applications 5. Advanced Applications and Services 6. Authenticating and Controlling Access 7. Configuring UAG Clients 8. Endpoint Policies 9. Server Maintenance and Upkeep 10. Advanced Configuration 11. DirectAccess 12. Troubleshooting Introduction to RegEx RegEx Introduction to ASP Index

Putting the pieces together


Often, a program is comprised of several (sometimes hundreds or thousands) files that work together. This entails one file "calling" another, or redirecting to another. When a user enters the portal, for example, the file InitParams.aspx is read and executed, and it then redirects to the file InstallAndDetect.asp, which calls a bunch of JavaScript files like LoginTimeout.js, install.js, detection.js and more. Then, it redirects to Login.asp, which is the page in which the user has to feed in his authentication credentials. In the following examples, we see a script (left) that has four include commands, where each of the .inc files has more code that can be used by the primary script. By using .inc files, we can reuse the same code or content in multiple places. On the right piece of code, we see a script that ends with the command response.redirect, which tells the browser to request another file (/InternalSite/Validate.asp) and process it.

Depending on the way the code is written, this can be done automatically by the browser, or it can stop and wait for the user to do something (like the Login page).

If you are wondering about the JavaScript files we mentioned previously, then this is also a very common practice with ASP. ASP code runs on the server, and the data that gets sent to the client is just static HTML. Often, we may want some code to run on the client side too, and that's where JavaScript complements ASP. For example, you already know that UAG installs ActiveX controls as part of the endpoint client installation. The process of ActiveX installation needs to be done on the client side, and for that, a JavaScript function is used—it's contained in the script file Install.js, which we mentioned previously, and looks like this:

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}