gridview ImageField path

Hi experts,

I have a gridview question.

In my gridview i have one image field that looks like this:

            <asp:ImageField DataImageUrlField="IMAGE_PATH"
                DataImageUrlFormatString="images/{0}" HeaderText="document image">

In my Sql server in table1 I chave a column called IMAGE_PATH
and the value in the column looks like this:   picture1.jpg

So in my project, i have  a folder called images and that is where my few images are physically located.

So the above code shows my images in the gridview just fine.

My question is this:

What if instead I stored my images instead at some location on my c drive such as  C:\asp\images  instead of in a folder in my project.

So, In my Sql server in table1 I would have a column called IMAGE_PATH
and the values in the column would look like this:  


How would i write that in imy ImageField tag?  Can anyone help
I tried the following, but that didn't seem to work

            <asp:ImageField DataImageUrlField="IMAGE_PATH"
                DataImageUrlFormatString="C:\asp\images/{0}" HeaderText="document image">

Can anyone help?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Shaun KlineLead Software EngineerCommented:
Unless the c:\asp\images folder is a virtual directory for your project site, you will not be able to reference files in that manner. Your images folder must be a relative or absolute path for your web server.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.