







Create a link tag.
Namespace:
HttpServer.Helpers
Assembly:
HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static string Link( string url, string title, params string[] htmlAttributes ) |
Visual Basic (Declaration) |
---|
Public Shared Function Link ( _ url As String, _ title As String, _ ParamArray htmlAttributes As String() _ ) As String |
Visual C++ |
---|
public: static String^ Link( String^ url, String^ title, ... array<String^>^ htmlAttributes ) |
Parameters
- url
- Type: System..::.String
url to go to
- title
- Type: System..::.String
link title (text that is displayed)
- htmlAttributes
- Type: array<
System..::.String
>[]()[]
html attributes, name, value, name, value
Return Value
html code
Examples
WebHelper.Link("/user/show/1", "Show user", "id", "showUser", "onclick", "return confirm('Are you shure?');");