D
Dan
We have a simple site. It's a frameset with two frames a left and a right.
The left frame is essentially a list of records from a database (using a
server-side repeater control). When you click on one of the items in the
left frame, it targets the right frame and displays a form prefilled with
information for the item you clicked.
The problem is the left frame's list just shows the names of the items, and
the name of the item is editable in the right frame. So if I change the
name of the item in the right frame and save, I need it to automatically
update item's name in the left frame. How can I accomplish this?
Is there is a way to accomplish this through server side code?
Right now we're doing a clunky javascript solution which works, but I'm
hoping there is a better way. Basically in the save event for the right
frame (in the code-behind page), after the item is saved, we redirect to a
page that says "Your information has been saved" (or something to that
effect). On this page's body's onload event (in the <body> tag, i.e.
client-side) we are targetting the left frame to refresh with javascript.
It works, but like I said it seems clunky.
Is there anyway in the save event for the right frame (in the code-behind
page), to tell the left frame to refresh.
Thanks in advance,
Dan
The left frame is essentially a list of records from a database (using a
server-side repeater control). When you click on one of the items in the
left frame, it targets the right frame and displays a form prefilled with
information for the item you clicked.
The problem is the left frame's list just shows the names of the items, and
the name of the item is editable in the right frame. So if I change the
name of the item in the right frame and save, I need it to automatically
update item's name in the left frame. How can I accomplish this?
Is there is a way to accomplish this through server side code?
Right now we're doing a clunky javascript solution which works, but I'm
hoping there is a better way. Basically in the save event for the right
frame (in the code-behind page), after the item is saved, we redirect to a
page that says "Your information has been saved" (or something to that
effect). On this page's body's onload event (in the <body> tag, i.e.
client-side) we are targetting the left frame to refresh with javascript.
It works, but like I said it seems clunky.
Is there anyway in the save event for the right frame (in the code-behind
page), to tell the left frame to refresh.
Thanks in advance,
Dan