Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 13th, 2007, 05:46 AM
Authorized User
 
Join Date: Nov 2005
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dataview, Populate manually not automatically.

Hello,
I am trying to manually populate a Gridview. I can automatically populate it using the code below and it works 100%, but I have a problem. My gridview has an Imagefield. The problem is that I store images in the database using Base64String and that is not changable under any circumstances.

I know by using html and the 'base64' statement it is possible to display the image data, i've done it before.

I presume that there is not way for an Imageview to display a 'base64' saved image without converting it to an image first. Avery image is different.

Can anybody please help me. Any code would be greatful.

Thank you.


** AUTO LOAD DATAVIEW **

Con = New Data.OleDb.OleDbConnection("Provider=Microsoft.Jet .OleDb.4.0;data source=" & Database & "")
        Com = New Data.OleDb.OleDbCommand(SQl, Con)

        Adapter = New Data.OleDb.OleDbDataAdapter(Com)
        DataSet = New Data.DataSet
        Adapter.Fill(DataSet)

        GridView1.DataSource = DataSet
        GridView1.DataBind()
        Con.Close()

Simplicity is the key
__________________
Simplicity is the key





Similar Threads
Thread Thread Starter Forum Replies Last Post
manually populate from sqldatasource iinfoque ASP.NET 2.0 Basics 0 March 9th, 2007 03:44 AM
Asp manually edit ik Classic ASP Professional 8 August 24th, 2006 08:33 AM
Asp manually edit ik Classic ASP Professional 0 August 18th, 2006 03:44 AM
Sorting GridView manually pettrer ASP.NET 2.0 Basics 3 June 5th, 2006 10:51 AM
NTServices can't start manually samgoh Pro VB 6 0 August 25th, 2005 08:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.