Hi

I need to pass the co ordinates of the image present in one web form to another
i tried it by using seesion variables but its not getting transferd


help me with some suggestions

THIS HOW I TRANFER THE CO ORDINATES
Request.Params["Image1.x"]=Session["sample1"].ToString();
Request.Params["Image1.y"]=Session["sample2"].ToString();

at first i transferred the co ordinates of the image1 from webform 1 to webform2 through session variable as follows:

PASSING THE VALUES:
	string x=Request.Params["Image1.x"];
	string y=Request.Params["image1.y"];
            
                Session["sample1"]=x;
	Session["sample2"]=y;

This is the code that i have given in the receiving page

Request.Params["Image1.x"]=Session["sample1"].ToString();
Request.Params["Image1.y"]=Session["sample2"].ToString();

i have passed the co ordinates but the image button is not getting displayed in the position specified i.e, the image button is not getting the value which i pass from one page to the other

Is it being displayed at all? If so then there is possibly a problem that you might not be sending the co-ordinates to the image before you place the image down.

HI
majestic ,it is showing some error while running that page so i need to know how should i declare the left and top positions for an imageduring the pageload

Post your code and I shall investigate. Just need the page load even code in form 2 and in form 1 where you set up the arguements to be passed to page 2.

This article has been dead for over six months. Start a new discussion instead.