Products

Solutions

Learn More

Partners

Community

Blog

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameHow to pass values to a formHow to pass values to a form
Previous
 
Next
New Post
7/30/2010 5:48 AM
 
Hi,
I use Dnn 5.4.4 and Iframe 4.4.0. I'm "iframing" the home page of site1 into a page of site2. I've created 2 user custom properties for portal site2. For each user I've filled these 2 value.
I need to pass these values to 2 textboxes prensent on site1 home page. The homepage's html form code is:

<form name="Form1" method="post" action="homepage.aspx" id="Form1">
    <input type="hidden" name="__VIEWSTATE" value="dDw5MzI3NDg5ODM7Oz5xzH1yQXzatvNi/TEHW8N8OzMo+Q==" />
        <input type="submit" name="Button1" value="Enter" id="Button1" />
        <input name="TextBox1" type="text" id="TextBox1" />
        <input name="TextBox2" type="password" id="TextBox2" />
</form>

How to properly configure queryparameter in order to to pass values to the form? Can I let the textbox appear filled as user loads the page with iframe module?
Thank you!
 
New Post
7/30/2010 10:27 AM
 
To do this, you will need to take several steps:

1. Set up two QueryString Parameters inside IFrame Options screen - set them to Customer Property, and add your customer property name on the right and the name you want to be used in query string on the left.

2. On the IFrame'd home page, you'll need to add some code (either on server side or on client side - whatever is your preference) to read those two parameters from QueryString and to populate the corresponding textboxes.

Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
7/30/2010 11:03 AM
 
Great!
May I ask a few more details about second step? What code to add?
Many Thanks
 
New Post
7/30/2010 11:49 AM
 
Sure. In ASP.NET, for example, in Page_Load event, you can add something like this:

txtMyFirstTextbox.Text = Request.QueryString("my_first_param")
txtMySecondTextbox.Text = Request.QueryString("my_second_param")

Just make sure to test for nulls.

Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
4/4/2012 7:07 AM
 

Hi.

I'm not founding where the 'IFrame Options screen' is, can someone tell me? 


Thanks

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameHow to pass values to a formHow to pass values to a form


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out