SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a web part that saves preferences to an external database because they are used by an outside program. One of the key fields for the preferences is the ID of the web part so each web part instance can have separate preferences. I didn't expose the ID of the web part in the editor so now I can see the ID in the database but I don't know to which web part instance it belongs.

Is there a way to find the ID of a web part without having to modify the code to expose it and redeploy the solution?

share|improve this question

See if you can use my answer from another similar question here on SPO

share|improve this answer
The link is no longer valid – devzero May 5 '15 at 7:53

I believe JQuey can help you to find the instance ID of every web part on the page. But how are you going to send the same to your external database without writing code?

Here is more on the JQuer library:

share|improve this answer
The existing code already knows the ID of the web part. I was hoping there was a way to find it administratively. – Kelly French Oct 1 '10 at 16:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.