Elmo try looking at this sample by Scott at:-
http://datawebcontrols.com/faqs/Hype...leQuerystringV
alues.shtml
or
http://datawebcontrols.com/faqs/Hype...nANewWindow.sh
tml
It should guide you
Hope that helps
Patrick
"Elmo Watson" <> wrote in message
news:...
> Ok - I've got a datalist - in the template, there is a hyperlink, in
which,
> I need to dynamically use the record's ID inside a Javascript function (a
> popup window function, which works perfectly with implicit ID)elps
>
> The problem I think, is where to put the single and double quotes - I get
a
> The server tag is not well formed
> error.
>
> Here's the last one that didn't work:
> <asp:Hyperlink id="hyLink"
> NavigateURL="Javascript:OpenIt('comments.aspx?id=< %#
> Container.DataItem("id")' %>)" Text="Comments" Runat="server" />
>
> as I said, the OpenIt function works fine, as long as there's no
dynamically
> generated id...
> I've tried removing the Outer double quotes from the NavigateURL property,
> along with several other combinations - but I still get the error.
>
> Any ideas?
>
>