c# - Choosing 'Edit Web Part' is selecting the wrong instance of the web part -
c# - Choosing 'Edit Web Part' is selecting the wrong instance of the web part -
i've created custom web part , i've added 3 instances of same web part in page. if seek edit sec web part opening tool part 3rd web part.
in fact whatever web part edit opens tool part of instance of web part added in page in lastly (latest). if have added 10 web parts editing web part 1-9 opens tool part of 10th instance of web part.
any ideas?
ok, i've fixed it. uncertainty whether bug in sp 2010. in web part class commented oninit() method , worked. method -
/// <summary> /// init /// </summary> /// <param name="e"></param> protected override void oninit(eventargs e) { this.title = "my title"; }
any comments on this?
c# .net sharepoint sharepoint-2010 web-parts
Comments
Post a Comment