0

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?

2
  • 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? Commented 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 { Commented Dec 28, 2010 at 4:21

1 Answer 1

1

From the main page:

string URL = "www.whatever.com/test.ashx?lblText=" + lbl_MyLable.Text;
Sign up to request clarification or add additional context in comments.

3 Comments

then, if i have set "Hai" from handler file.., How can i do it.
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?
Not sure you could. Maybe using PostBackURL but i'm not sure. The question is why would you want to?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.