Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Imagebutton.ImageUrl won't let read (http://www.velocityreviews.com/forums/t635494-imagebutton-imageurl-wont-let-read.html)

doll 09-15-2008 09:12 PM

Imagebutton.ImageUrl won't let read
 
Code:

    private void changeImageUrl()
    {
        string an= Request.QueryString["an"];

        if (an == "Middag")
        {
            if (imgBtnMelk.ImageUrl == "~/Images/bw_middag.jpg")
            {
                lblTest.Text = "Boo!"; // why won't it be read?
            }
        }

I've tested the label everywhere and figured out the wrong code must be:
if (imgBtnMelk.ImageUrl == "~/Images/bw_middag.jpg")

Does anyone have another suggestion for it?

(If i let lblTest.Text show imgBtnMelk.ImageUrl, it will show ~/Images/bw_middag.jpg.)


All times are GMT. The time now is 04:15 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.