Framework / Presentation Layer / Graphics / Interactivity Style / URL Link

In This Topic
    URL Link
    In This Topic

    Every object that has an interactivity style can have an associated URL link attribute. URL link are used when the object is displayed in WebForm applications. The URL Link is represented by the NUrlLinkAttribute class. You assign a URL link to the object by creating an instance of this class and adding it to the InteractivityAttributes collection. For example:

    C#
    Copy Code
    NUrlLinkAttribute urlLinkAttribute = new NUrlLinkAttribute("http://www.nevron.com", false);
    someObject.InteractivityStyle.InteractivityAttributes.Add(urlLinkAttribute);
    
    Visual Basic
    Copy Code
    Dim urlLinkAttribute As New NUrlLinkAttribute("http://www.nevron.com", False)
    someObject.InteractivityStyle.InteractivityAttributes.Add(urlLinkAttribute)
    

    You can also use the UrlLink property of the NInteractivityStyle object:

    C#
    Copy Code
    someObject.InteractivityStyle.UrlLink = new NUrlLinkAttribute("http://www.nevron.com", false);
    
    Visual Basic
    Copy Code
    someObject.InteractivityStyle.UrlLink = New NUrlLinkAttribute("http://www.nevron.com", false)
    
    See Also