Click here to Skip to main content
15,906,106 members

Comments by SK, The Boss (Top 6 by date)

SK, The Boss 14-Jun-11 7:35am View    
i hv taken imagebutton not image...sorry for incomplete info
SK, The Boss 14-Jun-11 7:35am View    
plz help

SK, The Boss 14-Jun-11 7:26am View    
actually am taken imagebutton not image
SK, The Boss 14-Jun-11 5:17am View    
protected void imgcon_Click(object sender, ImageClickEventArgs e)
{
try
{
// X coordinate from click argument
int x = e.X;

// Y coordinate from click argument
int y = e.Y;
btnfin.Visible = true;

if (((x >= 1) && (x <= 150)) && ((y >= 0) && (y <= 299)))
{
xcord = Convert.ToString(x);
ycord = Convert.ToString(y);
lblpart.Text = "Damage in ''Left Back Door of Container''";
part = lblpart.Text;
}
else if (((x >= 500) && (x <= 650)) && ((y >= 0) && (y <= 299)))
{
xcord = Convert.ToString(x);
ycord = Convert.ToString(y);
lblpart.Text = "Damage in ''Right Back Door of Container''";
part = lblpart.Text;
}
else if (((x >= 248) && (x <= 403)) && ((y >= 90) && (y <= 216)))
{
xcord = Convert.ToString(x);
ycord = Convert.ToString(y);
lblpart.Text = "Damage in ''Front Door of Container''";
part = lblpart.Text;
}
else
{
xcord = Convert.ToString(x);
ycord = Convert.ToString(y);
lblpart.Text = "Damage in ''Roof/FloorBoard of Container''";
part = lblpart.Text;
}

lblcord.Text = "Do u want to finalize the X ( " + xcord + " ) and Y ( " + ycord + " ) Coordinates ??? If 'Yes' then click on Finalize else select the coordinates again...";
}
catch (Exception ex)
{
lbler.Visible = true;
lbler.Text = ex.Message;
}

}
SK, The Boss 10-Jun-11 9:29am View    
<asp:ImageButton ID="imgcon" ImageUrl="~/container.JPG" runat = "server"
Width="650px" Height="300px" onclick="imgcon_Click"/>