By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,246 Members | 1,221 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,246 IT Pros & Developers. It's quick & easy.

Javascript Popup from DataList

P: n/a
How can I have a popup-window appear from my DataList?

I'm looking for something like this within the DataList:

<a href="javascript:var win ='/Popup/ShowPic.aspx?PicID={0}',null,'width=350,height=150 ');">
<asp:Image id=Image1 runat="server" ImageUrl='<%# "~/pics/" +
DataBinder.Eval(Container.DataItem, "PictureID") + ".gif" %>'>
The above example works with a DataGrid, but in my DataList the {0}
doesn't do the job.

Any help would be appreciated.
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply

P: 1
Why you don't try in this way......

<a href="javascript:var win ='\cardetails.aspx?LN=EN&CarID=<%# Databinder.Eval(Container.DataItem,"Pro_ID") %>',null,'width=750,height=550');">From Java</a>
Sep 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.