TableCell

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Serdar Kalaycý

    TableCell

    I create a TableCell by

    TableCell cell = new TableCell()

    but I could not find how to add a TextBox inside this cell. Any ideas?

    Thanks in advance
    Serdar KALAYCI
    --



  • Karl Seguin

    #2
    Re: TableCell

    WebControls.Tex tBox txt = new WebControls.Tex tBox();
    cell.Controls.A dd(txt);

    Karl


    "Serdar Kalaycý" <serdarkalayci@ unisec.com.tr> wrote in message
    news:ewP%23cXwP DHA.4024@tk2msf tngp13.phx.gbl. ..[color=blue]
    > I create a TableCell by
    >
    > TableCell cell = new TableCell()
    >
    > but I could not find how to add a TextBox inside this cell. Any ideas?
    >
    > Thanks in advance
    > Serdar KALAYCI
    > --
    >
    >
    >[/color]


    Comment

    • Serdar Kalaycý

      #3
      Re: TableCell

      Got it, here's the code if anyone wonders...

      TableCell cell = new TableCell();
      TextBox text1 = new TextBox();
      cell.Controls.A dd (text1);


      "Serdar Kalaycý" <serdarkalayci@ unisec.com.tr> wrote in message
      news:ewP#cXwPDH A.4024@tk2msftn gp13.phx.gbl...[color=blue]
      > I create a TableCell by
      >
      > TableCell cell = new TableCell()
      >
      > but I could not find how to add a TextBox inside this cell. Any ideas?
      >
      > Thanks in advance
      > Serdar KALAYCI
      > --
      >
      >
      >[/color]


      Comment

      • Serdar Kalaycý

        #4
        Re: TableCell

        I have one more question. I added a Button inside a Table at design time by
        changing HTML codes, but I can't access it's events or even see it in the
        components list on the Properties window.

        Serdar KALAYCI


        "Karl Seguin" <kseguin##crea. ca> wrote in message
        news:uO53SbwPDH A.1608@TK2MSFTN GP11.phx.gbl...[color=blue]
        > WebControls.Tex tBox txt = new WebControls.Tex tBox();
        > cell.Controls.A dd(txt);
        >
        > Karl
        >
        >
        > "Serdar Kalaycý" <serdarkalayci@ unisec.com.tr> wrote in message
        > news:ewP%23cXwP DHA.4024@tk2msf tngp13.phx.gbl. ..[color=green]
        > > I create a TableCell by
        > >
        > > TableCell cell = new TableCell()
        > >
        > > but I could not find how to add a TextBox inside this cell. Any ideas?
        > >
        > > Thanks in advance
        > > Serdar KALAYCI
        > > --
        > >
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Karl Seguin

          #5
          Re: TableCell

          if you are adding an object programatically , like your butotn, you'll also
          have to attach the event programatically .

          in vb.net, you can use:
          addhandler yourButton.clic k, AddressOf yourFunctionHan dler

          in c#, you can use:
          yourButton.Clic k += new EventHandler(yo urFunctionHandl er);


          Make sure that your button is created, and you attach your handler on
          postback also (ie, don't wrap it in an !page.IsPostbac k)

          Karl

          "Serdar Kalaycý" <serdarkalayci@ unisec.com.tr> wrote in message
          news:ulgu2oxPDH A.1748@TK2MSFTN GP11.phx.gbl...[color=blue]
          > I have one more question. I added a Button inside a Table at design time[/color]
          by[color=blue]
          > changing HTML codes, but I can't access it's events or even see it in the
          > components list on the Properties window.
          >
          > Serdar KALAYCI
          >
          >
          > "Karl Seguin" <kseguin##crea. ca> wrote in message
          > news:uO53SbwPDH A.1608@TK2MSFTN GP11.phx.gbl...[color=green]
          > > WebControls.Tex tBox txt = new WebControls.Tex tBox();
          > > cell.Controls.A dd(txt);
          > >
          > > Karl
          > >
          > >
          > > "Serdar Kalaycý" <serdarkalayci@ unisec.com.tr> wrote in message
          > > news:ewP%23cXwP DHA.4024@tk2msf tngp13.phx.gbl. ..[color=darkred]
          > > > I create a TableCell by
          > > >
          > > > TableCell cell = new TableCell()
          > > >
          > > > but I could not find how to add a TextBox inside this cell. Any ideas?
          > > >
          > > > Thanks in advance
          > > > Serdar KALAYCI
          > > > --
          > > >
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...