Here's my code behind on my IntakeUpload.aspx page (The page that's getting loaded into my iFrame)
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load Dim intIntakeID As Nullable(Of Integer) = CInt(Request.QueryString("intakeID")) If intIntakeID.HasValue Then lbIntakeID.Text = "No Intake ID found" Else lbIntakeID.Text = intIntakeID.ToString End If End Sub
[Big Monty]'s example pulls the parent page AS the iframe, and I don't think that's right. You need to pull the iframe, but call the querystring from the parent.
<iframe id="myIframe" src="http://myaspxapplication.com/myIframe.aspx?intakeID=<%=Request.Query
</iframe>
Per:
http://stackoverflow.com/questions/15918480/read-query-string-parameters-from-inside-iframe
http://www.codeproject.com/Questions/500140/AccessplusQueryStringplusToplusparantpluspage-cpl