Click here to Skip to main content
15,917,652 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: can we check that page is refresh using javascript Pin
yrishi26-Oct-09 20:32
yrishi26-Oct-09 20:32 
Questionunable to display the image in gridview Pin
vikas shukla22-Oct-09 3:50
vikas shukla22-Oct-09 3:50 
AnswerRe: unable to display the image in gridview Pin
Abhishek Sur22-Oct-09 4:54
professionalAbhishek Sur22-Oct-09 4:54 
AnswerRe: unable to display the image in gridview Pin
shashankbv22-Oct-09 4:57
shashankbv22-Oct-09 4:57 
AnswerRe: unable to display the image in gridview Pin
Abhijit Jana22-Oct-09 6:02
professionalAbhijit Jana22-Oct-09 6:02 
GeneralRe: unable to display the image in gridview Pin
vikas shukla22-Oct-09 19:15
vikas shukla22-Oct-09 19:15 
Questionproduct image Pin
vikas shukla22-Oct-09 2:58
vikas shukla22-Oct-09 2:58 
AnswerRe: product image Pin
Rob Branaghan22-Oct-09 5:52
Rob Branaghan22-Oct-09 5:52 
Hi Vikas,

I think you want to set the image url, so try this....

(Based on the idea that you have told the gridview to have a Template Field)

<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Product_Image") %>' />

So you would place it inside a template field like below.


<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
           DataSourceID="ObjectDataSource1">

           <Columns>

               <asp:TemplateField HeaderText="Product_Image" SortExpression="Product_Image">
                   <ItemTemplate>
                   <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Product_Image") %>' />

                   </ItemTemplate>

               </asp:TemplateField>
               <asp:BoundField DataField="ProductTitle" HeaderText="ProductTitle" SortExpression="ProductTitle" />
               <asp:BoundField DataField="ProductDesc" HeaderText="ProductDesc" SortExpression="ProductDesc" />

           </Columns>
       </asp:GridView>


I think this is what you might mean.

Hope it helps

Rob

.NET Developer @ FactoryMaster Ltd
"Software for TOUGH businesses"

AnswerRe: product image Pin
April Fans25-Oct-09 21:47
April Fans25-Oct-09 21:47 
QuestionRunning with 64 bit Pin
dptalt22-Oct-09 2:56
dptalt22-Oct-09 2:56 
AnswerRe: Running with 64 bit Pin
compninja2522-Oct-09 3:12
compninja2522-Oct-09 3:12 
QuestionMenus & Views Pin
sriharsha_1222-Oct-09 2:47
sriharsha_1222-Oct-09 2:47 
AnswerRe: Menus & Views Pin
April Fans25-Oct-09 21:44
April Fans25-Oct-09 21:44 
AnswerRe: Menus & Views Pin
sriharsha_1226-Oct-09 18:21
sriharsha_1226-Oct-09 18:21 
Questionproblem with IIS 6.0 Pin
shankbond22-Oct-09 2:47
shankbond22-Oct-09 2:47 
AnswerRe: problem with IIS 6.0 Pin
shashankbv22-Oct-09 5:06
shashankbv22-Oct-09 5:06 
Questionsliding menu Pin
hrishiS22-Oct-09 2:20
hrishiS22-Oct-09 2:20 
AnswerRe: sliding menu Pin
sashidhar22-Oct-09 2:30
sashidhar22-Oct-09 2:30 
GeneralRe: sliding menu Pin
hrishiS22-Oct-09 19:39
hrishiS22-Oct-09 19:39 
GeneralRe: sliding menu Pin
sashidhar22-Oct-09 19:44
sashidhar22-Oct-09 19:44 
GeneralRe: sliding menu Pin
hrishiS22-Oct-09 19:49
hrishiS22-Oct-09 19:49 
GeneralRe: sliding menu Pin
sashidhar22-Oct-09 20:01
sashidhar22-Oct-09 20:01 
GeneralRe: sliding menu Pin
hrishiS22-Oct-09 20:09
hrishiS22-Oct-09 20:09 
GeneralRe: sliding menu Pin
sashidhar22-Oct-09 20:37
sashidhar22-Oct-09 20:37 
QuestionSpeech To Text Converter Pin
sjs4u22-Oct-09 1:51
sjs4u22-Oct-09 1:51 

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.