I’m using jquery for modal dialogs. I want to open model dialog from one page and to send some additional query string to modal dialog page. something like this:
<asp:HyperLink ID="hypClientSearch" runat="server" NavigateUrl="~/SomePage.aspx?KeepThis=true&additionalQS='<%= txtBox.Text %>'&TB_iframe=true&height=650&width=800&modal=true" CssClass="thickbox" >
This example doesn’t work. Does anyone know the solution?
In addition to Helgi’s answer.
If you want to get the value of the textbox using jQuery (for when you need to use other selectors then the id) you can use:
Edit
Oh I just noticed that your using modal. Then the page is opened in an iFrame, you can get the value from within the iFrame using:
Also if you need to send it to the server at the iFrame request try editing the href attribite of the link on click: