2 Replies - 150 Views - Last Post: 03 June 2019 - 11:19 AM Rate Topic: -----

#1 DarenR   User is offline

  • D.I.C Lover

Reputation: 625
  • View blog
  • Posts: 4,170
  • Joined: 12-January 10

error label not showing on text change

Posted 03 June 2019 - 11:12 AM

so on text change if the dataset is empty it returns a _msg
i use that _msg to fill in the error text

it works on buttonSave click but not on text change---

i am not sure why the message doesnt post

i am thinking perhaps put that label in an update panel

thoughts?

 Protected Sub dteShiftStartDate_OnTextChanged(sender As Object, e As EventArgs)
        LoadShiftDDL()
          lblError.Text = _msg   
    End Sub


Is This A Good Question/Topic? 0
  • +

Replies To: error label not showing on text change

#2 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 15175
  • View blog
  • Posts: 60,742
  • Joined: 12-June 08

Re: error label not showing on text change

Posted 03 June 2019 - 11:15 AM

What is "dteShiftStartDate"?

does it have all the fancy 'autopostback' and 'runat server' set?
Was This Post Helpful? 0
  • +
  • -

#3 DarenR   User is offline

  • D.I.C Lover

Reputation: 625
  • View blog
  • Posts: 4,170
  • Joined: 12-January 10

Re: error label not showing on text change

Posted 03 June 2019 - 11:19 AM

yeah

i just put the label in an updatepanel and bamm it's working


that field is a user control that was created before i started here-- something about not reinventing the wheel and such ha
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1