Table in ASP.NET Mobile

Discussion in 'ASP .Net Mobile' started by Jovo Mirkovic, Sep 20, 2005.

  1. Hi,

    is it possible dinamicaly create a table in asp.net for mobile phone. In
    WAP is possible, but it must be dinamicly..

    I have a code:

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
    System.EventArgs) Handles MyBase.Load

    Dim numrows As Integer = 3
    Dim numcells As Integer = 2
    Dim table1 As New Table
    Dim j As Integer

    For j = 0 To numrows - 1
    Dim r As New TableRow
    Dim i As Integer
    For i = 0 To numcells - 1
    Dim c As New TableCell
    c.Controls.Add(New LiteralControl("row " & j.ToString()
    & ", cell " & i.ToString()))
    r.Cells.Add(c)
    Next i
    table1.Rows.Add(r)
    Next j
    table1.GridLines = GridLines.Both
    Me.ActiveForm.Controls.Add(table1)
    End Sub

    and it works fine in Explerer, but on moble phone I have a message:

    c:\inetpub\wwwroot\wapPortal\table.aspx.vb(35): 'Rows' is not a member
    of 'wapPortal.table'.
    c:\inetpub\wwwroot\wapPortal\table.aspx.vb(41): 'GridLines' is not a
    member of 'wapPortal.table'.

    Thanks,

    Jovo

    *** Sent via Developersdex http://www.developersdex.com ***
    Jovo Mirkovic, Sep 20, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Zahoor
    Replies:
    1
    Views:
    804
    Darryl L. Pierce
    Nov 15, 2003
  2. chen selina
    Replies:
    0
    Views:
    1,293
    chen selina
    Jul 13, 2010
  3. Ryan Malone
    Replies:
    0
    Views:
    165
    Ryan Malone
    Aug 23, 2004
  4. Yaiz
    Replies:
    0
    Views:
    183
  5. dawson
    Replies:
    0
    Views:
    163
    dawson
    Jul 12, 2005
Loading...

Share This Page