I have a page called "Search.aspx" that includes a repeater control which has a link within the repeater. The link uses fancyzoom to popup a hidden div, the hidden div uses an iFrame to call "form.aspx".
I need to pass a value pulled from the DB using <%#Container.DataItem("hotelName")%> to the "form.aspx" in the iFrame.
Here's my code so far:
CODE BEHIND FOR SEARCH.ASPX
<a href='#<%#Container.DataItem("id")%>' OnClick="LinkButton1_Click">More Info</a>
CODE BEHIND FOR FORM.ASPX
Protected Sub LinkButton1_Command(ByVal sender As Object, ByVal e As CommandEventArgs)
Dim hotelName As String = Request.Form("hotelName")
'do I convert hotelName to a Private Querystring?
Can someone lead me in the right direction please. This mind boggling.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim hotelName As String = Request.QueryString("hotelName")