English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

in my database (access) the images of products are saved as ole objects and desciptions are also ole object(word doc)...i need to know how to get this into the datagrid...can someone please help me with this?? am using access and asp.net

2006-08-02 01:51:57 · 1 answers · asked by braich_gal 3 in Computers & Internet Programming & Design

sub page_load(sender as object, e as eventargs)
Dim conn as OleDbConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= C:\Inetpub\wwwroot\mainpage\double module\Online Sales and Inventory.mdb")
Dim comm as OleDbCommand = new OleDbCommand("SELECT * FROM BooksInfo Where Author = Isabel Allende")

Dim ds as new dataset

DataGrid1.dataSource=ds.Tables("BooksInfo")
DataGrid1.databind()
end sub

when i run..the datagrid does not show

2006-08-02 01:52:48 · update #1

1 answers

Create thumbnile images of the Products (Images of smaller size)
Use LOB features of your database to store images directly in the database.
On the Data Grid, dynamically align Image Control for each record. You can create an Image control array - same length as number of records shown in Data Grid. Refresh it as you move in grid.

2006-08-02 01:59:52 · answer #1 · answered by Indian_Male 4 · 1 1

fedest.com, questions and answers