Solved

Disable DetailsView CommandField

Posted on 2008-06-26
1
1,064 Views
Last Modified: 2013-11-07
Hi All,

I have a two public variables on a web page. One is a count of prerequisite courses and the other is a count of courses that a user has taken which match the prerequisite courses. What I'm trying to achieve here is if the users count is less than the prerequisite count then there is a course which the user needs to take prior to being allowed to book the course they are viewing, which the information is held in a DetailsView. The CommandField (Select Button) is the command that allows them to book the course, so I need to disable this button if the above situation occurs.

Any ideas how I would achive this?

Thanks.
0
Comment
Question by:G0ggy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
G0ggy earned 0 total points
ID: 21872989
Answered myself.
dtvClassDetails.Fields(7).Visible = False

Open in new window

0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question