1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / user control inheriting SimpleView, how to access property from javascript

user control inheriting SimpleView, how to access property from javascript

1 posts, 0 answered
  1. Mike L
    Mike L avatar
    5 posts
    Registered:
    22 Aug 2006
    16 Mar 2012
    Link to this post
    I have a control that inherits from SimpleView class, and have a string property defined as the following. I am wondering how I can access the value from the javascript in ascx page.

    in a normal user control or page i can use '<%= ServerUrl %>' to get the value

    thanks

    [Category("Server Url")]
            public string ServerUrl { get; set; }
1 posts, 0 answered