[Solved] how do I resolve ‘not all code paths return data’?


Since you are not returning a DataSet, set your method return to void

private void getData(HiddenField sDate, HiddenField eDate)  // <  -- return void
{
    jQueryUICalendar1.Text = sDate.Value;
    jQueryUICalendar2.Text = eDate.Value;
}

Either that, or just return a DataSet

private DataSet getData(HiddenField sDate, HiddenField eDate)
{
    jQueryUICalendar1.Text = sDate.Value;
    jQueryUICalendar2.Text = eDate.Value;

    DataSet myReturn = new DataSet();
    // Do things with myReturn
    return myReturn;
}

1

solved how do I resolve ‘not all code paths return data’?