Advertisement

06.26.2008 at 02:07AM PDT, ID: 23517403
[x]
Attachment Details

Disable DetailsView CommandField

Asked by G0ggy in .NET Framework 2.0, Programming for ASP.NET, Microsoft Visual Basic.Net

Tags: ASP.NET, .NET 2.0, VB.NET

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.Start Free Trial
[+][-]06.26.2008 at 02:16AM PDT, ID: 21872989

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 2.0, Programming for ASP.NET, Microsoft Visual Basic.Net
Tags: ASP.NET, .NET 2.0, VB.NET
Sign Up Now!
Solution Provided By: G0ggy
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628