ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
in database table is thier . in that table fields are 
photoid , photoname,photo... i want display image in the 
gridview
 Question Submitted By :: Nagaraj
I also faced this Question!!     Rank Answer Posted By  
 
  Re: in database table is thier . in that table fields are photoid , photoname,photo... i want display image in the gridview
Answer
# 1
pls post a mail to below mail id answer if any knows
 
Is This Answer Correct ?    0 Yes 0 No
Nagaraj
 
  Re: in database table is thier . in that table fields are photoid , photoname,photo... i want display image in the gridview
Answer
# 2
Use template column and put image as control in the 
itemTemplate
 
Is This Answer Correct ?    1 Yes 0 No
Deepika
 
 
 
  Re: in database table is thier . in that table fields are photoid , photoname,photo... i want display image in the gridview
Answer
# 3
initially while inserting image into database take the 
database field in oracle as BLOB in sql as image

during insertion convert the image file into bytes and 
insert it into the database

during the display of image in datagrid take a image 
template and display the converted values
sample code to get the image:
public byte[] spic(string cm,int id)
        {
            con = new OracleConnection(cm);
            OracleCommand cmd = new OracleCommand("select 
photo from kir_image where eid= "+id +" ", con);
            con.Open();
            byte[] img = (byte[])cmd.ExecuteScalar();
            con.Close();
            return img;
        }

use Response.BinaryWrite to display the image
 
Is This Answer Correct ?    0 Yes 0 No
.....
 
  Re: in database table is thier . in that table fields are photoid , photoname,photo... i want display image in the gridview
Answer
# 4
Using C#(Asp.net)
-------------
 <asp:TemplateColumn HeaderText ="Photo" >
      <ItemTemplate>
<asp:image
      
      </ItemTemplate>
     <asp:Image ID="udphoto" ImageUrl='<%#Eval("Photo")%>'
runat="server" />
      <HeaderStyle ForeColor ="blue" />
      </asp:TemplateColumn>

Using Vb.Net(Asp.net)
-------------
<asp:TemplateColumn HeaderText ="Photo" >
      <ItemTemplate>
<asp:image
      
      </ItemTemplate>
     <asp:Image ID="udphoto"
ImageUrl='<%#DataBinder.Eval(Container.DataItem,"Photo")%>'
runat="server" />
      <HeaderStyle ForeColor ="blue" />
      </asp:TemplateColumn>
 
Is This Answer Correct ?    0 Yes 0 No
Krishnasamy2008
[Natelsoft]
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
what is mean by framework?  2
In C#.net application is run on linux michine  3
What is an Interface and What is an Abstract Class?  3
What is the namespace used to store the information about the user?s locale?  1
For a server control, you need to have same properties like color maxlength, size, and allowed character throughout the application. How do you handle this? Microsoft2
what is pagination in asp.net ? Netsweeper1
What is web.config. How many web.config files can be allowed to use in an application ? Accenture8
Is overloading possible in web services? Microsoft2
How to kill session? Protech11
What is viewstate? Microsoft3
How to compare two strings with out Case sensitive ? Protech4
What is boxing and how it is done internally? Microsoft1
what is the dllhell? why we use the dllhell?  4
how to update data set? TCS3
What definition correctly defines a label server control with the name set to lblHoop? a) <asp:Label name=?lblHoop? runat=?server? /> b) <Label id=?lblHoop? runat=?server? /> c) <asp:Label id=?lblHoop? runat=?server? /> d) <server label name=?lblHoop? runat=?asp? /> Syntax-Softtech1
how to increase performance of web site? if there is a page with high load. the content is high then what should we do to increase performance? TCS2
In what order do the events of an ASPX page execute. As a developer, why is it important to understand these events? Syntax-Softtech5
What is the difference between Server.Transfer and Response.Redirect? Why would you choose one over the other? Syntax-Softtech24
Derive WSDL?  6
what is session ?how sessions are handeled in application? write the clauses of sql server in their order. Olive-Tech2
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com