Client-Server passing values problem. Caution: some HTML

R

Roger Helliwell

Hopefully someone can help me with this problem I'm having with client-server
communication.

I have a large image which is subdivided into clickable areas. When the user
clicks an area, I need the server to perform work on whatever image slice was
clicked on. For example the image tag in my HTML would look something like this:

<area shape="RECT" coords="319,219,367,232" href="ProcessArea.aspx?ImageID=1">
<area shape="RECT" coords="317,238,368,254" href="ProcessArea.aspx?ImageID=2">
<area shape="RECT" coords="310,261,371,301" href="ProcessArea.aspx?ImageID=3">
etc.

I'm passing an identifier that represents which area was clicked in the URL.

Now I need My ProcessArea class to detect which image slice was clicked on.
Such logic could go in my Page_Load() method, but how do I parse out the value?

Any help is appreciated. I'm looked high on low in the System.Web.UI.Page docs
and found nothing yet. (And I'm sure the solution is probably a simple one. :)

Roger
 
D

Diwakar R

Hi Roger,

If I understand your problem correctly, you would use the request object to
cull out the information

Request.Querystring("ImageID")

this should give you the Image ID that was clicked.

HTH
-Diwakar
 
R

Roger Helliwell

Diwakar R said:
Hi Roger,

If I understand your problem correctly, you would use the request object to
cull out the information

Request.Querystring("ImageID")

this should give you the Image ID that was clicked.

HTH

Exactly what I was looking for. Thanks a million.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top