How to obtain a relative path of a file inside a Web Part?

Highlighted
Contributor

I have developed a SharePoint Web Part. This element is composed by an iframe where I need to load several pages depend on different values and conditions.

For instance, I have this files

  • file1.html
  • file2.html
  • file3.html

And I need to pass the path of one of this elements to this iframe


Where can I put this files inside  my Web Part and How can I retrieve the right path of this elements?

Regards

0 Replies