russgreen Posted August 30, 2003 Posted August 30, 2003 I'm trying to pass multiple arguements from one page to another in the URL. I'm using a hyperlink control inside a datalist and I'm trying to add the value that this HTML string would normally be able to get '<%# DataBinder.Eval(Container, "DataItem.ClientCorpID") %>' into the URL here:- db_project_bus-card.aspx?tbl=ClientCorp&ID= " some value to go here " How can I do this? My HTML currently looks like this:- <asp:HyperLink id="HyperLink1" runat="server" ForeColor="Blue" Font-Bold="True" Font-Names="Arial" Font-Size="Small" NavigateUrl="JAVASCRIPT:openPopWin('db_project_bus-card.aspx?tbl=ClientCorp&ID= " some value to go here " ', 400, 400)" Text='<%# DataBinder.Eval(Container, "DataItem.CompanyName") %>' ></asp:HyperLink> I also have another similar problem. I have a hyperlink control that gets its link value (an email address) from a dataset in a similar way but I want to add "mailto:" to the URL. I guessed it would be as below but it obviously doesn't work. Is this possible? <asp:HyperLink id="hplEml" runat="server" text='<%# DataBinder.Eval(Container, "DataItem.Email") %>' Font-Size="X-Small" Target="_blank" navigateURL="mailto:" + '<%# DataBinder.Eval(Container, "DataItem.Email") %>' BackColor="White" ></asp:HyperLink> Thanks in advance. Russdb_list_client-corp.zip Quote Learn Visual Studio .Net My Homepage
russgreen Posted August 30, 2003 Author Posted August 30, 2003 Ok, sort of worked it out with this <asp:HyperLink id="HyperLink1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CompanyName") %>' NavigateUrl='<%# "db_project_bus-card.aspx?tbl=ClientCorp&ID=" & Databinder.Eval (Container, "DataItem.ClientCorpID") %>' Font-Size="Small" Font-Names="Arial" Font-Bold="True" ForeColor="Blue"></asp:HyperLink> but cannot get by javascript to work. Quotes get closed early... Quote Learn Visual Studio .Net My Homepage
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.