6

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?

1
  • Can you please share the jquery way of achieveing this? I have similiar need.
    – dm77
    Commented Dec 12, 2014 at 16:26

1 Answer 1

2

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.

2
  • Thanks, but it has to be client side only. I found a way to do this in JQuery. Commented Jul 5, 2013 at 20:05
  • 1
    @StevenSalgado I don't suppose you'd like to share how you did this using JQuery? Other users will no doubt find this useful to know.
    – Monomeeth
    Commented Aug 11, 2020 at 21:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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