I want to get the width and height in px of my webpart, however, it shows an error as shown below.
An object reference is required for the non-static field, method, or property 'Microsoft.SharePoint.WebPartPages.WebPart.Width.get'
Do anyone know what how can i fix it?
my code:
string width= Microsoft.SharePoint.WebPartPages.WebPart.Width;