none
javascript set public property in code behind RRS feed

  • Question

  • Hi,

       I need set to public property from javascript function.

    Code-behind:

    private Int32 _id;
    public Int32 Id
    {
        set
        {
            _id = value;
            BindGrid();
        }
        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 asp.net, for this, I suggest that you could ask it to web related forum as:

    http://forums.asp.net/

    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