Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Dynamic Checkbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raymond - 21 Jun 2007 11:43 GMT
I am having a problem about the dynamic checkbox
Private Sub Page_Load
Me.NumberOfChkControls = 0
Dim cbCheckBox As New CheckBox
cbCheckBox.Text = .Id.ToString
cbCheckBox.ID = "ControlID_" + NumberOfChkControls.ToString
NumberOfChkControls = NumberOfChkControls + 1
cbCheckBox.EnableViewState = True
dimNewTableCell.Controls.Add(cbCheckBox)
dimNewTableRow.Cells.Add(dimNewTableCell)
End Sub

Property NumberOfChkControls() As Integer
       Get
           Return viewstate("NumChkcontrls")
       End Get
       Set(ByVal Value As Integer)
           viewstate("NumChkcontrls") = Value
       End Set
   End Property

This is just a simply of my current source code
and there should have a for loop to generate a lot of checkbox
according how about record in the database
when user select checkbox and press button,basically it work well in
the WinXP platform.
but when i put it to windows Server 2003, it either will select the
wrong record to manipulate or doesnt work at all
can somebody help me?
Alexey Smirnov - 21 Jun 2007 13:17 GMT
> I am having a problem about the dynamic checkbox
> Private Sub Page_Load
[quoted text clipped - 25 lines]
> wrong record to manipulate or doesnt work at all
> can somebody help me?

Do you have the same ASP.NET version installed on a both servers?
Raymond - 22 Jun 2007 02:22 GMT
> > I am having a problem about the dynamic checkbox
> > Private Sub Page_Load
[quoted text clipped - 27 lines]
>
> Do you have the same ASP.NET version installed on a both servers?

I install the same .net framework for both servers.
Please help. I stuck on this issues for a few weeks.
Raymond - 22 Jun 2007 02:40 GMT
> > I am having a problem about the dynamic checkbox
> > Private Sub Page_Load
[quoted text clipped - 27 lines]
>
> Do you have the same ASP.NET version installed on a both servers?

I installed the same .Net framework for the both Server.
Previous when it cant pass the value during re-created the dynamic
checkbox.
please help...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.