How to set textbox value based on dropdownlist in asp.net?
Eg: DropDown Option: * Small
*Medium
If I select Small I need textbox value as 50 and For medium 100 something like this.
if (ddlvehtype.SelectedItem.Text== "Small") { txtvehtype.Text == "100"; } else if(ddlvehtype.SelectedItem.Text== "Medium") { txtvehtype.Text == "100"; }
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.