Click here to Skip to main content
15,896,154 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalproblem on label control Pin
vkumar0925-Aug-08 4:39
vkumar0925-Aug-08 4:39 
GeneralRe: problem on label control Pin
Jon_Boy25-Aug-08 5:05
Jon_Boy25-Aug-08 5:05 
GeneralRe: problem on label control Pin
lisan_al_ghaib25-Aug-08 5:39
lisan_al_ghaib25-Aug-08 5:39 
GeneralRe: problem on label control Pin
Dave Kreskowiak25-Aug-08 12:37
mveDave Kreskowiak25-Aug-08 12:37 
QuestionGet Web Address Pin
nitin_ion25-Aug-08 2:11
nitin_ion25-Aug-08 2:11 
AnswerRe: Get Web Address Pin
jzonthemtn25-Aug-08 6:46
jzonthemtn25-Aug-08 6:46 
AnswerRe: Get Web Address Pin
Dave Kreskowiak25-Aug-08 12:36
mveDave Kreskowiak25-Aug-08 12:36 
QuestionLinkbutton not adding into table cell programmatically( problem ) Pin
Rameez Raja25-Aug-08 0:59
Rameez Raja25-Aug-08 0:59 
hi all,


iam creating table for display data dynamically using asp.net with vb.net 2.0
here is problem is that iam linkbutton not added to table cell .

can any body help me that where iam doing mistake here is my code .

Dim noOfTimes As Integer = 0
            Dim CurrentName As String = Nothing
            Dim trow As TableRow = New TableRow
            
            For d = 0 To 31
                Dim tbcell As TableCell = New TableCell
                'Iterate to see which cells have a booking against a name
                If testarray(d) = Nothing Then
                    'No booking case
                    CurrentName = Nothing
                    tbcell.BackColor = Color.FromName("#FFFFFF")
                Else

                    'booking exists, find noOfTimes it is booked for same employee
                    CurrentName = testarray(d)

                    'search subsequent entries for same name
                    Dim j As Integer
                    For j = d + 1 To 31
                        ' 
                        If testarray(j) = CurrentName Then
                            'same name repeated
                            noOfTimes = noOfTimes + 1
                        Else
                           'name is not repeated, print name and advance d counter by number of times
                            Response.Write(" Span of " + noOfTimes.ToString() + " " + CurrentName)
                            d = d + noOfTimes

                            'exit for loop using the statement below
                            Exit For
                        End If
                    Next

                    Dim myHyperLink1 As LinkButton = New LinkButton()
                    myHyperLink1.ID = "myHyperLink1"
                    myHyperLink1.Text = "Click Here dear "
                    myHyperLink1.PostBackUrl = ""
                    AddHandler myHyperLink1.Click, AddressOf OnClickLink
                    ' tbcell.BackColor = Color.FromName("#CCCCCC")
                    tbcell.ColumnSpan = noOfTimes
                    tbcell.Controls.Add(myHyperLink1)
                    noOfTimes = 0
                End If

                tbcell.Text = " "
                trow.Cells.Add(tbcell)
            Next

            Table1.Rows.Add(trow)


please suggest me where iam doing mistake where i have to added linkbutton creation code ?

best regards
Rameez
thanks in advance
AnswerRe: Linkbutton not adding into table cell programmatically( problem ) Pin
jzonthemtn25-Aug-08 6:47
jzonthemtn25-Aug-08 6:47 
QuestionRead for database SQL 2005 with more than 20 columns in a record Pin
DCAUB25-Aug-08 0:44
DCAUB25-Aug-08 0:44 
AnswerRe: Read for database SQL 2005 with more than 20 columns in a record Pin
Colin Angus Mackay25-Aug-08 3:24
Colin Angus Mackay25-Aug-08 3:24 
GeneralRe: Read for database SQL 2005 with more than 20 columns in a record Pin
DCAUB25-Aug-08 3:35
DCAUB25-Aug-08 3:35 
GeneralRe: Read for database SQL 2005 with more than 20 columns in a record Pin
Colin Angus Mackay25-Aug-08 3:47
Colin Angus Mackay25-Aug-08 3:47 
QuestionHow to refresh a combobox in another form after the values of the combo have been updated? Pin
rprateek24-Aug-08 21:01
rprateek24-Aug-08 21:01 
AnswerRe: How to refresh a combobox in another form after the values of the combo have been updated? Pin
AlexeiXX325-Aug-08 6:10
AlexeiXX325-Aug-08 6:10 
GeneralRe: How to refresh a combobox in another form after the values of the combo have been updated? Pin
rprateek25-Aug-08 13:46
rprateek25-Aug-08 13:46 
AnswerRe: How to refresh a combobox in another form after the values of the combo have been updated? Pin
rprateek27-Aug-08 17:20
rprateek27-Aug-08 17:20 
QuestionMinimize all windows Pin
AlexeiXX324-Aug-08 18:29
AlexeiXX324-Aug-08 18:29 
AnswerRe: Minimize all windows Pin
John Ad24-Aug-08 21:33
John Ad24-Aug-08 21:33 
GeneralRe: Minimize all windows Pin
AlexeiXX325-Aug-08 6:03
AlexeiXX325-Aug-08 6:03 
GeneralRe: Minimize all windows Pin
Jon_Boy25-Aug-08 7:35
Jon_Boy25-Aug-08 7:35 
GeneralRe: Minimize all windows Pin
AlexeiXX325-Aug-08 7:40
AlexeiXX325-Aug-08 7:40 
GeneralRe: Minimize all windows Pin
JR21227-Aug-08 1:56
JR21227-Aug-08 1:56 
QuestionA more elegent way?? Pin
Rafone24-Aug-08 13:08
Rafone24-Aug-08 13:08 
AnswerRe: A more elegent way?? Pin
jzonthemtn24-Aug-08 13:36
jzonthemtn24-Aug-08 13:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.