Thank you,
That approach was right on the money with a small client/server namespace issue that had to be resolved and the size post-rendering in the iframe. I am sure there may be a couple ways around this. But the solution derived from your guidence will be quite adaquate for now.
First, the ContentTemplate's iframe needed to be ran server-side so that the "src" attribute could be dynamically set. Therefore the resultant ContentTemplate's markup code is as follows:
Code: HTML/ASPX
<ContentTemplate>
<iframe id="dlg_frame" runat="server" frameborder="0"></iframe>
</ContentTemplate>
Naturally, since that control in the template executes on the server's side, the exposure to iframe ends up being nested in the ASP.NET namespacing convention. And as a result the client-side script on the dialog page that actually adjusts the frame needed to be generated dynamically at the page's server-side load event, like so: (note the ID for the dialog used within the control is "ReportOptionsDialog" and observe setting the "src" attribute)
Code: Visual Basic.NET
'...class instantiation
Private _ReportForm As String = "login.aspx"
'...page event region
Protected Sub Page_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles Me.Load
'some code before hand...
Dim crtl As Web.UI.HtmlGenericControl = _
Me.ReportOptionsDialog.ContentContainer.FindControl("dlg_frame")
ctrl.Attributes.Add("src", _ReportForm)
Me.Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), _
"Adjust-Dialog-Size-Function", _
"<script type='text/javascript'>" & vbCrLf & _
"function adjust_dialog_size(w, h) {" & vbCrLf & _
"var dlg_frame = document.getElementById('" & ctrl.ClientID & "');" & vbCrLf & _
"dlg_frame.style.width = w.toString() + 'px';" & vbCrLf & _
"dlg_frame.style.height = h.toString() + 'px';" & vbCrLf & _
"}" & vbCrLf & _
"</script>")
'some more code to finish the handler up...
End Sub
Lastly, when attempting to determine the frame's size post-rendering, I remembered that a similar issue will apply, when generating the frame contents on the server side. And noticed that the client-page's javascript resulted in height & width attributes of zero. But all was not a loss. We already have implanted the client script into the control page. and therefore, all that had to be done was call that parent function in the onload of the content page. like so...
Code: HTML/ASPX
<body onload="parent.adjust_dialog_size('280','180');">
So, that did the trick for now... I was hoping for something a little more dynamic, but all is not a loss. Especially considering, with this hurdle overcome, the control class (that contains the site-formatted dialog control) can be set aside, and the content pages retain the data for the frame they will be rendered in (even though it is static, it is still by design, in it's proper place).
Thank you pleanty for the insite & expertise...