means, i have two timer controls and both are sharing one event, know the logic i want to written will execute based on control id. So please give an best answer........
event based question......
hi experts, i want to know the control id based on event raising...........
VikramPosted Jun 17, 2010, 4:24 AM
You can get Control ID as Follow:
Say You have Two controls control1, control2 which are sharing following Event.
protected void Common_Event(object sender, EventArgs e)
{
Control yourControl = (Control) sender;
string id = yourControl.ID; // This id Contain the id who call this event.
if (id == control1.id)
{
//Do something..
}
if (id == control2.id)
{
//Do something..
}
}
Hope I understand your problem correctly...
Regards,
VIkram
Abhimanyu K VatsaPosted Jun 16, 2010, 5:11 AM
in any application development, it is not possible to change the control id at run time and u can say based on some result, it is toooo never possible.
good luck