For ex: If the parent page has query strings Test1.aspx?a=1&b=2 then I want the src of Iframe as Test2.aspx?a=1&b=2.. When I click on the link in the Iframe I would like to copy the query string parameters to form fields on my parent page. . Definition and Usage . First lets cover some core basics used in this solution for people new to JavaScript and HTML. This attribute has the URL of the image. they're used to gather information about the pages you visit and how many clicks you need to accomplish a task. The requirement is to get fields from a related entity and pass to the iFrame (or web resource, I don't think it matters). What is IFrame ? According to your description ,for my experience you can create a function which is used to get the Url string in code behind with the RestId available ,then bind data to the src attribute of Iframe control by calling the function like this: Thanks Pavithra, but I need to pass from a related entity. Till now i got sucess to pass values but now problem is that how i pass this value into iframe src element. Last post Sep 03, 2007 06:20 AM by sameer choubey. – Jaganmohanreddy Jul 6 '14 at 9:33. Hi Mike, If it is the unique entity instance id that you want to get then you can use the ObjectId property of the form to get the value. Basically the whole thing perform 2 roundtrips. Actually i need to pass query string dynamically from search portlet to iframe portlet. So here comes the question how we can add dynamic value to your query string and use it in your app code. United States (English) You can add elements, update or delete them using JavaScript since it has access to HTML DOM. Name: userid --> This is the name of your new internal parameter Value: Pass through --> To pass through query strings Ok, I thought you want to pass the UserId of your current DNN user as parameterfor the IFrame url. A Query String is helpful when we want to transfer a value from one page to another. Thanks i n advance A Computer Science portal for geeks. Live Demo To set the content of an iframe without src, use the jQuery html() method. I am using the following code to get the value from textbox, on the button click it should be passed to the iframe src and replace the query:'*' with the variable passed, i.e. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions. We use analytics cookies to understand how you use our websites so we can make them better, e.g. Add the URL parameters to the link specified in src. I need to get that variable from the querystring of the page the IFrame is in. When you login to your account, your homepage welcomes yuo with your first & surname. Resources for IT Professionals Sign in. Apr 12, 2011 01:16 AM|Ming Xu - MSFT|LINK. Check the "pass record object-type code and unique identifier as parameter." Last post Apr 12, 2011 01:16 AM by Ming Xu - MSFT, I have a doubt in How to pass query string value in Irframe src, , . maybe you can post your markup? What is JavaScript ? I tried jQuery implementation it's working for me. To change the iframe src attribute, we will be using a select drop down menu, and a button element to activate the function that will change the src attribute. GitHub Gist: instantly share code, notes, and snippets. Ok, I thought you want to pass the UserId of your current DNN user as parameterfor the IFrame url. I am using frames on a website. the above is not working but if hardcode (see below ) Its working. You can try to run the following code to learn how to set the content of an iframe without src attribute − … 213. I am using lot of Iframes on my web page called Test1.aspx. This information is stored in the query string and is captured by the website when it reads the URL.