Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

 

Russ

db_list_client-corp.zip

Posted

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...