Tag Info

Hot answers tagged

1

You cannot read directly from the webpart. But you can however write the values out in the control. Controls.Add(new LiteralControl(String.Format("<script type='javascript'>var customWebPartProperty1 = '{0}';</script>", myWebPart.CustomProperty1))); You can also write them to hidden fields in the webpart instead if that makes it easier.



Only top voted, non community-wiki answers of a minimum length are eligible