code_junkie

Encoded character is used instead the correct one

Nov 13th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. <iframe scrolling="yes" runat="server" title="Par Selection" id="iFrame"
  2. frameborder="0" enableviewstate="true" width="100%" height="490" />
  3.  
  4. iFrame.Attributes.Add("src", String.Format(
  5. "https://www.parurval.se/urval/?username={0}&password={1}",
  6. parSettings.GetSettings(parSettings.SettingsType.PARSelection, parSettings.SectionType.Username),
  7. parSettings.GetSettings(parSettings.SettingsType.PARSelection, parSettings.SectionType.Password)));
  8.  
  9. <iframe id="tcMain_tabPARSelection_iFrame" scrolling="yes" title="Par Selection"
  10. frameborder="0" width="100%" height="490"
  11. src="https://www.parurval.se/urval/?username=myUsername&password=myPassword">
  12. </iframe>
  13.  
  14. ... src="https://www.parurval.se/urval/" ...
  15.  
  16. HttpUtility.HtmlEncode(String.Format("https://www.parurval.se/urval/?username={0}&password={1}",
  17. parSettings.GetSettings(parSettings.SettingsType.PARSelection, parSettings.SectionType.Username),
  18. parSettings.GetSettings(parSettings.SettingsType.PARSelection, parSettings.SectionType.Password)));
Add Comment
Please, Sign In to add comment