Set diffrent value for Sharepoint custom property of same web part in multiple diffrent pages -


i have visual web part , attempting set custom property unique value on each pages. example have 2 aspx pages. deal.aspx , fund.aspx. both page having same web part used. when set value custom property in web part of deal.aspx same value gets reflect in fund.aspx page web part well. read personalizationscope did not scenario. below custom property have created.

    public static string listname;     [category("extended settings"),     personalizable(personalizationscope.user),     webbrowsable(true),     webdisplayname("enter list name"),     webdescription("please enter list name")]      public string _listname     {         { return listname; }         set         {             // sample validation             regex oregex = new regex("[a-za-z]+");             if (!oregex.ismatch(value))                 throw new microsoft.sharepoint.webpartpages.                     webpartpageuserexception(                     "please enter alphabeth characters only");             listname = value;         }     } 

i highly appreciate help. thoughts ?

problem not in sharepoint or personalizationscope. works fine. problem in static property listname. static properties "shared" between instances of same class. webparts have same value there.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -