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

Is there a way to dynamically insert a variable in the <XMLLink> --variable here--</XMLLink> tag?

I'm trying to read an URL parameter which will contain the xml files path. What I am trying is to set up my webpart to bring in different xml files dynamically to the same site.

how to do it?

share|improve this question

migrated from Dec 14 '12 at 8:55

This question came from our site for professional and enthusiast programmers.

Can you please share the jquery way of achieveing this? I have similiar need. – Dheeraj Dec 12 '14 at 16:26

Are you doing this in C# server-side code? If so, this is really easy as the WebPart object itself exposes the XMLLink property.

Client side? No-go. The control renders in the server.

share|improve this answer
Thanks, but it has to be client side only. I found a way to do this in JQuery. – Steven Salgado Jul 5 '13 at 20:05

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.