473,499 Members | 1,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

please walkthrough with me

hey all,
here's my exact walkthrough:

1. i create a new web application in vs.net 2003
2. i drag a radiobuttonlist control onto the form
3. i goto to the properties window for the radiobuttonlist and click on
(Collection) for the Items property.
4. i add 2 items and make the first item selected by default.
5. i changed the AutoPostBack to True for the radiobuttonlist
6. i add a button and in the code behind for the button i add
radiobuttonlist1.selectedindex=-1
7. i create a stub for radiobuttonlist1_SelectedIndexChanged and add a break
point to End Sub.
8. i also put a break on the end sub for Page_Load.
9. i hit the start button.
10. i press the button on the web form and it clears the selection for
radiobuttonlist.
11. *** i select the same radiobutton item that was selected before i
cleared the list with the button and the page_load event runs but the
radiobuttonlist1_SelectedIndexChanged does not run.
11a. if i clicked any other radiobutton item than the one that was selected
the radiobuttonlist1_SelectedIndexChanged does run. Any ideas?

rodchar.
Nov 19 '05 #1
2 925
Yes, I can replicate this functionality.

The seems to be an anomoly of some kind. Instead of setting the property
for option 0 to be selected using the designer put the following line in the
Page_Load Event. It then works as you would like it to.

Me.RadioButtonList1.SelectedIndex = 0



"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:C4**********************************@microsof t.com...
hey all,
here's my exact walkthrough:

1. i create a new web application in vs.net 2003
2. i drag a radiobuttonlist control onto the form
3. i goto to the properties window for the radiobuttonlist and click on
(Collection) for the Items property.
4. i add 2 items and make the first item selected by default.
5. i changed the AutoPostBack to True for the radiobuttonlist
6. i add a button and in the code behind for the button i add
radiobuttonlist1.selectedindex=-1
7. i create a stub for radiobuttonlist1_SelectedIndexChanged and add a
break
point to End Sub.
8. i also put a break on the end sub for Page_Load.
9. i hit the start button.
10. i press the button on the web form and it clears the selection for
radiobuttonlist.
11. *** i select the same radiobutton item that was selected before i
cleared the list with the button and the page_load event runs but the
radiobuttonlist1_SelectedIndexChanged does not run.
11a. if i clicked any other radiobutton item than the one that was
selected
the radiobuttonlist1_SelectedIndexChanged does run. Any ideas?

rodchar.

Nov 19 '05 #2
thank you.

"Mr Newbie" wrote:
Yes, I can replicate this functionality.

The seems to be an anomoly of some kind. Instead of setting the property
for option 0 to be selected using the designer put the following line in the
Page_Load Event. It then works as you would like it to.

Me.RadioButtonList1.SelectedIndex = 0



"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:C4**********************************@microsof t.com...
hey all,
here's my exact walkthrough:

1. i create a new web application in vs.net 2003
2. i drag a radiobuttonlist control onto the form
3. i goto to the properties window for the radiobuttonlist and click on
(Collection) for the Items property.
4. i add 2 items and make the first item selected by default.
5. i changed the AutoPostBack to True for the radiobuttonlist
6. i add a button and in the code behind for the button i add
radiobuttonlist1.selectedindex=-1
7. i create a stub for radiobuttonlist1_SelectedIndexChanged and add a
break
point to End Sub.
8. i also put a break on the end sub for Page_Load.
9. i hit the start button.
10. i press the button on the web form and it clears the selection for
radiobuttonlist.
11. *** i select the same radiobutton item that was selected before i
cleared the list with the button and the page_load event runs but the
radiobuttonlist1_SelectedIndexChanged does not run.
11a. if i clicked any other radiobutton item than the one that was
selected
the radiobuttonlist1_SelectedIndexChanged does run. Any ideas?

rodchar.


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1637
by: Deltones | last post by:
Hi all, I'm just getting into Python/wxPython/Pythoncard and I'm trying the tutorial from this page: http://pythoncard.sourceforge.net/walkthrough1.html Is it me who's totally dense or...
1
1698
by: GaryDotNet | last post by:
Hi, I am trying to go thru the Dist. App. walk through and cannot create the project. Due to company restrictions, I cannot install IIS on my machine. I downloaded and installed Cassini to...
0
1080
by: Zaiki | last post by:
I am a vb6 developer trying to learn asp.net using the walkthrough examples. I followed the instructions on "Using SQL Server in Web Applications" to switch to integrated secutity and then found...
0
1187
by: Bob T | last post by:
Hi, I am trying to finally get the Distributed Applications Walkthrough accomplished. I have followed the instruction to the letter in both the ..net book and online documentation. Steps...
0
903
by: Jax | last post by:
I need to guide people through a form I have created to teach them how to use it. To do this I will need to create some form of walkthrough but i'm undecided over which would be the best way to do...
2
2205
by: Joe Au | last post by:
I follow the Walkthrough documented on Visual Studio to create an editable data grid but it does not work on getting the value of the textbox in the data grid. The code is copied here. I mark...
0
2028
by: Amrit Kohli | last post by:
I am trying to get through the XML Web Services Walkthrough at this location: ...
9
2400
by: dennist685 | last post by:
Walkthrough: Creating a Web Page to Display Access Database Data I've started the above walkthrough. However, near the beginning it gives the following instructions To set permissions in the...
7
1484
by: John D'oh | last post by:
Hello, I have been going through the MSDN Walkthrough: Creating a Windows Forms Control That Takes Advantage of Visual Studio Design-Time Features. Everything was going fine and I was able to...
0
7012
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7225
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6901
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3105
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.