473,587 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to access another Page in code-behind

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
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003
Nov 18 '05 #1
5 2415
Dan,

I'm not sure why this seams clunky... that is the way I woud do it. No, you
cannot control a user's window refresh from the server - although you could
resend the entire frameset. Same result.

Regards,
Jason S.

"Dan" <dh******@somew here.com> wrote in message
news:#b******** ******@TK2MSFTN GP12.phx.gbl...
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
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003

Nov 18 '05 #2
Dan
Thanks for the response.

The real reason for wanting a better solution is because our application is
actually a lot more complicated than I posted originally but the same
principle applies. In our project, the list in the left frame is actually a
treeview, and the goal is to update the treenode's text with the appropriate
changes, while at the same time keeping the treeview's state by remembering
what nodes are expanded.

It's basically like the windows explorer and how it deals with files and
folders.

If I simply refresh the left frame, the entire treeview must be reloaded
from scratch and no state is able to be kept (the user is forced to drill
down to get to where they were before).

I was hoping there was a way to simple reference the left frame's treeview
and change it from the code-behind page of the right frame. There are other
options that I've considered which require much more work, but I thought I'd
see if there was an easier way before I started coding with those.

Thanks,
Dan
"Jason S" <so*****@somewh ere.com> wrote in message
news:e0******** ******@TK2MSFTN GP09.phx.gbl...
Dan,

I'm not sure why this seams clunky... that is the way I woud do it. No, you cannot control a user's window refresh from the server - although you could resend the entire frameset. Same result.

Regards,
Jason S.

"Dan" <dh******@somew here.com> wrote in message
news:#b******** ******@TK2MSFTN GP12.phx.gbl...
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
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003
Nov 18 '05 #3
Ah, see, you didn't represent the entire problem. If I were you I would
save the path in the viewstate so that if I had to refresh it I could come
back to that area for the user. A la MSDN library
(msdn.microsoft .com/library).

As far as accessing the page across the frame from another page on the
server I really don't see that. It's an interesting question from the
perspective of the container page though. I don't know if you could make
the framesets runat=server or not but that may be a way.

Regards,
Jason

"Dan" <dh******@somew here.com> wrote in message
news:ey******** ******@TK2MSFTN GP10.phx.gbl...
Thanks for the response.

The real reason for wanting a better solution is because our application is actually a lot more complicated than I posted originally but the same
principle applies. In our project, the list in the left frame is actually a treeview, and the goal is to update the treenode's text with the appropriate changes, while at the same time keeping the treeview's state by remembering what nodes are expanded.

It's basically like the windows explorer and how it deals with files and
folders.

If I simply refresh the left frame, the entire treeview must be reloaded
from scratch and no state is able to be kept (the user is forced to drill
down to get to where they were before).

I was hoping there was a way to simple reference the left frame's treeview
and change it from the code-behind page of the right frame. There are other options that I've considered which require much more work, but I thought I'd see if there was an easier way before I started coding with those.

Thanks,
Dan
"Jason S" <so*****@somewh ere.com> wrote in message
news:e0******** ******@TK2MSFTN GP09.phx.gbl...
Dan,

I'm not sure why this seams clunky... that is the way I woud do it. No, you
cannot control a user's window refresh from the server - although you

could
resend the entire frameset. Same result.

Regards,
Jason S.

"Dan" <dh******@somew here.com> wrote in message
news:#b******** ******@TK2MSFTN GP12.phx.gbl...
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
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003

Nov 18 '05 #4
Dan
Thanks for the help.

I ended up having the right frame post, save, set a couple session
variables, and redirect to a page whose onload event submits the left frame.
The left frame then recursively loops through the treenodes until it finds
the one that has been edited (comparing its id with that of 1 of the session
variables), and changes its text to the new text (from the other session
variable). This way the tree keeps its state (remembering which branches
were expanded) and the text of the node changes appropriately. Still wish
there was a better way though.

Thanks,
Dan
"Jason S" <so*****@somewh ere.com> wrote in message
news:ey******** ******@TK2MSFTN GP09.phx.gbl...
Ah, see, you didn't represent the entire problem. If I were you I would
save the path in the viewstate so that if I had to refresh it I could come
back to that area for the user. A la MSDN library
(msdn.microsoft .com/library).

As far as accessing the page across the frame from another page on the
server I really don't see that. It's an interesting question from the
perspective of the container page though. I don't know if you could make
the framesets runat=server or not but that may be a way.

Regards,
Jason

"Dan" <dh******@somew here.com> wrote in message
news:ey******** ******@TK2MSFTN GP10.phx.gbl...
Thanks for the response.

