Forum
smartDBforms.NET for ASP.NET 2
 
 
Knowledge Base Forum
To post messages on the forum, you need to login first.
SearchForum Home
  Product Forums  smartDBforms.NET  Edit images in ...
 Edit images in database not displayed
 
 10/18/2007 2:02:28 PM
Joel
4 posts


Edit images in database not displayed
hello,
I have a binary column which contains images. The column sql type is image. The database form shows only link to to download the image and upload file. I want the image to be displayed in the same way as at the following page in the demo - http://demo.adillis.com/default.aspx?s=CategoryDemo.
Is this possible?

Joel

 10/22/2007 12:00:55 PM
Adillis Support
27 posts
adillis.com


Re: Edit images in database not displayed
Hi Joel,

It appears that the automatic template selection has selected the FileFromDBTemplate.
The ImageFromDBTemplate template is displaying an image instead of a download link. Currently this template is automatically selected when the database column name contains either 'Picture' or 'Photo' in its name.

In your case you can select the template to be used explicitly by selecting the "ImageFromDBTemplate" template form the TemplateID property in the corresponding SmartDBControl smart-tag panel. In this case you are disabling the automatic template selection for this SmartDBControl.

You can also modify the template selection routine with your own rules on when to select ImageFromDBTemplate template. For more information see the Knowlege base article: HOWTO: Modify default template set

 10/22/2007 4:27:56 PM
Joel
4 posts


Re: Edit images in database not displayed
Hello,
The ImageFromDBTemplate setting fixed the issue. My image colums all contain the word "Image" in the column name, can you include this word also in the next release of smartforms?

Thanks,
J.
 10/23/2007 10:31:32 AM
Adillis Support
27 posts
adillis.com


Re: Edit images in database not displayed
Hi Joel,

You are right, the word "Image" is also a good candidate, it will be added in the next release 1.7

If you have any other questions, we will be more than happy to help you.
Best wishes,
Adillis Support
Adillis - IT solutions http://adillis.com


 10/29/2007 4:05:04 PM
Joel
4 posts


Re: Edit images in database not displayed
Hello,
How can I replace the "Empty" image that is displayed when there is no image in database
  Product Forums  smartDBforms.NET  Edit images in ...
Copyright 2006-2008 Adillis Terms Of Use Feedback Contact Us