Τοποθετήσεις διαμόρφωσης για τις σελίδες ASP.NET και έλεγχοι με IIS 7.0
Οι εφαρμογές Ιστού που χρησιμοποιούν ASP.NET περιλαμβάνουν ιστοσελίδας για να παρέχουν το ενδιάμεσο με τον χρήστη και τους ελέγχους που παρέχουν πτώση-στη λειτουργία. Όπως με ASP, μπορείτε να βελτιστοποιήσετε τον τρόπο που ASP.NET χρησιμοποιείται μέσω ποικίλων τοποθετήσεων διαμόρφωσης. Μπορείτε επίσης να καταστήσετε την πρόσθετη λειτουργία διαθέσιμη με την καταχώρηση των τελωνειακών ελέγχων που οι εφαρμογές μπορούν να χρησιμοποιήσουν.
Καταχώρηση των τελωνειακών ελέγχων
Οι διοικούμενες εφαρμογές κώδικα μπορούν να χρησιμοποιήσουν οποιουσδήποτε τελωνειακούς ελέγχους που καταχωρούνται για τη χρήση με IIS. Σαν διοικητή, πιθανώς δεν θα πρέπει να εγκαταστήσετε τους ελέγχους, αλλά μπορεί να πρέπει να επικυρώσετε τις διαμορφώσεις ελέγχου. Να δει τους αυτήν την περίοδο καταχωρημένους ελέγχους, στο διευθυντή IIS, πλοηγεί στο επίπεδο της ιεραρχίας διαμόρφωσης που θέλετε να διαχειριστείτε, να πιέσετε δύο φορές το χαρακτηριστικό γνώρισμα σελίδων και ελέγχων, και έπειτα στο πλακάκι ενεργειών, να χτυπήσει τους ελέγχους καταλόγων. Στο κύριο πλακάκι, πρέπει έπειτα να δείτε έναν κατάλογο των αυτήν την περίοδο καταχωρημένων ελέγχων. Οι έλεγχοι απαριθμούνται από το πρόθεμα ετικεττών, τη σχετική πηγή ή τη συνέλευση, και τον τύπο εισόδων. Οι τοπικές καταχωρήσεις διαμορφώνονται στο επίπεδο που εργάζεστε με. Οι κληρονομημένες καταχωρήσεις διαμορφώνονται σε έναν υψηλότερου επιπέδου της ιεραρχίας διαμόρφωσης.
Μπορείτε να προσθέσετε έναν τελωνειακό έλεγχο με την ακολουθία αυτών των βημάτων:
1. Στο διευθυντή IIS, πλοηγήστε στο επίπεδο της ιεραρχίας διαμόρφωσης που θέλετε να διαχειριστείτε, να πιέσετε δύο φορές το χαρακτηριστικό γνώρισμα σελίδων και ελέγχων, και έπειτα, στο πλακάκι ενεργειών, να χτυπήσετε τους ελέγχους καταλόγων.
2. Στο διευθυντή IIS, στη σελίδα ελέγχων, ο κρότος προσθέτει τον τελωνειακό έλεγχο. Το add πλαίσιο διαλόγου τελωνειακού ελέγχου εμφανίζεται.
3. Στο παράθυρο κειμένου προθέματος ετικεττών, δακτυλογραφήστε το πρόθεμα ετικεττών που ορίζεται στον έλεγχο, όπως το aspx.
4. Στο παράθυρο κειμένου Namespace, δακτυλογραφήστε το ASP.NET namespace στο οποίο ο τύπος τελωνειακού ελέγχου καθορίζεται, όπως System.Web.UI.WebControls.WebParts.
5. Στο παράθυρο κειμένου συνελεύσεων, δακτυλογραφήστε τις λεπτομέρειες συνελεύσεων που συνδέονται με τον τελωνειακό έλεγχο. Αυτό περιλαμβάνει το κορυφαίο namespace του ελέγχου, την έκδοση, τον πολιτισμό, και οποιεσδήποτε πρόσθετες πληροφορίες που απαιτούνται για να καταχωρήσουν τη συνέλευση κατάλληλα, όπως το δημόσιο βασικό σημείο του. Κατόπιν χτυπήστε ΕΝΤΑΞΕΙ.
Μπορείτε να εκδώσετε τις καταχωρημένες καταχωρήσεις ελέγχου με τον κρότο της εισόδου ελέγχου που θέλετε να τροποποιήσετε και χτυπώντας έπειτα εκδώστε. Στο edit πλαίσιο διαλόγου τελωνειακού ελέγχου, τροποποιήστε τις τοποθετήσεις ανάλογα με τις ανάγκες, και χτυπήστε έπειτα ΕΝΤΑΞΕΙ για να σώσετε τις αλλαγές σας. Για να αφαιρέσετε μια είσοδο εγγραφής για έναν τελωνειακό έλεγχο που δεν απαιτείται πλέον, χτυπήστε την είσοδο ελέγχου που θέλετε να αφαιρέσετε, και να χτυπήσετε έπειτα αφαιρείτε. Όταν προτρέπεται για να επιβεβαιωθεί η δράση, να χτυπήσει ναι.
Τοποθετήσεις ASP.NET διαμόρφωσης για τις σελίδες και τους ελέγχους
You can modify the way ASP.NET is used by Web applications by using the configuration settings on the Pages And Controls page in IIS Manager. To access this page, navigate to the level of the configuration hierarchy you want to manage, and then double-click the Pages And Controls feature.
The below are the available ASP.NET settings for pages and controls. In the related server, site, or application Web.config file, you manage these settings by using the sessionState configuration section.
• Base Type for Pages (pageBaseType) - Sets the base type that .aspx pages inherit by default. The default value in most cases is System.Web.UI.Page. This value can be overridden by the Inherits attribute.
• Base Type for User Controls (userControlBaseType) - Sets the base type that user controls inherit by default. The default value in most cases is System.Web.UI.UserControl.
• Buffer (buffer) - Determines whether .aspx pages and .ascx controls use response buffering. The default setting is True. When True, IIS uses response buffering in much the same way as it uses response buffering for ASP.
• Compilation Mode (compilationMode) - Determines whether an ASP.NET page or control should be compiled at run time. The default is Always, which ensures that pages and controls are always compiled at run time. A value of Never specifies that pages and controls are not compiled and should be interpreted instead. A value of Auto allows IIS to compile pages and controls as necessary and otherwise set them to be interpreted.
• Enable Authenticated View State (enableViewStateMAC) - Determines whether ASP.NET should run a message authentication code (MAC) on the page's view state when the page is posted back from the client. The default setting is True.
• Enable Session State (enableSessionState) - Specifies whether and how IIS maintains session state information for ASP.NET applications. The default setting is True. When True, IIS maintains session state information for ASP.NET. Alternately, you can use a value of ReadOnly to have IIS maintain non-editable, read-only session state data. If you don't want IIS to maintain session state information for ASP.NET, configure this setting to False.
• Enable View State (enableViewState) - Determines whether the page maintains the view state and the view state of any server controls it contains when the current page request ends. The default setting is True.
• Master Page File (masterPageFile) - Sets an optional master page path relative to the local configuration file. This allows applications to reference locations in the master page path by name rather than full file path.
• Maximum Page State Field Length (maxPageStateFieldLength) - Sets the maximum number of characters for individual view state fields. When the value is greater than zero (0), IIS breaks the view state field into chunks that are less than the specified length. Clients receive this chunked view state as a series of view state fields rather than a single, possibly very long view state field. When the value is set to -1, IIS does not chunk the view state field and instead sends the entire value to the client in a single view state field.
• Namespaces (namespaces) - Specifies the namespaces included for all pages. IIS imports these namespaces during assembly pre-compilation. If you expand the Namespaces node, you'll see a list of namespaces that will be imported.
• Style Sheet Theme (styleSheetTheme) - Sets the optional name of the theme folder that IIS will use to apply a theme before control declarations. You can specify a theme to apply after control declaration by using the theme attribute.
• Theme (theme) - Sets the optional name for the theme that is used for pages that are in the scope of the configuration file. The specified theme must exist as either an application or a global theme. If the theme does not exist, IIS generates an HttpException exception.
• Validate Request (validateRequest) - Determines whether ASP.NET validates requests to screen for potentially dangerous or malicious input. The default setting is True, which causes ASP.NET to validate input from client browsers. Although you should rarely disable validation, you can do so by using a value of False.
You can configure the list of namespaces that IIS imports during assembly pre-compilation by completing the following steps:
1. To view currently configured Pages And Controls settings, in IIS Manager, navigate to the level of the configuration hierarchy you want to manage, and then double-click the Pages And Controls feature.
2. On the Pages And Controls page, expand the Namespaces node to display a list of namespaces that will be included during assembly pre-compilation.
3. If you click the Namespaces entry, IIS Manager displays a selection button on the far right side of the second column. Clicking this button displays the String Collection Editor dialog box, which you can use to edit the imported namespace values. Edit the namespace entries as necessary. Add additional namespaces by typing each additional namespace on a separate line.
4. When you are finished editing namespace values, click OK. In the Actions pane, apply the changes to the configuration by clicking Apply.
Written by magakos. Read more great feeds at is source WEBSITE
no comments.
Read more articles on IIS 7.0 and otherSoftware.
- [+] Digg: Feature this article
- [+] Del.icio.us: Bookmark this article
- [+] Furl: Bookmark this article















