?
Solved

Disable DetailsView CommandField

Posted on 2008-06-26
1
Medium Priority
?
1,068 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

777 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