dcsimg
Results 1 to 5 of 5

Thread: HTML Table & Postback problem

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Location
    Croatia
    Posts
    23

    Exclamation HTML Table & Postback problem

    On my page I have HtmlTable that is changing it's contents with client-side script, javascript.

    It all works fine, I can add new itmes into table, but when I click server control or something like that action that reults PostBack, after the page is reopened the table is empty.

    How to fix this problem?

    I'm using VS .NET 2005 - VB.

  2. #2
    Fanatic Member
    Join Date
    May 2005
    Posts
    608

    Re: HTML Table & Postback problem

    With javascript alone, I can't think of any way.
    But since you are using VS2005, you could use atlas to store the values on the server.
    If not, a crappy fix would be to use some hidden field, write down the javascript actions in the hidden field and read that value server side. This is a bad idea and I don't recommend it, but it can be done.

    HoraShadow
    I do like the reward system. If you find that my post was useful, rate it.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    Re: HTML Table & Postback problem

    I think the hidden field is a good idea and is a better option. Atlast is a waste for a task like this.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Location
    Croatia
    Posts
    23

    Re: HTML Table & Postback problem

    I fixed the problem, with the hidden filed! It's good enough for shopping basket!

    Thanks!

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    Re: HTML Table & Postback problem

    Just out of curiosity, what information exactly do you store in this hidden field now?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width