protected void Page_PreLoad(object sender, EventArgs e)
{
Control postbackControl = GetPostBackControl(this.Page);
//Control control = FindControlRecursive(this.Page, "ddlPropertyTypes");
if (postbackControl != null)
{
if (postbackControl.ID.ToString() == "btnStep1")
{
Control control = FindControlRecursive(this.Page, "ddlPropertyTypes");
if (control != null)
{
DropDownList ddlPropertyTypes = control as DropDownList;
int selectedTypeId = int.Parse(ddlPropertyTypes.SelectedValue);
if (selectedTypeId != 0)
{
//get a list of value field for the selected property type
listValueFields = PropertyTypeValueField.GetFiledsByProperty ...
Go to the complete details ...