Click here to Skip to main content
15,926,144 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMozilla firefox issue. Pin
Ridge Howison30-Jun-08 8:41
Ridge Howison30-Jun-08 8:41 
AnswerRe: Mozilla firefox issue. Pin
Christian Graus30-Jun-08 10:52
protectorChristian Graus30-Jun-08 10:52 
GeneralRe: Mozilla firefox issue. Pin
Ridge Howison30-Jun-08 11:46
Ridge Howison30-Jun-08 11:46 
GeneralRe: Mozilla firefox issue. Pin
Christian Graus30-Jun-08 12:30
protectorChristian Graus30-Jun-08 12:30 
AnswerRe: Mozilla firefox issue. Pin
Shog930-Jun-08 13:10
sitebuilderShog930-Jun-08 13:10 
Questionhow to open excel file Pin
mohit_p2230-Jun-08 8:38
mohit_p2230-Jun-08 8:38 
AnswerRe: how to open excel file Pin
Christian Graus30-Jun-08 10:53
protectorChristian Graus30-Jun-08 10:53 
Questionimage problem in datalist Pin
wajans30-Jun-08 7:48
wajans30-Jun-08 7:48 
Hi All

I am working since 2 days to display images in a datalist and the code used is given below, but its not displaying the images.
I am storing path of the image in database in imagepath coloumn. Kindly help me please.

html code
---------------

<aspataList ID="dlImage" runat="server" RepeatColumns="3" Width="311px" Height="334px">
<ItemTemplate>
<asp:ImageButton ID="imgPhotos" ImageUrl='<%#Eval("imagepath")%>' Height="100%" Width="100%" runat="server" />
</ItemTemplate>
</aspataList>


c# code
----------

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;


protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
cnOledb = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=" + strRootDir + "App_Data\\dbPhotos.mdb");
cnOledb.Open();
string strSelImages = "select imagepath from tblPhotos";
DataSet ds = new DataSet();
OleDbDataAdapter da = new OleDbDataAdapter(strSelImages, cnOledb);
da.Fill(ds);
dlImage.DataSource = ds.Tables[0];
dlImage.DataBind();
cnOledb.Close();
}

}

Thanks
wajid
AnswerRe: image problem in datalist Pin
Christian Graus30-Jun-08 11:27
protectorChristian Graus30-Jun-08 11:27 
GeneralRe: image problem in datalist Pin
wajans30-Jun-08 11:43
wajans30-Jun-08 11:43 
GeneralRe: image problem in datalist Pin
Christian Graus30-Jun-08 12:32
protectorChristian Graus30-Jun-08 12:32 
GeneralRe: image problem in datalist Pin
wajans1-Jul-08 6:06
wajans1-Jul-08 6:06 
AnswerRe: image problem in datalist Pin
wajans1-Jul-08 6:10
wajans1-Jul-08 6:10 
QuestionASP. Net AJAX, Response.Write, and PDF Pin
Ariel Kazeed30-Jun-08 3:19
Ariel Kazeed30-Jun-08 3:19 
AnswerRe: ASP. Net AJAX, Response.Write, and PDF Pin
Christian Graus30-Jun-08 10:54
protectorChristian Graus30-Jun-08 10:54 
QuestionSpellCheck Error Pin
rockram30-Jun-08 3:18
rockram30-Jun-08 3:18 
AnswerRe: SpellCheck Error Pin
Christian Graus30-Jun-08 11:00
protectorChristian Graus30-Jun-08 11:00 
QuestionAccess denied to folder in ASP.NET project either though I have granted all users full permissions !! Pin
truegilly30-Jun-08 2:48
truegilly30-Jun-08 2:48 
AnswerRe: Access denied to folder in ASP.NET project either though I have granted all users full permissions !! Pin
truegilly30-Jun-08 3:14
truegilly30-Jun-08 3:14 
Questionuser control Problem Pin
Ajeet mittal30-Jun-08 2:29
Ajeet mittal30-Jun-08 2:29 
AnswerRe: user control Problem Pin
eyeseetee30-Jun-08 2:45
eyeseetee30-Jun-08 2:45 
GeneralRe: user control Problem Pin
Ajeet mittal30-Jun-08 2:48
Ajeet mittal30-Jun-08 2:48 
GeneralRe: user control Problem Pin
eyeseetee30-Jun-08 3:03
eyeseetee30-Jun-08 3:03 
GeneralRe: user control Problem Pin
Gayani Devapriya30-Jun-08 6:01
Gayani Devapriya30-Jun-08 6:01 
GeneralRe: user control Problem Pin
Ajeet mittal1-Jul-08 1:51
Ajeet mittal1-Jul-08 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.