G
George Durzi
I currently have an href inside of an asp:repeater
<a href='<%# String.Concat("PDFReader.aspx?id=",
DataBinder.Eval(Container.DataItem, "ProductUniqueId")) %>'
target="_blank">View</a>
Clicking View will open a new browser and load PDFReader.aspx
My client would like me to hide the address bar and toolbar on this new
window.
Here's what I was thinking:
1. Change the Href to an <asp:linkbutton>, something like this:
<asp:linkbutton id="lnkView" runat="server" text="View"/>
2. On the ItemCreated event of the Repeater
Add an onclick attribute to the linkbutton.
something like (pseudo code)
(linkbutton) repeater.findcontrol("lnkView").Attributes.Add("onclick",
"window.open("Product.aspx?id=", null,
"toolbar=no,menubar=no,location=no")");
my issue is, I need to append a querystring value to id= so the url I'm
going to is actually "Product.aspx?id=" + ProductUniqueId
How can I do this?
<a href='<%# String.Concat("PDFReader.aspx?id=",
DataBinder.Eval(Container.DataItem, "ProductUniqueId")) %>'
target="_blank">View</a>
Clicking View will open a new browser and load PDFReader.aspx
My client would like me to hide the address bar and toolbar on this new
window.
Here's what I was thinking:
1. Change the Href to an <asp:linkbutton>, something like this:
<asp:linkbutton id="lnkView" runat="server" text="View"/>
2. On the ItemCreated event of the Repeater
Add an onclick attribute to the linkbutton.
something like (pseudo code)
(linkbutton) repeater.findcontrol("lnkView").Attributes.Add("onclick",
"window.open("Product.aspx?id=", null,
"toolbar=no,menubar=no,location=no")");
my issue is, I need to append a querystring value to id= so the url I'm
going to is actually "Product.aspx?id=" + ProductUniqueId
How can I do this?