List Info

Thread: C# code not reading image property




C# code not reading image property
country flaguser name
United States
2007-10-04 09:07:44
Hey all,

I have spend over a day trying to solve this one, and no
book or
google search is helping.  Hopefully someone here can help
me.

I have a webpage that has a form and some images on it. 
When I click
on one of the images, javascript changes that images to a
different
image.

That all works fine.  However, after I click the submit
button in the
form, I want the C# code to read the "ImageUrl"
all the images on the
page.  C# returns the initial URL of each image even if it
was clicked
on.

So, to clarify, I have an image on the page that has this
url, "/
images/red.jpg".  If you click on the image javascript
turns it to "/
images.green.jpg".  However C# doesn't return the
green.jpg url... it
still sees the red.jog url.

What am I missing?

Thanks for any help you can give,
Ryan


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: C# code not reading image property
country flaguser name
United States
2007-10-15 10:09:54
Post some code; we aren't mind readers.  Try http://freesource.wi
kispaces.com
to help out with beautification.

On Oct 4, 9:07 am, Sparticus <sparticusREM...thesparticusarena.com>
wrote:
> Hey all,
>
> I have spend over a day trying to solve this one, and
no book or
> google search is helping.  Hopefully someone here can
help me.
>
> I have a webpage that has a form and some images on it.
 When I click
> on one of the images, javascript changes that images to
a different
> image.
>
> That all works fine.  However, after I click the submit
button in the
> form, I want the C# code to read the
"ImageUrl" all the images on the
> page.  C# returns the initial URL of each image even if
it was clicked
> on.
>
> So, to clarify, I have an image on the page that has
this url, "/
> images/red.jpg".  If you click on the image
javascript turns it to "/
> images.green.jpg".  However C# doesn't return the
green.jpg url... it
> still sees the red.jog url.
>
> What am I missing?
>
> Thanks for any help you can give,
> Ryan


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )