Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I want to read the value or hash from the settings of a webpart. I have to use jQuery to get the value / hash.

Here is my option entry from the .cs file:

    [Category("Wiki-Inhaltsverzeichnis Einstellungen"),
    WebBrowsable,
    Personalizable(PersonalizationScope.Shared),
    WebDisplayName("angezeigte Ebenen")]
    public NumberOfLayers layer
    {
        get;
        set;
    }

and my NumberOfLayers.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WikiTableOfContents.TableOfContentsWebPart
{
    public enum NumberOfLayers
    {
        I,
        II,
        III,
        IV
    }
}

How can I put the value chosen in the webpart settings into a jQuery variable? The setting is shown and saved properly in the webpart settings.

I really appreciate your help!

Thank you.

Niels

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.