79368641

Date: 2025-01-19 08:48:00
Score: 3
Natty:
Report link

Page_Load time, use an IsPostBack as follows. Can you use the value assignment to the dropdown just below?

    protected void Page_Load(object sender, EventArgs e)
    {
      if (Page.IsPostBack) return;
    

      string s = bulList.intype.ToString().Trim();
      DropDown.SelectedValue = s;
    
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: TarikZengin