Method | Description | |
---|---|---|
CleanNonWord ( string text ) : string |
Method to check whether input has other characters than numbers
|
|
GetCategoryName ( string categoryId ) : string |
Method to retrieve and cache category name by its ID
|
|
GetProductName ( string productId ) : string |
Method to retrieve and cache product name by its ID
|
|
InputText ( string text, int maxLength ) : string |
Method to make sure that user's inputs are not malicious
|
|
SearchRedirect ( string key ) : void |
Method to redirect user to search page
|
public static CleanNonWord ( string text ) : string | ||
text | string | |
return | string |
public static GetCategoryName ( string categoryId ) : string | ||
categoryId | string | Category id |
return | string |
public static GetProductName ( string productId ) : string | ||
productId | string | Product id |
return | string |
public static InputText ( string text, int maxLength ) : string | ||
text | string | User's Input |
maxLength | int | Maximum length of input |
return | string |
public static SearchRedirect ( string key ) : void | ||
key | string | Search keyword |
return | void |