Hi everyone,
I have a problem which I'm sure should be very simple to solve, but I can't work out why!
Background:
I'm using visual studio to create apsx, access and vb pages. I have a DetailsView displaying information about a 5 step process. At the admin side, the user ticks a box for each stage. the user side then displays this to the user so they can see where the admin side are up to with their request.
One of these steps is to organise training. What I have done is create a date field in my database and then the admin side changes from the current date to whenever the training is organised to.
The problem:
I set the date that the request was started and use this to also set the date for the training. What I want to do is say
If the date the request started is the same as the date for the training, set the cssclass for a detailsview templatefield. If they are different, don't set one. This way the user doesn't see a date until the admin team set one.
So basically, how can I check the values of two fields in a database against each other and then assign a style to a templatefield if they meet?
If any of this is unclear (i#m not very good at explaining) please let me know!
Cheers,
Tom
I have a problem which I'm sure should be very simple to solve, but I can't work out why!
Background:
I'm using visual studio to create apsx, access and vb pages. I have a DetailsView displaying information about a 5 step process. At the admin side, the user ticks a box for each stage. the user side then displays this to the user so they can see where the admin side are up to with their request.
One of these steps is to organise training. What I have done is create a date field in my database and then the admin side changes from the current date to whenever the training is organised to.
The problem:
I set the date that the request was started and use this to also set the date for the training. What I want to do is say
If the date the request started is the same as the date for the training, set the cssclass for a detailsview templatefield. If they are different, don't set one. This way the user doesn't see a date until the admin team set one.
So basically, how can I check the values of two fields in a database against each other and then assign a style to a templatefield if they meet?
If any of this is unclear (i#m not very good at explaining) please let me know!
Cheers,
Tom
Comment