The real reason for wanting a better solution is because our application is
actually a lot more complicated than I posted originally but the same
principle applies. In our project, the list in the left frame is actually a
treeview, and the goal is to update the treenode's text with the appropriate
changes, while at the same time keeping the treeview's state by

remembering
what nodes are expanded.

It's basically like the windows explorer and how it deals with files and
folders.

If I simply refresh the left frame, the entire treeview must be reloaded
from scratch and no state is able to be kept (the user is forced to drill down to get to where they were before).

I was hoping there was a way to simple reference the left frame's treeview and change it from the code-behind page of the right frame. There are

other
options that I've considered which require much more work, but I thought

I'd
see if there was an easier way before I started coding with those.

Thanks,
Dan
"Jason S" <so*****@somewh ere.com> wrote in message
news:e0******** ******@TK2MSFTN GP09.phx.gbl...
Dan,

I'm not sure why this seams clunky... that is the way I woud do it. No,
you
cannot control a user's window refresh from the server - although you

could
resend the entire frameset. Same result.

Regards,
Jason S.

"Dan" <dh******@somew here.com> wrote in message
news:#b******** ******@TK2MSFTN GP12.phx.gbl...
> 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
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003
>
>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.548 / Virus Database: 341 - Release Date: 12/5/2003
Nov 18 '05 #5
Hmm, too bad you can't just save the id of the last leaf that was opened and
then call something like tree.navigateto (leafID) and let the control sort it
out.

Jason S.

"Dan" <dh******@somew here.com> wrote in message
news:e8******** ******@TK2MSFTN GP09.phx.gbl...
Thanks for the help.

I ended up having the right frame post, save, set a couple session
variables, and redirect to a page whose onload event submits the left frame. The left frame then recursively loops through the treenodes until it finds
the one that has been edited (comparing its id with that of 1 of the session variables), and changes its text to the new text (from the other session
variable). This way the tree keeps its state (remembering which branches
were expanded) and the text of the node changes appropriately. Still wish
there was a better way though.

Thanks,
Dan
"Jason S" <so*****@somewh ere.com> wrote in message
news:ey******** ******@TK2MSFTN GP09.phx.gbl...
Ah, see, you didn't represent the entire problem. If I were you I would
save the path in the viewstate so that if I had to refresh it I could come
back to that area for the user. A la MSDN library
(msdn.microsoft .com/library).

As far as accessing the page across the frame from another page on the
server I really don't see that. It's an interesting question from the
perspective of the container page though. I don't know if you could make the framesets runat=server or not but that may be a way.

Regards,
Jason

"Dan" <dh******@somew here.com> wrote in message
news:ey******** ******@TK2MSFTN GP10.phx.gbl...
Thanks for the response.

The real reason for wanting a better solution is because our application
is
actually a lot more complicated than I posted originally but the same
principle applies. In our project, the list in the left frame is actually
a
treeview, and the goal is to update the treenode's text with the

appropriate
changes, while at the same time keeping the treeview's state by

remembering
what nodes are expanded.

It's basically like the windows explorer and how it deals with files

and folders.

If I simply refresh the left frame, the entire treeview must be reloaded from scratch and no state is able to be kept (the user is forced to

drill down to get to where they were before).

I was hoping there was a way to simple reference the left frame's treeview and change it from the code-behind page of the right frame. There are

other
options that I've considered which require much more work, but I thought I'd
see if there was an easier way before I started coding with those.

Thanks,
Dan
"Jason S" <so*****@somewh ere.com> wrote in message
news:e0******** ******@TK2MSFTN GP09.phx.gbl...
> Dan,
>
> I'm not sure why this seams clunky... that is the way I woud do it. No, you
> cannot control a user's window refresh from the server - although
you could
> resend the entire frameset. Same result.
>
> Regards,
> Jason S.
>
> "Dan" <dh******@somew here.com> wrote in message
> news:#b******** ******@TK2MSFTN GP12.phx.gbl...
> > 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
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003
> >
> >
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.548 / Virus Database: 341 - Release Date: 12/5/2003

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2308
by: jason | last post by:
Is there a way - possibly a disconnected rs? - to update the contents of an existing pulldown on a page without having to re-submit the page for the user to see the pulldown populated with an additional value? I realise there are javascript possibilities (and I am still searching for a usable one) but I thought perhaps it may be possible to...
20
2468
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to the site, and then i have to select the file to upload.. i used sendkeys.. and i worked perfect.. BUT ... the computer must be locked for security (...
2
3872
by: Dave Bootsma | last post by:
Is it possible to programatically save a certain image from a certain web page? I want to automatically get a specific graphic from a specific web page programatically so I can automate the task. I know I can NAVIGATE to the page with the MS web browser control, but at that point I am stumped as to wether I can even save the page... TIA
0
7920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7973
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5394
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.