Click here to Skip to main content
15,884,388 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionbinding table data with img tag instead of image control in asp.net Pin
Member 79806753-Sep-11 7:12
Member 79806753-Sep-11 7:12 
AnswerRe: binding table data with img tag instead of image control in asp.net Pin
Elham M4-Sep-11 18:46
Elham M4-Sep-11 18:46 
GeneralRe: binding table data with img tag instead of image control in asp.net Pin
Member 79806755-Sep-11 8:07
Member 79806755-Sep-11 8:07 
AnswerRe: binding table data with img tag instead of image control in asp.net Pin
m@dhu4-Sep-11 19:13
m@dhu4-Sep-11 19:13 
GeneralRe: binding table data with img tag instead of image control in asp.net Pin
Member 79806755-Sep-11 8:08
Member 79806755-Sep-11 8:08 
GeneralRe: binding table data with img tag instead of image control in asp.net Pin
Ali Al Omairi(Abu AlHassan)6-Sep-11 1:32
professionalAli Al Omairi(Abu AlHassan)6-Sep-11 1:32 
GeneralRe: binding table data with img tag instead of image control in asp.net Pin
Member 79806757-Sep-11 10:19
Member 79806757-Sep-11 10:19 
GeneralRe: binding table data with img tag instead of image control in asp.net Pin
Ali Al Omairi(Abu AlHassan)7-Sep-11 21:20
professionalAli Al Omairi(Abu AlHassan)7-Sep-11 21:20 
I think that there is no differences between both case, because image src would be rendered in the same way.
What I think is you used image ids in the jquery selector. try this:

ASP.NET
<asp:DataList ID="DataList1" runat="server"
  RepeatDirection="Horizontal"
  RepeatColumns="4"
  CellPadding="5"
  CellSpacing="10"
>
    <ItemTemplate>
        <div>
        <p><img id="image1" runat="server" border="0" src='<%#Eval("image_name") %>' style="border-color:#FFCC01;border-style:outset;border-width:8px;" height="200" width="120" /><p>
        <br />
        </div>
    </ItemTemplate>
</asp:DataList>

<script type="text/javascript">
$(document).ready( function() {
  $("#<%= DataList1.ClientID %> img").animate();
});
</script>


We used the selector $("#<%= DataList1.ClientID %> img") beacase the markups would be renderer as

HTML
<table id="DataList1.ClientID">
<tr><td>
<img id="DataList1.ClientID_ctr100_Image1" ... />
</td> ... </tr>
...

</table>


Good luck Wink | ;)
Help people,so poeple can help you.

GeneralRe: binding table data with img tag instead of image control in asp.net Pin
Member 79806758-Sep-11 18:55
Member 79806758-Sep-11 18:55 
GeneralRe: binding table data with img tag instead of image control in asp.net Pin
Ali Al Omairi(Abu AlHassan)4-Sep-11 20:11
professionalAli Al Omairi(Abu AlHassan)4-Sep-11 20:11 
GeneralRe: binding table data with img tag instead of image control in asp.net Pin
Member 79806755-Sep-11 8:09
Member 79806755-Sep-11 8:09 
Questionproblem in palying video Pin
uspatel2-Sep-11 22:14
professionaluspatel2-Sep-11 22:14 
QuestionAdd to DataGridView Pin
Elham M2-Sep-11 19:06
Elham M2-Sep-11 19:06 
AnswerRe: Add to DataGridView Pin
koolprasad20032-Sep-11 21:17
professionalkoolprasad20032-Sep-11 21:17 
Questionsuggest privileges and permissions module. Pin
Moustafa Safwat2-Sep-11 8:19
Moustafa Safwat2-Sep-11 8:19 
AnswerRe: suggest privileges and permissions module. Pin
javadhelali5-Sep-11 18:42
javadhelali5-Sep-11 18:42 
Questioncustom controls and session object Pin
Professional manpreet1-Sep-11 23:43
Professional manpreet1-Sep-11 23:43 
AnswerRe: custom controls and session object Pin
koolprasad20032-Sep-11 21:28
professionalkoolprasad20032-Sep-11 21:28 
Questionhow to dir html text in rdlc report in correct format Pin
md_refay1-Sep-11 21:57
md_refay1-Sep-11 21:57 
AnswerRe: how to dir html text in rdlc report in correct format Pin
md_refay2-Sep-11 18:16
md_refay2-Sep-11 18:16 
Questionrepeate header doesn't repaet && no footer row Pin
md_refay1-Sep-11 21:56
md_refay1-Sep-11 21:56 
QuestionInvalid postback or callback argument. Pin
monu3646071-Sep-11 19:14
monu3646071-Sep-11 19:14 
QuestionHow to enabled the dialog box in toolbox in asp.net Pin
sathyan_82941-Sep-11 16:44
sathyan_82941-Sep-11 16:44 
Questionhttp 400 error when trying to upload an Excel spreadsheet with macros Pin
JimmyRopes1-Sep-11 3:07
professionalJimmyRopes1-Sep-11 3:07 
QuestionChange favicon doesn't work Pin
md_refay31-Aug-11 23:04
md_refay31-Aug-11 23:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.