473,857 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Redirect to target _parent from codebehind

MB
Hello!

I am using a frameset and vb codebehind to work with a database.
When pressing a delete button in one of my frames, I want the hole application to be refreshed, or at least another of my frames to be refreshed. I don't really understand how to do this.

I tried with response.redire ct("Frameset1.h tm") but I can't set target frame _parent for this command.
I regular <a href="Frameset1 .htm" target="_parent ">test</a> would solve my problem, but I want to do this from codebehind and not by letting the user click more than the delete button.

How could I solve this issue?

Regards Magnus
Nov 17 '05 #1
5 7201
Hi,

Use Page RegisterStartup script to embed javascript that change other
frame src.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #2
Hi Magnus,

I think you only need call some client side JScript to the refresh the
frames. For example to refresh the whole page (all Frames):

window.parent.l ocation="...."

To refresh a particular frame:

window.parent.f rames("FrameID" ).location="... "

Luke

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
http://www.microsoft.com/security/se...s/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026."

Nov 17 '05 #3
MB
Thank you!

Unfortunately I'm not sop familiar with asp.net environment so I wonder how
to call this from a vb codebehind function.

Regards Magnus

"MSFT" <lu******@onlin e.microsoft.com > wrote in message
news:re******** ******@cpmsftng xa06.phx.gbl...
Hi Magnus,

I think you only need call some client side JScript to the refresh the
frames. For example to refresh the whole page (all Frames):

window.parent.l ocation="...."

To refresh a particular frame:

window.parent.f rames("FrameID" ).location="... "

Luke

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
http://www.microsoft.com/security/se...s/ms03-026.asp and/or to visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026."

Nov 17 '05 #4
Hi Magnus,

You can write the script to client side with RegisterStartup Script for
example:

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Dim strClientScript As String

strClientScript = "<script language=JavaSc ript> "

strClientScript +=
"window.parent. frames(""Anothe rFrame"").locat ion=""\Another. aspx"" "

strClientScript += " </script>"
Me.RegisterStar tupScript("ddd" , strClientScript )

End Sub

Luke

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
http://www.microsoft.com/security/se...s/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026."

Nov 17 '05 #5
There is no namespace needed. You can refer to its document in MSDN:

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwebu ipageclassregis terstartupscrip ttopic.asp

Luke

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
http://www.microsoft.com/security/se...s/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026."

Nov 17 '05 #6

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

Similar topics

1
2031
by: Jackson | last post by:
Anyone now how to redirect my asp page, from a _top frame to the _parent frame?
9
2294
by: middletree | last post by:
In using a page with IFrame, I woudl like to write a line like this: If (certain criteria met) then response.redirect(somepage.asp) end if Pretty simple, except that I would like to make it to the full page. In other words, if it were a regular HTML hyperlink, the code would be <a href=somepage.asp? target="_parent">
3
7626
by: Steve | last post by:
I have a page which has some frames. After processing one of the pages I want to redirect to another frameset. However, when I use Response.Redirect I end up with a frameset with the frameset rather than just the new frameset. I have had to resort to using Javascript to do this but I'd prefer to use the server. Any ideas ho to do this?
2
4076
by: Rob | last post by:
Hi Gang: I have a page that loads a remote page into an IFRAME. I don't have any control over this remote page though the page is owned by the same company I work for. The problem is that all of the pages have <base target='_parent'> specified -- so every link will bust out of the IFRAME. One solution I thought of was to load the page via a server side language,
1
6038
by: Gerald Shastri | last post by:
Hi, I have a page which is being generated by a CMS and I can't control the links which are being outputted. I want to add a target = "_parent" attribute to all the links on my page using javascript. Can anyone tell me how to do it. Thanks a lot. Gerald.
9
20846
The1corrupted
by: The1corrupted | last post by:
Alright, I have a meta tag and I'm working with frames, so I want the meta tag to target the good ol' "_parent" put when I put this code in.. <meta http-equiv='refresh' content='0; url=exampleurl.html' target='_parent'> It doesn't work like I want it to.
0
5454
by: oopaevah | last post by:
Hi, I have a set of valid xhtml pages that a third party web site is integrating with via an <iframein his own page. This retains his own branding template in the header and footer, with the iframe containing my pages in the middle of the screen. When it is time to exit my pages, to take the user back to the third party web site, I need to direct the browser out of the iframe and to one of his pages. I leave it at that and his site...
2
1668
by: Chris Marsh | last post by:
All We have a requirement to add a "target" attribute with a value of "_parent" to any links in a given .aspx page, UNLESS a target has already been specified for that link. We are not in control of content, the page in question is referenced from an iframe, and we need any links from this page to open in the browser window rather than the iframe. We already have a Response filter in operation which replaces a token with a specified URL...
1
4633
by: =?Utf-8?B?Sko=?= | last post by:
Hi all, I have a help page that I have to (against my better judgement) open up in a new window, which will show the help for the current page the user is on. So in my master page I have a bulletedlist that I populate at runtime (so that I can put a request variable on the link in the listitem's value property). <asp:BulletedList runat="server" ID="lstHelp" Target="_blank" DisplayMode="HyperLink"></asp:BulletedList> This all works...
0
9768
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11083
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10808
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10394
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9549
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5774
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5971
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4592
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
2
4191
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.