Configuring Settings for ASP.NET Pages and Controls with IIS 7.0 إعدادات التشكيل لصفحات ASP.NET والضوابط مع IIS 7.0
Web applications that use ASP.NET include Web pages to provide the user interface and controls to provide drop-in functionality. تطبيقات الويب التي تستخدم صفحات الويب وتشمل ASP.NET لتوفير واجهة المستخدم وضوابط لتوفير وظائف في ترك الدراسة. As with ASP, you can optimize the way ASP.NET is used through a variety of configuration settings. وكما هو الحال بالنسبة لجمعية الدول الأطراف ، يمكنك أن الطريق الأمثل هو استخدام ASP.NET من خلال مجموعة متنوعة من إعدادات التهيئة. You can also make additional functionality available by registering custom controls that applications can use. يمكنك أيضا بذل المزيد من الوظائف المتاحة من خلال تسجيل عرف الضوابط التي يمكن استخدام التطبيقات.
Registering Custom Controls تسجيل عرف الضوابط
Managed code applications can use any custom controls that are registered for use with IIS. تمكن الشفرة تطبيقات يمكن استخدام أي عرف الضوابط التي سجلت للاستخدام مع IIS. As an administrator, you probably won't need to install controls, but you may need to validate control configurations. كمسؤول ، كنت على الارجح لن تحتاج لتركيب الضوابط ، ولكن قد تحتاج إلى مصادقة على السيطرة على التشكيلات. To view currently registered controls, in IIS Manager, navigate to the level of the configuration hierarchy you want to manage, double-click the Pages And Controls feature, and then in the Actions pane, click Register Controls. ونظرا لضوابط المسجلة حاليا ، في IIS مدير ، انتقل إلى مستوى من التسلسل الهرمي التكوين الذي تريد إدارتها ، انقر نقرا مزدوجا فوق صفحات وضوابط السمات ، وبعد ذلك في الإجراءات المتخذة لوحة ، انقر فوق السجل الضوابط. In the main pane, you should then see a list of the currently registered controls. في لوحة الرئيسية ، يجب أن ترى قائمة من الضوابط المسجلة حاليا. Controls are listed by tag prefix, associated source or assembly, and entry type. الضوابط وترد بها العلامة البادئة ، أو يرتبط بها من مصدر في التجمع ، ودخول نوع. Local entries are configured at the level you are working with. هي المدخلات المحلية تكوينها على مستوى العمل مع انك. Inherited entries are configured at a higher level of the configuration hierarchy. القيود الموروثة هي تهيئتها على مستوى أعلى من التشكيل التسلسل الهرمي.
You can add a custom control by following these steps: يمكنك إضافة العرف السيطرة باتباع الخطوات التالية :
1. In IIS Manager, navigate to the level of the configuration hierarchy you want to manage, double-click the Pages And Controls feature, and then, in the Actions pane, click Register Controls. في IIS مدير ، انتقل إلى مستوى من التسلسل الهرمي التكوين الذي تريد إدارتها ، انقر نقرا مزدوجا فوق صفحات وضوابط السمات ، وبعد ذلك ، في الإجراءات لوحة ، انقر فوق السجل الضوابط.
2. In IIS Manager, on the Controls Page, click Add Custom Control. في IIS مدير ، على التحكم في الصفحة ، انقر فوق إضافة الرقابة الجمركية. The Add Custom Control dialog box appears. إضافة مخصص لمراقبة يظهر مربع الحوار.
3. In the Tag Prefix text box, type the tag prefix assigned to the control, such as aspx. بادئة علامة في مربع النص ، اكتب العلامة البادئة المسندة إلى السيطرة ، مثل aspx.
4. In the Namespace text box, type the ASP.NET namespace in which the custom control type is defined, such as System.Web.UI.WebControls.WebParts. المجرد في مربع النص ، اكتب ASP.NET المجرد الذي عرف سيطرة نوع يعرف ، مثل System.Web.UI.WebControls.WebParts.
5. In the Assembly text box, type the assembly details associated with the custom control. الجمعية العامة في مربع النص ، نوع التجمع من التفاصيل المرتبطة السيطرة على العرف. This includes the control's top-level namespace, version, culture, and any additional information required to register the assembly properly, such as its public key token. ويشمل ذلك السيطرة على أعلى مستوى المجرد ، النسخة ، والثقافة ، وأية معلومات إضافية المطلوبة لتسجيل الجمعية العامة على النحو الصحيح ، مثل المفتاح العمومي رمزية. Then click OK. ثم انقر فوق موافق.
You can edit registered control entries by clicking the control entry you want to modify and then clicking Edit. يمكنك تعديل المسجلين السيطرة على مداخل بالنقر على مراقبة دخول تريد تعديل وثم النقر على تحرير. In the Edit Custom Control dialog box, modify the settings as necessary, and then click OK to save your changes. في تحرير مخصص لمراقبة مربع الحوار ، تعديل الإعدادات حسب الضرورة ، ثم انقر فوق موافق لحفظ التغييرات. To remove a registration entry for a custom control that is no longer needed, click the control entry you want to remove, and then click Remove. لازالة تسجيل دخول لمراقبة العرف هو أن لم تعد هناك حاجة ، انقر فوق مراقبة دخول تريد إزالته ، ثم انقر فوق إزالة. When prompted to confirm the action, click Yes. عندما دفعت لتأكيد العمل ، انقر فوق نعم.
Configuring ASP.NET Settings for Pages and Controls إعدادات التشكيل 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. يمكنك تعديل ASP.NET هي الطريقة التي تستخدمها تطبيقات الويب باستخدام إعدادات التهيئة على صفحات والضوابط في صفحة IIS مدير. 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. أدناه هي متاحة للصفحات ASP.NET إعدادات وضوابط. In the related server, site, or application Web.config file, you manage these settings by using the sessionState configuration section. في الخادم ذات الصلة ، الموقع ، أو تطبيق ملف Web.config ، كنت تدير هذه الإعدادات باستخدام sessionState التشكيل الباب.
• Base Type for Pages (pageBaseType) - Sets the base type that .aspx pages inherit by default. • قاعدة لنوع صفحات (pageBaseType) -- يضع قاعدة أن نوع. صفحات aspx يرث افتراضيا. The default value in most cases is System.Web.UI.Page. القيمة الافتراضية في معظم الحالات هو 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. • قاعدة للمستخدم التحكم في نوع (userControlBaseType) -- يضع قاعدة أن النوع المستخدم الضوابط وراثة افتراضيا. The default value in most cases is System.Web.UI.UserControl. القيمة الافتراضية في معظم الحالات هو System.Web.UI.UserControl.
• Buffer (buffer) - Determines whether .aspx pages and .ascx controls use response buffering. • سعة المخزن المؤقت (منطقة عازلة) -- تحديد ما إذا كانت. aspx صفحة و. ascx ضوابط استخدام استجابة الأوامر. The default setting is True. الإعداد الافتراضي هو الصحيح. When True, IIS uses response buffering in much the same way as it uses response buffering for ASP. عندما صحيح يستخدم IIS استجابة الأوامر في الكثير بنفس الطريقة التي تستخدمها في استجابة الأوامر لمكتب آسيا والمحيط الهادئ.
• Compilation Mode (compilationMode) - Determines whether an ASP.NET page or control should be compiled at run time. • تجميع الأسلوب (compilationMode) -- تقرر ما إذا كان صفحة ASP.NET أو السيطرة ينبغي تجميع في وقت تشغيل. 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. وهناك قيمة للسيارات ويسمح IIS لتجميع الصفحات والضوابط اللازمة وعلى خلاف مجموعة منهم إلى تفسير.
• 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. • تمكين صدق اعرض الدولة (enableViewStateMAC) -- تقرر ما إذا كان يجب أن يدير ASP.NET رسالة التوثيق قانون (ماك) على صفحة وجهة نظر الدولة عندما تكون الصفحة بعد العودة من العميل. The default setting is True. الإعداد الافتراضي هو الصحيح.
• Enable Session State (enableSessionState) - Specifies whether and how IIS maintains session state information for ASP.NET applications. • تمكين الدولة الدورة (enableSessionState) -- وكيف تحدد ما إذا كان IIS الدورة تحتفظ الدولة لASP.NET تطبيقات المعلومات. The default setting is True. الإعداد الافتراضي هو الصحيح. When True, IIS maintains session state information for ASP.NET. عندما صحيح ، IIS تقيم دورة المعلومات للدولة ASP.NET. Alternately, you can use a value of ReadOnly to have IIS maintain non-editable, read-only session state data. بالتناوب ، يمكنك استخدام قيمة للقراءة فقط لعدم الحفاظ على IIS للتحرير ، للقراءة فقط والخمسين للدولة البيانات. If you don't want IIS to maintain session state information for ASP.NET, configure this setting to False. إذا كنت لا تريد IIS للحفاظ على الدولة والخمسين لASP.NET المعلومات ، وتكوين هذا الإعداد لالكاذبة.
• 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. • تمكين الدولة اعرض (enableViewState) -- تحديد ما إذا كانت صفحة وتحتفظ رأي الدولة ورأي الدولة من أي خادم أنها تتضمن الضوابط عند طلب الصفحة الحالية تنتهي. The default setting is True. الإعداد الافتراضي هو الصحيح.
• Master Page File (masterPageFile) - Sets an optional master page path relative to the local configuration file. • ماجستير في ملف صفحة (masterPageFile) -- مجموعات اختياري طريق صفحة رئيسية بالنسبة لملفات المحلية. 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. • الحد الأقصى لطول الصفحة الدولة الميدانية (maxPageStateFieldLength) -- يحدد الحد الأقصى لعدد من الشخصيات الفردية ونظرا لدولة المجالات. When the value is greater than zero (0), IIS breaks the view state field into chunks that are less than the specified length. عند حساب قيمة أكبر من الصفر (0) ، IIS يخالف رأي الدولة في ميدان أجزاء التي هي أقل من المحددة طول. 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. عند حساب قيمة ومن المقرر -1 ، IIS قطعة لا رأي الدولة الميدان ويرسل بأسرها بدلا من القيمة إلى العميل في دولة واحدة بغية الميدان.
• Namespaces (namespaces) - Specifies the namespaces included for all pages. • Namespaces (namespaces) -- تحدد هيئة namespaces لتشمل كل الصفحات. IIS imports these namespaces during assembly pre-compilation. IIS واردات هذه namespaces خلال الجمعية العامة السابقة للتجميع. If you expand the Namespaces node, you'll see a list of namespaces that will be imported. إذا كنت Namespaces توسيع العقدة ، سترى قائمة من namespaces التي سيتم استيرادها.
• Style Sheet Theme (styleSheetTheme) - Sets the optional name of the theme folder that IIS will use to apply a theme before control declarations. • ورقة نمط الموضوع (styleSheetTheme) -- يحدد اختياري للموضوع اسم المجلد الذي سوف يستخدم IIS لتطبيق موضوع قبل السيطرة على الإعلانات. 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. وإذا كان الموضوع لا وجود له ، IIS يولد وهو HttpException استثناء.
• Validate Request (validateRequest) - Determines whether ASP.NET validates requests to screen for potentially dangerous or malicious input. • التحقق من صحة الطلب (validateRequest) -- تحديد ما إذا كانت صحة ASP.NET طلبات لالشاشة لتنطوي على خطر ، أو خبيثة المدخلات. The default setting is True, which causes ASP.NET to validate input from client browsers. الإعداد الافتراضي هو صحيح ، والأسباب التي ASP.NET للمصادقة على مدخلات من العملاء المتصفحات. 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: يمكنك تكوين قائمة namespaces أن IIS الواردات خلال التجمع قبل التجميع قبل استكمال الخطوات التالية :
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. ونظرا لتهيئتها حاليا إعدادات الصفحات والضوابط ، في IIS مدير ، انتقل إلى مستوى من التسلسل الهرمي التكوين الذي تريد إدارتها ، ثم انقر نقرا مزدوجا فوق الصفحات وميزة التحكم.
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. على صفحات صفحة وضوابط ، وتوسيع Namespaces العقدة لعرض قائمة من namespaces التي سيتضمنها خلال الجمعية العامة السابقة للتجميع.
3. If you click the Namespaces entry, IIS Manager displays a selection button on the far right side of the second column. إذا نقرت على دخول Namespaces ، مدير IIS اختيار زر يعرض الآن على الجانب الأيمن من العمود الثاني. 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. أضف إضافية namespaces بكتابة كل المجرد إضافية على سطر منفصل.
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. كتبها magakos. Read more great feeds at is source اقرأ المزيد العظيم هو مصدر في يغذي WEBSITE موقع
no comments لا تعليقات . .
Read more articles on اقرأ المزيد المواد المتعلقة IIS 7.0 IIS 7.0 and و otherSoftware otherSoftware . .
- [+] Digg [+] [ديغ] : Feature this article : ميزة هذه المادة
- [+] Del.icio.us [+] Del.icio.us : Bookmark this article : إشارة مرجعية في هذا مادة
- [+] Furl [+] [فورل] : Bookmark this article : إشارة مرجعية في هذا مادة















