15,904,655 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 8759797 (Top 10 by date)
Member 8759797
12-Aug-12 7:31am
View
Thank you for your time to suggest an answer. This code works the same so I don't think I understand what you mean. Would you please clarify how I can replace the text on the linkbutton to say "link" instead of saying the entire URL in the datasource. You make a good point that the datasource does contain the URL's and not the actual picture.
Member 8759797
11-Aug-12 11:15am
View
Thank you for your suggestion. It is helpful and I am sure I can use it. This problem I am having relates to passing a file path stored in a database to the asp:Image option thru the parameter ImageUrl. So the image is not on the database directly but rather the link to the picture. Can you help in this area? I hope so. Thanks for you time!
Member 8759797
11-Aug-12 11:09am
View
Yes thank you for your suggestion. I do feel this is a problem. In my ImgUrl I have "ImgLnk", but I don't know how to tell ImageUrl to use the file path in the database column ImgLnk and not to use ImgLnk as the file path.
This process works fine in Gridview when I use DataImageUrlField="ImgLnk". I am hoping to not use Gridview but to show the image directly. Thanks so much for any help you can offer!
Member 8759797
11-Aug-12 11:04am
View
So sorry! I see your dilemma...
My problem is that in the ImageUrl field I have "ImgLnk" which is a url field in my database. I can't show the picture because I can't convey to ImageUrl to use the file path "ImgLnk" in database to retrieve the picture. Currently ImageUrl is trying to find the path "ImgLnk" as thought ImgLnk were a Url.
I hope this explanation helps you guide me to the correction I need to make as this is the last part of the project and I am stuck! Thanks.
Member 8759797
10-Aug-12 23:40pm
View
Yes I think you are right and I will! Thanks.
Member 8759797
10-Aug-12 17:36pm
View
So this technique works wonderfully. The image was showing in a modal popup up window and now it is not. However, I think there must be a problem that is differently related so...
This is the answer for me! Thanks so much each of you. If anyone has a suggestion of a book that might help as I learn, I will be most grateful.
Member 8759797
10-Aug-12 17:16pm
View
Yes Thank you. I have tried your suggestion. The modal popup does appear, but the picture that is access by the url contained in "ImgLnk" in the sqlDb does not appear. It is as though the eval condition is ignored. I am learning from your helpful suggestion though!
Member 8759797
10-Aug-12 16:36pm
View
Thanks everyone for your help to this point! When I have tried your solution of (...System.EventArgs e)I get this message which has added to my confusion: the 'System.EventArgs' does not contain a definition for 'CommandName' and no extension method 'CommandName' accepting a first argument of type 'System.EventArgs' could be found (are you missing a using directive or an assembly reference?)
Please continue to offer suggestions...I will try them all!
Member 8759797
10-Aug-12 16:36pm
View
Thanks everyone for your help to this point! When I have tried your solution of (...EventArgs e)I get this message which has added to my confusion: the 'System.EventArgs' does not contain a definition for 'CommandName' and no extension method 'CommandName' accepting a first argument of type 'System.EventArgs' could be found (are you missing a using directive or an assembly reference?)
Please continue to offer suggestions...I will try them all!
Member 8759797
10-Aug-12 16:36pm
View
Thanks everyone for your help to this point! When I have tried your solution of (...EventArgs e)I get this message which has added to my confusion: the 'System.EventArgs' does not contain a definition for 'CommandName' and no extension method 'CommandName' accepting a first argument of type 'System.EventArgs' could be found (are you missing a using directive or an assembly reference?)
Please continue to offer suggestions...I will try them all!
Show More