Author: drl | Posted on: 4/28/2010 11:05:03 AM | Views : 878

I'm using the property Myval to prevent the dropdown listbox from resetting its value.
The problem is Myval  remains 0 into the 2nd call of the PreRender where it was set to 1 on the previous call.
Not sure why its doing this. Can you help?
 
public partial class HomePage : System.Web.UI.Page
{

    Print myval;
    public int Myval
    {
        get
        {
            return myval;
        }
        set
        {
            myval = value;
        }
    }
   
< ...

Go to the complete details ...