I have an ASP.NET user control with 2 asp.net textboxes and AJAX calender extender controls beside them and an asp.net button. When the dates are selected and the button is clicked, the dates are sent as params to a SQL query and the data is displayed.
Some pages that use this user control use the user control as it is,(this works) but some pages use only the first text box and the button and some need just the 1st textbox.
For the ones that use 1 textbox and the button, I need to hide the 2nd textbox and calendar control. for the ones that use1st textbox only , I need to hide the button as well as the 2nd textbox and it's calendar control.
Could someone please help me with the logic for the scenario when only 1 textbox needs to be used by other pages without the button as well as with the button. .Any code/logic in C# is greatly appreciated. Thankd a million in advance! It's a bit urgent!