Setting column widths on the search results page

Mobile Search renders the search results page in a device-specific way. The maximum widths of the two columns on the search results page are set on the basis of the device's user agent string.

To specify the maximum column widths for a particular mobile device type, you must add the device's user agent string to Web.Config.

See Adding a mobile device type to Mobile Search.

Mobile Search may not recognize the user agent string that it receives from a mobile device. In this case it uses the default maximum column widths that are specified in the Mobile Search configuration file Web.Config.

Table: Default maximum column widths describes the default maximum column width settings.

Table: Default maximum column widths

Setting

Default

Description

Column1DefWidth

20

Default maximum width in characters of column 1 on the search results page.

Valid range: 10 to 100.

Column2DefWidth

30

Default maximum width in characters of column 2 on the search results page.

Valid range: 10 to 100.

To set the default maximum column widths

  1. In Web.Config, find the <appSettings> section.

  2. In the <appSettings> section, find the following lines:

    <add key="Column1DefWidth" value="maximum_number_of_characters"></add>

    <add key="Column2DefWidth" value="maximum_number_of_characters"></add>

  3. In each line, replace the current value for the maximum number of characters with the value you require.

  4. Save and close Web.Config.

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.