Click here to Skip to main content
15,920,110 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Caching Pin
BalasubramanianK1-Sep-08 22:55
BalasubramanianK1-Sep-08 22:55 
GeneralRe: Caching Pin
Blue_Boy2-Sep-08 0:10
Blue_Boy2-Sep-08 0:10 
AnswerRe: Caching Pin
Member 36367992-Sep-08 0:10
Member 36367992-Sep-08 0:10 
QuestionLinkbutton control problem Pin
Rameez Raja1-Sep-08 20:36
Rameez Raja1-Sep-08 20:36 
AnswerRe: Linkbutton control problem Pin
AhsanS1-Sep-08 21:03
AhsanS1-Sep-08 21:03 
GeneralRe: Linkbutton control problem Pin
Rameez Raja1-Sep-08 23:01
Rameez Raja1-Sep-08 23:01 
AnswerRe: Linkbutton control problem Pin
Neeraj Arora1-Sep-08 23:01
Neeraj Arora1-Sep-08 23:01 
GeneralRe: Linkbutton control problem Pin
Rameez Raja1-Sep-08 23:16
Rameez Raja1-Sep-08 23:16 
Here is my complete code

Dim myarray() As Integer = {0, 1, 2, 1, 4, 5, 6, 7, 1, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31}
        Dim d As Integer
        Dim trow As TableRow = New TableRow()
        For d = 0 To 31
            Dim tc As TableCell = New TableCell
            If myarray(d) = 1 Then
          Dim lnkbutton As LinkButton = New LinkButton()
         lnkbutton.ID = "lnkbutton"
        lnkbutton.Text = "Click Here dear "
         lnkbutton.PostBackUrl = ""
         AddHandler lnkbutton.Click, AddressOf OnClickLink
         tc.Controls.Add(lnkbutton)               
            Else
                tc.BackColor = Color.Yellow
            End If
            tc.Text = " "
            trow.Cells.Add(tc)

        Next
        Table1.Rows.Add(trow)


and here is event handler for that.

Protected Sub OnClickLink(ByVal sender As Object, ByVal e As EventArgs)
        FormView1.Visible = True
        Dim myConnection As New SqlConnection("Server=localhost;Database=xyz;uid=sa;pwd=xxxx")
        Dim ad As New SqlDataAdapter("SELECT * FROM name of table", myConnection)
        Dim ds As New DataSet()
        ad.Fill(ds)
        FormView1.DataSource = ds
        FormView1.DataBind()

    End Sub



in above code nothing is added to table cell can any body suggest me where iam doing wrong .


Best Regards
Rameez
QuestionProblem setting focus Pin
CrazyCoder261-Sep-08 20:36
CrazyCoder261-Sep-08 20:36 
AnswerRe: Problem setting focus Pin
Gamzun1-Sep-08 20:45
Gamzun1-Sep-08 20:45 
GeneralRe: Problem setting focus Pin
CrazyCoder261-Sep-08 20:47
CrazyCoder261-Sep-08 20:47 
GeneralRe: Problem setting focus Pin
Gamzun1-Sep-08 20:49
Gamzun1-Sep-08 20:49 
GeneralRe: Problem setting focus Pin
CrazyCoder261-Sep-08 20:50
CrazyCoder261-Sep-08 20:50 
GeneralRe: Problem setting focus Pin
Gamzun1-Sep-08 20:53
Gamzun1-Sep-08 20:53 
GeneralRe: Problem setting focus Pin
CrazyCoder261-Sep-08 20:55
CrazyCoder261-Sep-08 20:55 
QuestionError: The name 'ListBoxSites' does not exist in the current context Pin
PDTUM1-Sep-08 20:08
PDTUM1-Sep-08 20:08 
AnswerRe: Error: The name 'ListBoxSites' does not exist in the current context Pin
Sandeep Akhare1-Sep-08 20:23
Sandeep Akhare1-Sep-08 20:23 
GeneralRe: Error: The name 'ListBoxSites' does not exist in the current context Pin
PDTUM2-Sep-08 8:19
PDTUM2-Sep-08 8:19 
QuestionTimeout Error in my Web Application Pin
VivekNema1-Sep-08 19:18
VivekNema1-Sep-08 19:18 
AnswerRe: Timeout Error in my Web Application Pin
Palli Rummi1-Sep-08 19:48
Palli Rummi1-Sep-08 19:48 
GeneralRe: Timeout Error in my Web Application Pin
VivekNema12-Sep-08 21:53
VivekNema12-Sep-08 21:53 
AnswerRe: Timeout Error in my Web Application Pin
Gamzun1-Sep-08 20:48
Gamzun1-Sep-08 20:48 
Questiondropdown list with checkboxs in Asp.net Pin
ncsubbu1-Sep-08 18:54
professionalncsubbu1-Sep-08 18:54 
AnswerRe: dropdown list with checkboxs in Asp.net Pin
Palli Rummi1-Sep-08 19:39
Palli Rummi1-Sep-08 19:39 
Questiondomain redirect Pin
Dpriya1-Sep-08 14:37
Dpriya1-Sep-08 14:37 

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.