Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 125027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:05:37+00:00 2026-05-11T05:05:37+00:00

I have a little problem and I’m hopping that you can help me solve

  • 0

I have a little problem and I’m hopping that you can help me solve this annoying issue.

I need to use an iFrame in an administration panel to let users use the selection service, and in the HTML I have:

<iframe scrolling='yes' runat='server' title='Par Selection' id='iFrame'     frameborder='0' enableviewstate='true' width='100%' height='490' /> 

in my code-behind file I have:

iFrame.Attributes.Add('src', String.Format(             'https://www.parurval.se/urval/?username={0}&password={1}',             parSettings.GetSettings(parSettings.SettingsType.PARSelection, parSettings.SectionType.Username),             parSettings.GetSettings(parSettings.SettingsType.PARSelection, parSettings.SectionType.Password))); 

The output is this:

<iframe id='tcMain_tabPARSelection_iFrame' scrolling='yes' title='Par Selection'     frameborder='0' width='100%' height='490'     src='https://www.parurval.se/urval/?username=myUsername&amp;password=myPassword'> </iframe> 

Please note the &amp; instead & sign in the src address when passing username and password

How can I prevent this?

I tried with HttpUtility.Decode( myCompleteUrl ) but with the same achievement 🙁

The worst thing is, if the src code has only the address

... src='https://www.parurval.se/urval/' ... 

I’m not able to input the user/pwd, I see the form and I can enter text, but it does nothing, it only refreshes the iframe inner page, doing this in a full window, works fine.

And in that administration panel I have a textbox to the user add the username and password in order that entering the Administration page, I will jump directly to the service in the iFrame so the user does not need to enter user/pwd to login every time, that is way I’m trying to add those values dynamically.

Any ideas?

Added: If I put the correct URL address (with user and pwd) in the iFrame src attribute in the HTML side (not dynamically) all works fine 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:05:38+00:00Added an answer on May 11, 2026 at 5:05 am

    The presense of the &amp; is actually correct there. Most browsers are forgiving enough not to choke on just seeing & there, but it’s technically not correct.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little problem that perhaps you can help me with. I try
I have this little problem, that I cannot figure out which arguments to pass
I have little problem. I can't use AcceptVerb.Get on some ASP.NET MVC actions because
I have a little problem, I can't modify property of structure that is stored
Hey most of my issue has been solved but i have little problem This
I have a little problem that is troubling me. Can i connect to a
i have this little problem, i use the Application settings in VS 2010 to
I have a little problem that´s occurs in my computer, when I make deploy
I have a little problem. I have some text 23%, but I need some
I have a little problem with adding a subview to my UIKeyboard. I can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.