The library contains several parameter controls. You can use them as source of data for parametrized queries in Data Source controls, like the SqlDataSource, LinqDataSource etc.

UiCultureParameter

Gives name/code of curent UI culture (specified in settings or got from browser).
Use the SpecificationType property to specify which kind of culture identifier the control will return:
  • Name, ie. "čeština"
  • EnglishName, ie. "Czech"
  • TwoLetterISOLanguageName, ie. "cs"
  • ThreeLetterISOLanguageName, ie. "ces"
  • ThreeLetterWindowsLanguageName, ie. "CSY"

ProviderUserKeyParameter

Gives the ProviderUserKey of currently logged membership user. The type and value depends on the membership provider.
If the user is not logged in, DefaultValue is returned.

UserNameParameter

Gives user name of current user. If the user is not logged in, DefaultValue is returned.

SafeQueryStringParameter

Modified QueryStringParameter. If the value is not syntactically correct for given type, returns DefaultValue instead of throwing exception.

ContextItemParameter

Similar to standard SessionParameter, returns item from the HttpContext.Items collection. Key name is specified in ContextItemField property.

Last edited Sep 21, 2008 at 1:43 PM by altair, version 1

Comments

No comments yet.