mahdioo12194
چهارشنبه 12 تیر 1392, 17:05 عصر
سلام
چه جور می تونم به مقادیر درون دیتا لیست که به جدول بایند شده باشند با جاوا اسکریپت دسترسی داشته باشم؟ مثلا لیبل deslabel در زیر !
<asp:DataList ID="DataList1" runat="server"
DataKeyField="id" DataSourceID="SqlDataSource1"
RepeatColumns="4" RepeatDirection="Horizontal" BorderStyle="None"
CellPadding="0" Width="16px"
style="margin-right: 0px; margin-left: 113px;" Height="263px">
<ItemTemplate>
<table id="t" bgcolor="#CCFFFF" class="table"; cellpadding="0" cellspacing="0" dir="rtl"
frame="border" rules="none"
style="width: auto; height: auto; margin-left: 15px;">
<tr>
<td dir="ltr" class="style1">
pic:
<asp:Image ID="Image1" runat="server" Height="138px"
ImageUrl='<%# Eval("pic") %>' style="margin-left: 0px" Width="112px"
AlternateText="salam" />
</td>
</tr>
<tr>
<td class="style1">
des:
<asp:Label ID="desLabel" runat="server" Text='<%# Eval("des") %>' />
</td>
</tr>
چه جور می تونم به مقادیر درون دیتا لیست که به جدول بایند شده باشند با جاوا اسکریپت دسترسی داشته باشم؟ مثلا لیبل deslabel در زیر !
<asp:DataList ID="DataList1" runat="server"
DataKeyField="id" DataSourceID="SqlDataSource1"
RepeatColumns="4" RepeatDirection="Horizontal" BorderStyle="None"
CellPadding="0" Width="16px"
style="margin-right: 0px; margin-left: 113px;" Height="263px">
<ItemTemplate>
<table id="t" bgcolor="#CCFFFF" class="table"; cellpadding="0" cellspacing="0" dir="rtl"
frame="border" rules="none"
style="width: auto; height: auto; margin-left: 15px;">
<tr>
<td dir="ltr" class="style1">
pic:
<asp:Image ID="Image1" runat="server" Height="138px"
ImageUrl='<%# Eval("pic") %>' style="margin-left: 0px" Width="112px"
AlternateText="salam" />
</td>
</tr>
<tr>
<td class="style1">
des:
<asp:Label ID="desLabel" runat="server" Text='<%# Eval("des") %>' />
</td>
</tr>