I have a label control in an aspx page, can i set value to the label from an handler file? How can i pass the reference of the label through query string?
-
Could you add more details? You have a custom ASHX, or a handler implementing IHandler? How is this handler being invoked in reference to the page?Brian Mains– Brian Mains2010-12-28 04:16:48 +00:00Commented Dec 28, 2010 at 4:16
-
Ya. i have a file with name 'SalesOrderStatus.ashx' and inside this i have the class public class SalesOrderStatus : IHttpHandler {Rauf– Rauf2010-12-28 04:21:37 +00:00Commented Dec 28, 2010 at 4:21
Add a comment
|
1 Answer
From the main page:
string URL = "www.whatever.com/test.ashx?lblText=" + lbl_MyLable.Text;
3 Comments
Rauf
then, if i have set "Hai" from handler file.., How can i do it.
Rauf
I have a label in abc.aspx, say 'label1'. I want to assign a value to 'label1' from another page xyz.ashx. How can i do this?
Abe Miessler
Not sure you could. Maybe using PostBackURL but i'm not sure. The question is why would you want to?