N
news-server.maine.rr.com
Hi,
In a nutshell, how to pass query string parameters to a frameset page and
extract them using Request["param_name"] and then pass them to a frame src ?
I have the following situation, and this may be a FAQ but I have not found
the answer:
A list of accounts on one aspx page like this:
User A href="my_frameset.aspx?account_id=<%= iAccountId %>" ... which
repeats for an arrayList of accounts, generating a unique URL for each a
href link
On the Frameset page (my_frameset.aspx):
<frameset rows="25%,75%" id="AccountMemberFrameset"
name="AccountMemberFrameset" runat="server" >
<% int iAccountId = Convert.ToInt32(Request["account_id"]); %>
<frame runat="server" id="account_member_filter_frame"
name="account_member_filter_frame"
src="AccountMembersFilterFrame.aspx?account_id=<%=iAccountId%>" />
<frame runat="server" id="account_member_frame" name="account_member_frame"
src="AccountMembers.aspx" />
</frameset>
</html>
Now... when I call Request["account_id"] from the
AccountMembersFilterFrame.aspx the value I get back is "<%=iAccountId%>"
which indicates the frameset page is not "resolving" the value of
<%=iAccountId%>
Thanks for any tips.
Frank
In a nutshell, how to pass query string parameters to a frameset page and
extract them using Request["param_name"] and then pass them to a frame src ?
I have the following situation, and this may be a FAQ but I have not found
the answer:
A list of accounts on one aspx page like this:
User A href="my_frameset.aspx?account_id=<%= iAccountId %>" ... which
repeats for an arrayList of accounts, generating a unique URL for each a
href link
On the Frameset page (my_frameset.aspx):
<frameset rows="25%,75%" id="AccountMemberFrameset"
name="AccountMemberFrameset" runat="server" >
<% int iAccountId = Convert.ToInt32(Request["account_id"]); %>
<frame runat="server" id="account_member_filter_frame"
name="account_member_filter_frame"
src="AccountMembersFilterFrame.aspx?account_id=<%=iAccountId%>" />
<frame runat="server" id="account_member_frame" name="account_member_frame"
src="AccountMembers.aspx" />
</frameset>
</html>
Now... when I call Request["account_id"] from the
AccountMembersFilterFrame.aspx the value I get back is "<%=iAccountId%>"
which indicates the frameset page is not "resolving" the value of
<%=iAccountId%>
Thanks for any tips.
Frank