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:
LINK
CODE BEHIND FOR SEARCH.ASPXCode:<a href='#<%#Container.DataItem("id")%>' OnClick="LinkButton1_Click">More Info</a>
CODE BEHIND FOR FORM.ASPXCode: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? End Sub
Can someone lead me in the right direction please. This mind boggling.Code:Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim hotelName As String = Request.QueryString("hotelName") End Sub
Thanks!




Bookmarks