TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
John Barwell
NA
3
0
How can I dynamically HIDE / SHOW items in a DataList Control based on data field values
Jan 28 2010 7:14 PM
Basically I want to either hide of show the content of different database fields based on if todays date is between a sart date field value and an end date field value.
In the olden days of asp-vb I would open the recordset, loop thru it using an if statement. - Following is logic, not code
if todays date < date_end and todays date > date_start then
response.write(rs("field_a"))
else
response.write(rs("field_b"))
end if
I am using a Master Page and code in an associated .vb page.
Does anyone have any idea on how to do the same thing in a .net DataList contol as I am getting nowhere and almost lost my hair as a consequence?
Many many thanks for your time.
Frustrated .net newbee
Reply
Answers (
3
)
Unable to read / capture emails from Redhat (Linux) system to our POP3 server
How to insert multilingual characters in database in c# winform?