User Profile

Collapse

Profile Sidebar

Collapse
roopesh
roopesh
Last Activity: Jul 28 '06, 05:47 AM
Joined: Jul 18 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • roopesh
    replied to Dynamically modifying Table
    in .NET
    Thanks a lot for your reply. It is a very nice example. As far as I understand your program keeps a variable in viewstate and recreates the table when ever a requst is made. Can I know whether we can save the state of the table object like this? May be I am asking a foolish question.

    Apart from that you are not dynamically creating the row in the page_load event, as you have mentioned earlier (to retain the dynamically created rows)....
    See more | Go to post

    Leave a comment:


  • roopesh
    replied to Dynamically modifying Table
    in .NET
    Please tell if I need to cut short the code.

    Regards
    Roopesh
    See more | Go to post

    Leave a comment:


  • roopesh
    replied to Dynamically modifying Table
    in .NET
    Code is a bit long :( I am trying to create a task manager. One can add tasks. Tasks can be pending tasks and completed tasks. For this purpose I have used two Tables - pending_table and completed_table . In the pending_table, each Task is represented by a CheckBox, TextBox (task desc) and an Edit button. When we click on CheckBox the row should get removed from pending_table and get added to completed_table and vice versa.
    Problem I face...
    See more | Go to post
    Last edited by roopesh; Jul 20 '06, 02:15 AM.

    Leave a comment:


  • roopesh
    replied to Adding two controls in the same cell...
    in .NET
    I have a textbox in a cell and an edit button in the adjacent one. When I click edit, a textarea should come in the place of textbox, and an update button in the place of edit button.

    (There need to be a series of textareas and edit buttons. That is why I am placing them in a table)

    Thanks and Regards
    Roopesh...
    See more | Go to post

    Leave a comment:


  • roopesh
    replied to Dynamically modifying Table
    in .NET
    But what if we need to dynamically modify the table like adding a row to the table. The code to add will occur in the some event handler not in the page_load event right? This is where I am getting stuck.

    I have also tried generating the table from the database each time when the page load happens. So, what appears to me logically is that the table should always have the recent state. But it is not happening.

    Can you...
    See more | Go to post

    Leave a comment:


  • roopesh
    replied to Dynamically modifying Table
    in .NET
    Hi
    I have modified the code a little bit. Now I store the modified table object in a session. When each postback happens the table object is updated from the session object.

    Now the problem is after the first addition further additions are not visible and it erases the checkbox (row) added initially.

    Is this a prefered approach?

    protected void addRow(object sender, EventArgs e)
    ...
    See more | Go to post
    Last edited by roopesh; Jul 19 '06, 03:21 AM.

    Leave a comment:


  • roopesh
    started a topic Adding two controls in the same cell...
    in .NET

    Adding two controls in the same cell...

    Hi

    Is it possible to add two controls in the same cell of a Table? Requirement is that I need to make only one control visible at a time.

    Thanks and regards
    Roopesh
    See more | Go to post

  • roopesh
    started a topic Dynamically modifying Table
    in .NET

    Dynamically modifying Table

    Hi

    I am a newbee in asp.net. I want to create a table dynamically. Say there are two buttons 'add row', 'delete row' which calls addRow, deleteRow event handlers. A sample code is given below :

    Problem here is when the page is postback, pageLoad is called and the Page doesnt have the updated table information. So addRow doesn't work (row.count will always return 0).

    How to solve this problem? I read that...
    See more | Go to post
No activity results to display
Show More
Working...