Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

2 Answers

See if you can use my answer from another similar question here on SPO http://www.sharepointoverflow.com/questions/4459/how-to-get-current-web-part-guid

share|improve this answer
add comment

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: http://spservices.codeplex.com/

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
add comment

Your Answer

 
discard

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.