•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 402,544 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,308 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 654 | Replies: 2 | Solved
![]() |
•
•
Join Date: Aug 2007
Location: Somewhere between heaven and hell
Posts: 94
Reputation:
Rep Power: 2
Solved Threads: 6
•
•
Join Date: May 2006
Location: Bellevue, WA
Posts: 1,548
Reputation:
Rep Power: 8
Solved Threads: 51
•
•
Join Date: Aug 2007
Location: Somewhere between heaven and hell
Posts: 94
Reputation:
Rep Power: 2
Solved Threads: 6
Finnaly, i find the answer. i use checkboxlist control, because there is a bug in radiolbuttonlist control when RepeatColumn is set to 2
if form_load :
If Not IsPostBack Then
ViewState("Chk") = 2
CheckBoxList1.SelectedIndex = 2
End If
and .....
Protected Sub CheckBoxList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBoxList1.SelectedIndexChanged
CheckBoxList1.SelectedIndex = ViewState("Chk")
End Sub
It will push the selectedindex value to the viewstate value.
if form_load :
If Not IsPostBack Then
ViewState("Chk") = 2
CheckBoxList1.SelectedIndex = 2
End If
and .....
Protected Sub CheckBoxList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBoxList1.SelectedIndexChanged
CheckBoxList1.SelectedIndex = ViewState("Chk")
End Sub
It will push the selectedindex value to the viewstate value.
Last edited by Kusno : Aug 28th, 2007 at 2:56 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Dark Matter & Dark Energy (Geeks' Lounge)
- How to verify user? (ASP.NET)
- Radiobuttonlist setting attributes for radiobuttons (ASP.NET)
- My main page is "http://rl.webtracer.cc/-/?bayzm" no matter what i do to change it... (Viruses, Spyware and other Nasties)
- My screen keeps shaking no matter what I do. (Apple Hardware)
- Click me! .. keeps coming back no matter what! (Viruses, Spyware and other Nasties)
- Radiobuttonlist control - help! (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: How to read a client side file
- Next Thread: Problem in Timer in an .aspx page..



Linear Mode