Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 stackoverflow.com Dec 14 '12 at 8:55

1 Answer

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

Your Answer

 
discard

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