U nee dto create events n delegates.
public color p_setuserbackcolor
{
get
{
value;
}
set{
tetxbox1.backcolor=value;
}
}
Declaring delegate:
public delegate void abc(object s,eventargs e);
public event abc myclic;
Hope u get the concept n can use now
2006-07-03 19:22:47
·
answer #1
·
answered by Friend 2
·
0⤊
0⤋
It necessarily depends on where the value is produced.
If it is on the client side like a field in a form, you can access Request object from the user control, hence the value. You can also use Session object to pass values, but this will consume some memory depending on the value.
2006-07-03 20:14:01
·
answer #2
·
answered by devrimbaris 2
·
0⤊
0⤋
I think you are asking about the Web User Controls, its better to use the session values.
Set the value on session on the Page_Load()
use the session value in the User Control Code.
2006-07-04 00:08:47
·
answer #3
·
answered by Venkatraman M 2
·
0⤊
0⤋
user control is also a class,so you can use the same way to pass the value to the user control as to the class.
2006-07-03 18:16:55
·
answer #4
·
answered by zach 1
·
0⤊
0⤋