javascript set public property in code behind RRS feed

  • Question

  • Hi,

       I need set to public property from javascript function.


    private Int32 _id;
    public Int32 Id
            _id = value;
        get { return _id; }

    aspx (not working):

    var <%= Id %> = 6;

    • Moved by Barry Wang Wednesday, February 18, 2015 1:49 AM
    Tuesday, February 17, 2015 7:42 PM

All replies

  • Hello Jone,

    It seems that you are developing with a web application with, for this, I suggest that you could ask it to web related forum as:

    The current forum you posted to is used to discuss and ask questions about the C# programming language, IDE, libraries, samples, and tools.

    Thanks for your understanding and support.

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, February 18, 2015 1:49 AM