Need to Pass Dynamic src value to Iframe in ASPX Page
Posted on 2013-06-17
I have an ASPX page that loads from a selected hyperlink from another page which contains lists of customers.
It is passed a value (key1) which is retrieved by the Request.Querystring.
This is the DB key needed to run another ASPX page which is contained in an iframe.
<iframe id="ifrm1" runat=server src="CustomerPayments.aspx?key1=8" />
Hardcoding the src URL plus key parameter successfully launches the second ASPX page and lists the display in the iframe.
The problem I'm having is finding a good way to assign the iframe src parameter dynamically so the CustomerDisplay will show payments for any customer.
Does anyone have a easy suggestion?