473,399 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

No Response Redirect but something like Response Forward?

This is probably a very simple issue but I cannot find the answer
googling at the moment.

I got this function in a ASP-page VB code
Private Sub GoToTheOtherWebSite()
Dim InternetAdresPR As String
InternetAdresPR = AppSettings.TheOtherWebSite
Response.Redirect(InternetAdresPR)
End Sub

Now instead of redirecting to the other website, I want to open a new
browser window with the other website. In HTML I know what to do, but
is there some ASP-VB function to do it from the code, since in HTML I
cannot ask the AppSettings value I think.

Dec 1 '06 #1
5 3573
Server side you have no concept of a "new window". You could read this
settings server side and create the "client code" that will do that (could
be as simple as an hyperlink whose href attribute is initialized from a
server side value).

--
Patrice

<ma*********@hotmail.coma écrit dans le message de news:
11**********************@16g2000cwy.googlegroups.c om...
This is probably a very simple issue but I cannot find the answer
googling at the moment.

I got this function in a ASP-page VB code
Private Sub GoToTheOtherWebSite()
Dim InternetAdresPR As String
InternetAdresPR = AppSettings.TheOtherWebSite
Response.Redirect(InternetAdresPR)
End Sub

Now instead of redirecting to the other website, I want to open a new
browser window with the other website. In HTML I know what to do, but
is there some ASP-VB function to do it from the code, since in HTML I
cannot ask the AppSettings value I think.

Dec 1 '06 #2
This works for popups, watcth the word wrap on the code.

Private Sub popUp(ByVal strURL As String)
Dim strScript As String = "<Script Language='javascript'>"
& _
"window.open('" & strURL & "', 'popup', 'toolbar=no,
scrollbars=no, titlebar=no, width=425, height=225');" & _
"</scr" & "ipt>"
RegisterClientScriptBlock("Script", strScript)
End Sub

Patrice wrote:
Server side you have no concept of a "new window". You could read this
settings server side and create the "client code" that will do that (could
be as simple as an hyperlink whose href attribute is initialized from a
server side value).

--
Patrice

<ma*********@hotmail.coma écrit dans le message de news:
11**********************@16g2000cwy.googlegroups.c om...
This is probably a very simple issue but I cannot find the answer
googling at the moment.

I got this function in a ASP-page VB code
Private Sub GoToTheOtherWebSite()
Dim InternetAdresPR As String
InternetAdresPR = AppSettings.TheOtherWebSite
Response.Redirect(InternetAdresPR)
End Sub

Now instead of redirecting to the other website, I want to open a new
browser window with the other website. In HTML I know what to do, but
is there some ASP-VB function to do it from the code, since in HTML I
cannot ask the AppSettings value I think.
Dec 1 '06 #3

Charlie Brown schreef:
This works for popups, watcth the word wrap on the code.

Private Sub popUp(ByVal strURL As String)
Dim strScript As String = "<Script Language='javascript'>"
& _
"window.open('" & strURL & "', 'popup', 'toolbar=no,
scrollbars=no, titlebar=no, width=425, height=225');" & _
"</scr" & "ipt>"
RegisterClientScriptBlock("Script", strScript)
End Sub
Hey, this works. Can I set a login information cookie like this also,
or do I then have to go as far down as window socket programming? And
if so, is there something like a win socket lib for Visual Basic? For
the best the other website should use the same login information as the
website jumping from.

Dec 4 '06 #4
You can do anything standard javascript code can do, including cookies.

ma*********@hotmail.com wrote:
Charlie Brown schreef:
This works for popups, watcth the word wrap on the code.

Private Sub popUp(ByVal strURL As String)
Dim strScript As String = "<Script Language='javascript'>"
& _
"window.open('" & strURL & "', 'popup', 'toolbar=no,
scrollbars=no, titlebar=no, width=425, height=225');" & _
"</scr" & "ipt>"
RegisterClientScriptBlock("Script", strScript)
End Sub

Hey, this works. Can I set a login information cookie like this also,
or do I then have to go as far down as window socket programming? And
if so, is there something like a win socket lib for Visual Basic? For
the best the other website should use the same login information as the
website jumping from.
Dec 5 '06 #5

Charlie Brown schreef:
You can do anything standard javascript code can do, including cookies.
Thanks! I once had a project were I used a C win socket library to
include a scanned picture into a html message. In that case there
probably were some options we had to set which were low level. But if a
few cookies can be done with standard javascript then that's a
reassurance. Although that win socket project learned me a lot about
how HTTP works, and was fun in the end when it finallly worked,
constructing a HTTP message from scratch is real error prone, one space
too many at the wrong place and .... failure.

Thanks again for all suggestions, Marc Wentink

Dec 7 '06 #6

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

Similar topics

3
by: Bill | last post by:
I have a page that contains processed variables that I'd like to forward using the response.redirect method. However, because the response.redirect contains the page within "pagename.asp", I have...
1
by: Bill | last post by:
I'm trying to retain a value that I pass to a processing page. When the page is done processing, I use the response.redirect to forward to the page I started on, and i want that page to hold the...
3
by: Seth | last post by:
Pretty straight forward. Reason I'm asking is because I'm not sure if I should explicitly close my recordset and database connections before each redirect or get away with having a one time close...
3
by: Jed | last post by:
I have written an HttpHandler which I invoke through an ashx page. The HttpHandler does various things to process the request, then it is supposed to redirect to a confirmation page. Everything...
3
by: ASP Yaboh | last post by:
Does Response.Redirect() make a roundtrip to the client to complete the redirect? Is there a method which keeps the redirection server-side (e.g. in JPS .Forward() moves the action to a new...
1
by: Lionel | last post by:
Hi, I've a VB .Net web app (for example foo) on an internal server. In the intranet we can access this application like this : http://myserver/foo/index.aspx. Now we want to make this...
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
4
by: Bart op de grote markt | last post by:
Hello I have a website in php in which I have some kind of portal to external links that come from a database. When a user clicks on a link, "link.php" is called, does some stuff (e.g. adds 1...
0
by: airezz80 | last post by:
Hi, I am trying to achieve the following: Webform1: has a button button1 and a listbox: listbox1 webform2: two listboxes The logic behind the button is to retrieve the records from a sql db...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.