473,398 Members | 2,368 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,398 software developers and data experts.

there is a problem about javascript and DataBinder that I can't solved finally.

I have a data list and bind it's datasource to a DataSet ,
about data item ,
I write a javascript that can open a custom window to show the page ,
but in dataitem ,I use this function ,
only get the '<% ',
the code in the aspx page like this ?
how can I use the javascript function in data item with databinder ?

<asp:datalist id="DL_ProductImg" runat="server" Height="106px"
RepeatColumns="2" Width="93%">
<ItemStyle HorizontalAlign="Left" Height="4px"></ItemStyle>
<ItemTemplate>
<a
onclick="open_itemwin('<%#DataBinder.Eval(Containe r.DataItem,ProductData.PRODUCTID_FIELD)%>')"
href="#" runat=server ID="A1">
<asp:Image ImageUrl='<%# "../images/ProductImg/"+
DataBinder.Eval(Container.DataItem,ProductData.IMG PATH_FIELD) %>' Text='<%#
DataBinder.Eval(Container.DataItem,ProductData.PNA ME_FIELD) %>' Height=50
Width=115 Runat=server ID="Image1"
NAME="Image1"></asp:Image></a>
</ItemTemplate>
</asp:datalist>

--
FireCrow Studio
Kylin Garden
QQ:462042991
MSN:Ga*******@hotmail.com
ICQ:156134382

Nov 19 '05 #1
0 874

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

Similar topics

1
by: Alan Silver | last post by:
Hello, I have a page in which I'm trying to give the user the chance to manipulate a list of items. These are the price variations for a product, so each item consists of a name (eg, small,...
3
by: Lyners | last post by:
I have a table within a cell of a datagrid. I am doing updates without postback to the server using Javascript. I have everything working, except referencing a table within the datagrid cell. ...
2
by: CharlesA | last post by:
hi folks, I'm using the .Net framework 1.1 with ASP.net and C#: this is what I'm trying to do... I've got a repeater template working that creates a hyperlink with a javascript function call...
19
by: Mary Pegg | last post by:
There's got to be a better way: if (isset($c)) echo $c."<br>"; if (isset($c)) echo $c."<br>"; if (isset($c)) echo $c."<br>"; if (isset($c)) echo $c."<br>"; if (isset($c)) echo $c."<br>"; but...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.