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. 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.
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.
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.
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.
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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...
| |