c# - The name 'txtStudentDOB' does not exist in the current context -
i have web form user control , want add calender textbox in edit form, error txtstudentdob in void calendar1_selectionchanged1(object sender, eventargs e) . problem cannot access calender edit form context. using system; using system.collections.generic; using system.linq; using system.web; using system.web.ui; using system.web.ui.webcontrols; using system.globalization; namespace learningsystem.controls { public partial class usrstudent : system.web.ui.usercontrol { protected void page_load(object sender, eventargs e) { if (!ispostback) { calendar1.visible = false; } } protected void imagebutton1_click(object sender, imageclickeventargs e) { if (calendar1.visible == false) { calendar1.visible = true; } else { calendar1.visible = true; } } void calendar1_selectionchanged1(object sender, eventargs e) { txtstudentdob.text = cale...