title: Render User Control Conditionally
body: <p>I have a simple user control to insert the data into the database. I made a public property called isInModifyMode for the user control.I set the property on the usercontrols pageload to true if edit button is clicked on parent form control's click event to true and then on the page load event of parent page I checked the property IsinModifymode and render the control in modify mode with the values filled in text boxes and all other controls from Database(i.e I change the text property of a button to update instead of save)</p>
  
  <p>but the code does not work.
  if any body can help thanks in advance.</p>