Click here to Skip to main content
13,258,479 members (53,469 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have a search page, and My Page Url is ("search.aspx?id1=8"),
And I Use iFrame in This Page,
So my problem is, i am not able to access this id1 querystring in Iframe Page,

I Try This in IFrame Page: Int32 id1 = Convert.ToInt32(Request.QueryString["id1"]);
Posted 27-Nov-12 20:19pm
Updated 28-Nov-12 19:39pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can get the querystring of the parent page using javascript on your iframe page .
Please chk the link for your reference[^]
Arun1990 29-Nov-12 3:23am
I use Your Method:
But Now Problem is how i access this javascript Fuction in Aspx.cs page, and how assign this value to string variable, plz help me,

I want use it Like ::::
string new=getQueryString().name;
‫محم د‬‎ 19-Nov-14 1:15am
i dont want to acces parent queryString !
I want to acces iframe queryString
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

one of the method is .. you can call this function on page load & get value from this function & store that value in a input type=hidden variable .
You can access this hidden variable anywhere in your code.
Arun1990 29-Nov-12 5:23am
Thanks,abhi try kiya nahi hai par sayad ye kaam kar jayega
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Found the solution:

I could pass the parameter when calling the page in the source of the iframe...


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171114.1 | Last Updated 29 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100