Forum Moderators: open

Message Too Old, No Replies

Refreshing a table

         

fintan

4:03 pm on Jan 16, 2003 (gmt 0)

10+ Year Member



Hi I was wondering how to refresh a table after an update action has occurred

wardbekker

5:03 pm on Jan 16, 2003 (gmt 0)

10+ Year Member



fintan,

I'm guessing you mean refreshing a ASP.NET datagrid or datalist after an upgrade. Just reload the dataset and bind it to the datagrid or datalist.

fintan

5:33 pm on Jan 16, 2003 (gmt 0)

10+ Year Member



No I'm just poor old asp & I just want to reload/refresh a table after its updated.
Thanks

chris_f

5:42 pm on Jan 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The only way of doing it is to refresh the page.

Chris.

fintan

8:54 am on Jan 17, 2003 (gmt 0)

10+ Year Member



Is there no way of reloading a single table? I know that "webassist" do something similar with drop down menus.

wardbekker

9:03 am on Jan 17, 2003 (gmt 0)

10+ Year Member



fintan,

You can use frames. Besides the page with the table, you need a tiny invisible frame (1 x 1 pix for example). You can let that frame load the needed data and with javascript you can transfer it to the 'table'-frame and rebuild it with DHTML.

fintan

9:30 am on Jan 17, 2003 (gmt 0)

10+ Year Member



I'm just going to explain my situation. I've built this system for a visually impaired person and its his job to update the phone dir. Now the problem with using frames is the screen reader doesn't like them very much.

Wardbekker could you show me what you mean then I might be able to hide the frame from the screen reader.

wardbekker

2:23 pm on Jan 17, 2003 (gmt 0)

10+ Year Member



fintan,

Why not just refresh the page then? You could use a key combination for a submit.

GaryK

2:30 pm on Jan 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you put the table in an IFrame and just refresh the IFrame page? My experience has shown that screen readers can handle this with no major problems. I am a volunteer computer teacher in an old age home so we use lots of screen readers and magnifiers. :)

[Edited for spelling]

fintan

4:13 pm on Jan 17, 2003 (gmt 0)

10+ Year Member



I can't put a refresh on the page because the search engine and results page r the same. If the user navagates half way down the page & it refreshes. The screen reader jumps to the top of the page.

I'll have to see how the screen reader interpurts the iframe before I use it. I was hopeing I could just reload the table with asp.

"key combination for a submit" What do you mean? What like "Alt+1" its already done.

txbakers

5:49 pm on Jan 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why not use a response.redirect to the same page after the DB is altered. That will force a refresh with the new data.

fintan

12:52 pm on Jan 23, 2003 (gmt 0)

10+ Year Member



Could you elaberate txbakers please?
Thanks

txbakers

10:35 pm on Jan 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In your ASP code you'll have something like this:

sql = "update table set..."

cmd.execute(sql)

after all that, put this.

response.redirect(thesamepage.asp)

which will force a reload of the page.

Early netscape browsers don't like this though.

fintan

12:13 pm on Jan 29, 2003 (gmt 0)

10+ Year Member



Thanks it work.

Enigma

1:44 pm on Feb 18, 2003 (gmt 0)

10+ Year Member



Wouldn't
server.execute(thesamepage.asp)

be better than
response.redirect(thesamepage.asp)?