[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Help with code behind in VS 2005

Posted on 2007-07-20
2
Medium Priority
?
157 Views
Last Modified: 2013-11-26
Hi,

Just started to learn how to create a web site using Visual Studio 2005 pro and have got a query.

I have a placed a Radio button and a Dropdown list box from the 'standard' toolbox on to a page. I have set the 'enabled' property of the list box to false. The idea is that when I click on the radio button it sets the 'enabled' property of the list box to true.
here is the VB code behind:

Partial Class AddConsultation
    Inherits System.Web.UI.Page
   
    Protected Sub RbStudent_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RbStudent.CheckedChanged
        Cbtutor.Enabled = True
    End Sub
End Class

Now I imagine it is something to do with the 'changed' event. There is no 'clicked' event.

Any ideas what I am doing wrong?
0
Comment
Question by:neoice
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 2000 total points
ID: 19532384
With web site development, events are usually detected when the page posts back.  In order to get this to happen with the CheckBox, you need to set AutoPostBack = True.

bob
0
 

Author Comment

by:neoice
ID: 19532688
Cheers Bob!

0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Suggested Courses

834 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