How to get table values in aspx.vb coding session

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • visweswaran2830
    New Member
    • Nov 2009
    • 92

    How to get table values in aspx.vb coding session

    Hi,
    I have web page, In that I created table and loaded row values at run_time using javascript. Now I want to take a those table values in aspx.vb coding area, I tried it does not pull up my values even my table has 3 rows, but in aspx.vb area it shows row count as 0. How can I achieve this.
  • ThatThatGuy
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    Are you taking about DataGrid

    Comment

    • visweswaran2830
      New Member
      • Nov 2009
      • 92

      #3
      Originally posted by ThatThatGuy
      Are you taking about DataGrid
      No, I am mentioning just table.

      Comment

      • ThatThatGuy
        Recognized Expert Contributor
        • Jul 2009
        • 453

        #4
        Then you need to put the attribute runat="server" in your table tags and then you may be able to access them via code

        Comment

        • visweswaran2830
          New Member
          • Nov 2009
          • 92

          #5
          ya, I tried as you mentioned. But It shows only that initial no. of row count only even I added new rows at run_time...

          Comment

          • ThatThatGuy
            Recognized Expert Contributor
            • Jul 2009
            • 453

            #6
            Originally posted by visweswaran2830
            ya, I tried as you mentioned. But It shows only that initial no. of row count only even I added new rows at run_time...
            if you want to do so then you might have to place runat="server" attribute at all td's and th's... that's simply stupid of course...

            so you can send data to the code-behind....
            by looping the tables through jaavscript in client side and then pass the retrieved data to the server via ajax....

            Comment

            Working...