Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NETMVC4
<% foreach (var item in Model) { %>
    <tr>
 
        <td style="background-color: #9966FF; width: 110px;">
 
            <%: Html.ActionLink("Modifier", "Edit", new { id=item.IdUser })
             %>
            <input type="image",,src="../../Image/edit-validated.png"  />
 

 
            <%: Html.ActionLink("Détails", "Details", new { id=item.IdUser })
             %>
            <input type="image",src="../../Image/6327_logos_icon.png" />
 

 
            <%: Html.ActionLink("Supprimer", "Delete", new { id=item.IdUser })
             %>
            <input type="image",src="../../Image/DeleteRed.png" />
 

        </td>
 

this structure is correcte??
the hyperlink Image does not display!!! and it does not work!!!!
Posted 9-Jan-13 23:04pm
loylmed374
Comments
Suvabrata Roy at 10-Jan-13 5:13am
   
this structure is correcte?? which structure ??
loylmed at 10-Jan-13 5:20am
   
in fact I want to know if the code is correct
loylmed at 10-Jan-13 5:20am
   
because the image does not display!!!

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

because the image does not display!!!
This might be because of the extra commas you put in Image control making it an invalid HTML markup.
<input type="image",,src="../../Image/edit-validated.png"  />
Correct all your images like:
<input type="image" src="../../Image/edit-validated.png"  />
See if thats what you were looking for.
  Permalink  
Comments
loylmed at 10-Jan-13 10:21am
   
must i do somthing in the file 'site.css' ????
Sandeep Mewara at 10-Jan-13 10:27am
   
Dude, see the difference in INPUT tag above. You have comma's present between type and src attributes - thats in correct. I did not speak of any CSS.
loylmed at 11-Jan-13 5:27am
   
yes i know thx,but the image is display in large!!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 397
1 OriginalGriff 350
2 thatraja 205
3 Emre Ataseven 165
4 Shai Vashdi 150
0 Sergey Alexandrovich Kryukov 8,894
1 OriginalGriff 5,200
2 Peter Leow 3,955
3 Maciej Los 3,535
4 Abhinav S 3,208


Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid