473,324 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

drop down and calendar

18
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.selecteddate = 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.
Jan 18 '07 #1
2 1833
bplacker
121 100+
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.selecteddate = 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.
Jan 18 '07 #2
Mahill
6
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.selecteddate = 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_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles commdrop.SelectedIndexChanged
Try
label.text = "message"
Catch ex As Exception

End Try
End Sub

Protected Sub sitedrop_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles sitedrop.SelectedIndexChanged
Try
label.text = "message"
Catch ex As Exception

End Try
End Sub
[/code]
Jan 18 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: kvrdev1 | last post by:
What reference do I need to add in to be able to use a date drop-down control within my web application? Thank you! -Valerie
17
by: Aussie Rules | last post by:
Hi, I want to have a single line combo box dropdown, but where i can selected multiple items in the drop down via a check box... I can see one in the standard tool box... is there one ? If...
1
by: Chad | last post by:
I'm looking for a good cheap drop down calendar control for web apps. I've seen some quick and dirty do it yourself examples that make use of absolute positioning, or ones that have problems...
2
by: newsgroups.jd | last post by:
Thanks for any advice, help in advance... I have 3 dropdownlist that populate based on choice in the previous (nested essentially) Problem is when I hit the back button and make a change in...
3
by: rsteph | last post by:
I have a javascript drop down menu that I borrowed from a website. It utilizes a little .css to help with formatting. The menu works great, and on all 3 of the browsers I'm concerned about; but I am...
0
by: Derty | last post by:
Have an issue with a simple drop down list that I need to filter results of a database table and page display. I can get the drop down list to populate correctly but can't make the page databound...
6
by: bluethunder | last post by:
Hello to all of you guys out there. I have problem regarding in making a daily summary report. I want to have a drop down calendar in combo box where i can freely select the range of the day whether...
0
by: Jack Gray | last post by:
Hi everyone, I am using a nested list for a simple drop-down menu. All CSS and XHTML validate. The menu is displayed properly in 7 different newer browsers including IE7, Firefox, Opera & Safari....
6
by: lion cave | last post by:
Hello, I am a newbie for a javascript. Then, theres the project assign to me which really much involved in javascript. This project is about a drop down calendar date that should be compatible for...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.