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

%3CLINGO-SUB%20id%3D%22lingo-sub-1462876%22%20slang%3D%22en-US%22%3EHow%20to%20obtain%20a%20relative%20path%20of%20a%20file%20inside%20a%20Web%20Part%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1462876%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20developed%20a%20SharePoint%20Web%20Part.%20This%20element%20is%20composed%20by%20an%20iframe%20where%20I%20need%20to%20load%20several%20pages%20depend%20on%20different%20values%20and%20conditions.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EFor%20instance%2C%20I%20have%20this%20files%3C%2FP%3E%3CUL%3E%3CLI%3Efile1.html%3C%2FLI%3E%3CLI%3Efile2.html%3C%2FLI%3E%3CLI%3Efile3.html%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EAnd%20I%20need%20to%20pass%20the%20path%20of%20one%20of%20this%20elements%20to%20this%20iframe%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EWhere%20can%20I%20put%20this%20files%20inside%26nbsp%3B%20my%20Web%20Part%20and%20How%20can%20I%20retrieve%20the%20right%20path%20of%20this%20elements%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E
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