473,395 Members | 1,556 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Javascript Popup from DataList

How can I have a popup-window appear from my DataList?

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

<TD>
<a href="javascript:var win =
window.open('/Popup/ShowPic.aspx?PicID={0}',null,'width=350,height=150 ');">
<asp:Image id=Image1 runat="server" ImageUrl='<%# "~/pics/" +
DataBinder.Eval(Container.DataItem, "PictureID") + ".gif" %>'>
</asp:Image>
</a>
</TD>
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
1 3297
Why you don't try in this way......

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
2
by: Ravikanth[MVP] | last post by:
Hi Check whether textbox control name is 'txtDischargeDate' or it contains automatically generated id? HTH Ravikanth >-----Original Message-----
1
by: Nevyn Twyll | last post by:
I have a DataList; in the DataList's , I have a LinkButton and a few listboxes. When the LinkButton is pressed, I need to get the ID of the selected item in one of the Listbox controls. Then I...
1
by: Enric Choo via DotNetMonster.com | last post by:
i have read all the article and sample code about creating popup calendar in datagrid, but how about in datalist?do anyone know where can i find the complete code for creating popup calendar in...
0
by: Henrik | last post by:
How can I have a popup-window appear from my DataList? I'm looking for something like this within the DataList: <TD> <a href="javascript:var win =...
0
by: progmr | last post by:
Hi, I got a problem in this page: http://asphere.aspdotnet.sk/test/list.aspx When I click on "Update" a link to change the date appears, but doesn't work. Can anyone suggest me how? Thanks in...
1
by: tshad | last post by:
I am trying to use a popup control extenter which works fine the following way where we have an object and a popcontrolextender objec that points to this object. <asp:ImageButton...
1
by: Peter | last post by:
ASP.NET 3.5 I am using HowerMenueExtender to do Balloon popups inside a DataList, and it works fine for static data, but I don't know how to display dynamic data, I don't know how/where to...
4
by: Peter | last post by:
I have a DataList and each item in the datalist has an imge, I want to change the datalist item image on the client side when user clicks a button. How would I do that with JavaScript, does anyone...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.