Dear All,
I am populating a DDL from a table.
the DDL gets populated with the list of currency_type. the first value on the list is INR. there are other currency types like INR, USD, EURO etc.
there are 3 txtboxes which are also on the form. If the selected Item is iNR, then txtbox1 and txtbox2 would be displayed, else txtbox3 is displayed.
when the form is loaded, if the default value is selected the form is not refreshed. if the other currency type is selected, then it works.
I want the form to be working when i choose the default value.
protected void DDLcurrtype_Sel ectedIndexChang ed(object sender, EventArgs e)
{
if (DDLcurrtype.Se lectedValue.Tex t ="INR")
{
txtExchRate.Ena bled = false;
txtFC.Enabled = false;
txtInINR.Enable d = true;
}
else
{
txtInINR.Enable d = false;
txtExchRate.Ena bled = true;
txtFC.Enabled = true;
}
Help requested please
I am populating a DDL from a table.
the DDL gets populated with the list of currency_type. the first value on the list is INR. there are other currency types like INR, USD, EURO etc.
there are 3 txtboxes which are also on the form. If the selected Item is iNR, then txtbox1 and txtbox2 would be displayed, else txtbox3 is displayed.
when the form is loaded, if the default value is selected the form is not refreshed. if the other currency type is selected, then it works.
I want the form to be working when i choose the default value.
protected void DDLcurrtype_Sel ectedIndexChang ed(object sender, EventArgs e)
{
if (DDLcurrtype.Se lectedValue.Tex t ="INR")
{
txtExchRate.Ena bled = false;
txtFC.Enabled = false;
txtInINR.Enable d = true;
}
else
{
txtInINR.Enable d = false;
txtExchRate.Ena bled = true;
txtFC.Enabled = true;
}
Help requested please
Comment