Last post Jan 12, 2007 08:25 AM by miztiik
Member
1 Points
29 Posts
Jan 09, 2007 06:04 AM|ibrahimersoy|LINK
write these code to ImageButton_Click block
int[] koordinatlar=Request.MapImageCoordinates("ImageButton1"); Response.Write("Koordinatlar= "); for(int i=0;i<koordinatlar.Length;i++) { Response.Write(koordinatlar.ToString() + ", "); } Response.Write("<br>"); Response.Write(e.X.ToString() + ", " + e.Y.ToString()); }
Code sample
14 Points
233 Posts
Jan 11, 2007 07:43 PM|miztiik|LINK
Jan 12, 2007 05:10 AM|ibrahimersoy|LINK
lets make a scenarios:
1)u can use this code whether u want to take the color of the imagebutton 2)u can use this code whether u want to take coords of a city,town in a map
i can consume much more scenarios with that.Are the scenarios above enough for you or shall i write much more???
Jan 12, 2007 08:25 AM|miztiik|LINK
Maybe you can help me with this stuff
http://forums.asp.net/thread/1528798.aspx
can you give me your opinion on this thread.
Member
1 Points
29 Posts
Getting Coordinates of an ImageButton When Clicked!
Jan 09, 2007 06:04 AM|ibrahimersoy|LINK
write these code to ImageButton_Click block
int[] koordinatlar=Request.MapImageCoordinates("ImageButton1");
Response.Write("Koordinatlar= ");
for(int i=0;i<koordinatlar.Length;i++)
{
Response.Write(koordinatlar.ToString() + ", ");
}
Response.Write("<br>");
Response.Write(e.X.ToString() + ", " + e.Y.ToString());
}
Code sample
Member
14 Points
233 Posts
Re: Getting Coordinates of an ImageButton When Clicked!
Jan 11, 2007 07:43 PM|miztiik|LINK
Member
1 Points
29 Posts
Re: Getting Coordinates of an ImageButton When Clicked!
Jan 12, 2007 05:10 AM|ibrahimersoy|LINK
lets make a scenarios:
1)u can use this code whether u want to take the color of the imagebutton
2)u can use this code whether u want to take coords of a city,town in a map
i can consume much more scenarios with that.Are the scenarios above enough for you or shall i write much more???
Code sample
Member
14 Points
233 Posts
Re: Getting Coordinates of an ImageButton When Clicked!
Jan 12, 2007 08:25 AM|miztiik|LINK
Maybe you can help me with this stuff
http://forums.asp.net/thread/1528798.aspx
can you give me your opinion on this thread.