Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

assign imageurl on the fly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ganesh - 26 Jul 2007 15:44 GMT
Hi There

I've assigned the Imageurl on ImageButton in design time like this

http://localhost/aspnetsbs_cs/SimpleTest/WebForm4.aspx?image=images/one.jpg&size=100

but when i try from on run time, it does not seem to be working

someone can advise me please

The above url is creating image on they fly with resize

Thanks
Ganesh
Eliyahu Goldin - 26 Jul 2007 15:49 GMT
Image url should be relative to the application location. In your case,
something like

WebForm4.aspx?image=images/one.jpg&size=100

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

> Hi There
>
[quoted text clipped - 10 lines]
> Thanks
> Ganesh
Mark Fitzpatrick - 26 Jul 2007 15:55 GMT
Were you able to see where the imagebutton was actually looking for the
image? Is the image directory under the SimpleTest directory? This is
usually the gotcha most people miss. If your images directory is relative to
the root of the application, don't forget to add "~/" to the beginning, this
will then enable the control to resolve the URL to it's correct directory
placement.

Signature

Hope this helps,
Mark Fitzpatrick
Microsoft FrontPage MVP 199?-2006. 2007 and beyond

> Hi There
>
[quoted text clipped - 10 lines]
> Thanks
> Ganesh
Ganesh - 26 Jul 2007 18:31 GMT
Thanks for your replies. I tried with relative path. It doesn't seem to be
working. webform4.aspx is responsible for the image location, and it reduces
the picure size as well.

I dropped a Hyperlink then pointed the image url to the new relative link.
That one works. I'm sure relative path is correct now.

Thanks
Ganesh

> Were you able to see where the imagebutton was actually looking for the
> image? Is the image directory under the SimpleTest directory? This is
[quoted text clipped - 17 lines]
>> Thanks
>> Ganesh

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.