0
votes

I want to show a specific persons identity on an aspx page on page load (data includes photo, name, .. etc) On aspx page loading, handler file runs in backhand i fetch data from database, inside this handler file. i used handler, for to convert image; otherwise i would just use aspx page load. But had to return also other columns too for the specific record).

And gotto return data to aspx page and show in aspx controls like; image control, label control.. etc.

Is it possible to access an aspx page's server control id, from a generic handler ashx file? For example, inside ashx file, can i assign a value to a label control which belongs to an aspx page?

Or, are there any other ways to pass parameters to an aspx page from an ashx file? Simply, I want my ashx file return an object record to aspx page, and Show the record in asp.net controls.

1
That doesn't make sense. The page is a type of handler and generally you only run one handler per HTTP request (unless you do Server.Transfer). How would the user see the page if he requests a handler and not the page.Stilgar
The user see the aspx page. When the user open the aspx page, the handler runs backhand(i used handler because i fetch image from db, also have some other columns too other than image.) and supposed to show the record in aspx. Thats the reason i want to know if i could return an object from handler. (I use Handler for the first time. so sorry my mistakes).perlynsparks
What is your use case? You want to display an image associated with other data in a page?Stilgar
I changed the question a bit, can you please check it?perlynsparks

1 Answers

0
votes

If you are showing the image and other data when the page "opens", you should just read the data from the database in the page load event, then update your page controls.