asp.net synchronising question

  • Thread starter Thread starter Steve Marshall
  • Start date Start date
S

Steve Marshall

I'm very new to ASP.NET and I'm develooing an application with an SQL
Server database behind it. I have a form where the user can search
for records, and the summary results are shown in a GridView. They
can select one of these (using the GridView select mechanism) then
click an Edit hyperlink, which will take them to another window which
shows the full details of the record, and they can edit it as
required. When they save the updated record, the edit window closes,
revealing the window with the Gridview again. It's done like this
because there are way too many fields in the record to fit across a
line in the grid.

The problem is that I would like to update the Gridview after editing
is done (if it is done), but I can see no way to do it, because the
window has no way of knowing when the edit window does its thing - it
doesn't know when the window opens, closes, updates the data -
nothing. In fact I can't even see an event that will tell me when a
Hyperlink is clicked! This sort of thing is trivial in a winforms
application, but I'm a bit flummoxed at how hard it appears to be in
this environment.

Anyone know a way to achieve this?
 
See this site i once made , (sorry swedish , and no i am not , once worked
for a international company :-) ) select some parts
http://www.katalog.bildelskatalogen.se/Default.aspx?id=49&lic=&x=48&y=8
and notice the changes in the recht bottom (varukorg )


As you see you can get notifications on changes in other pages , however
this requires some knowledge of javascript , i do not now if you start your
edit page as a seperate popup window , but if this is the case well then
your task is verry easy , as windows can send eachother values or even call
functions cross window

so when a value is edited in form B you can call a function to refresh in
form A

one of the sites i love the most is developer.irt.org for javascript related
issues ( the answer is always there if you can find it )
http://www.irt.org/script/script.htm
and in your case specially this section
http://www.irt.org/script/form.htm#10.3 one of these scripts can be easily
converted

hth

Michel
 
Back
Top