drop down and calendar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrjoka
    New Member
    • Nov 2006
    • 18

    drop down and calendar

    hi experts,
    actualy i need your help here.
    i'm working in a website and i'm facing two problems.
    the first one is that i want to display today date when no date is selected (an if statement)
    the second one is that i have 2 drop down list and i want to use also an if statement so when the value of the first drop down list is choosed display a message and when the value of the second drop down list is choosed display another message.

    the senario of the first one is:
    If selecteddate is false
    calendar1.selec teddate = datetime.now
    i was unable to find the right if statement.

    for the second one is :
    if Commdrop is selected
    label.text = " message"
    if sitedrop is selected
    label.text = " message"

    thanks for your time.
  • bplacker
    New Member
    • Sep 2006
    • 121

    #2
    Originally posted by mrjoka
    hi experts,
    actualy i need your help here.
    i'm working in a website and i'm facing two problems.
    the first one is that i want to display today date when no date is selected (an if statement)
    the second one is that i have 2 drop down list and i want to use also an if statement so when the value of the first drop down list is choosed display a message and when the value of the second drop down list is choosed display another message.

    the senario of the first one is:
    If selecteddate is false
    calendar1.selec teddate = datetime.now
    i was unable to find the right if statement.

    for the second one is :
    if Commdrop is selected
    label.text = " message"
    if sitedrop is selected
    label.text = " message"

    thanks for your time.
    to set the values to the current date if none is selected, you say calendar1.value = Date.Now, or something to this effect.

    Comment

    • Mahill
      New Member
      • Jan 2007
      • 6

      #3
      Originally posted by mrjoka
      hi experts,
      actualy i need your help here.
      i'm working in a website and i'm facing two problems.
      the first one is that i want to display today date when no date is selected (an if statement)
      the second one is that i have 2 drop down list and i want to use also an if statement so when the value of the first drop down list is choosed display a message and when the value of the second drop down list is choosed display another message.

      the senario of the first one is:
      If selecteddate is false
      calendar1.selec teddate = datetime.now
      i was unable to find the right if statement.

      for the second one is :
      if Commdrop is selected
      label.text = " message"
      if sitedrop is selected
      label.text = " message"

      thanks for your time.
      [CODE - dropdown issue]
      Protected Sub commdrop_Select edIndexChanged( ByVal sender As Object, ByVal e As System.EventArg s) Handles commdrop.Select edIndexChanged
      Try
      label.text = "message"
      Catch ex As Exception

      End Try
      End Sub

      Protected Sub sitedrop_Select edIndexChanged( ByVal sender As Object, ByVal e As System.EventArg s) Handles sitedrop.Select edIndexChanged
      Try
      label.text = "message"
      Catch ex As Exception

      End Try
      End Sub
      [/CODE]

      Comment

      Working...