Not Answered: From a user control ...how can you open a new window
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngibuyspy' list.


Dennis West
From a user control ...how can you open a new window

I have a simple IbuySpy portal module that is accessed by a Tab .the purpose of this is that the clicking on the Tab would execute the Module which intern is to Open a URL in a New Window?

Any body have a solution....

Is there a way to use the redirect function or some other method to open a URL in a new window ? from a User Control.

<script runat="server">

Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

If Page.IsPostBack = False Then
Response.Redirect("https://home.theexpogroup.com/exchange/logon.asp")

End If

End Sub

</script>
Reply to this message...
 
    
Tom Ward
Dennis,

I don't know if this will help or not but I do this frequently. It is just to another page not another site.

'If just the project was selected go directly to the Edit page with the project
If Not (Request.Params("Project") Is Nothing) And Request.Params("Project") <> "" Then
Response.Redirect("~/DesktopModules/EditProject.aspx?Project=" & Request.Params("Project"))
Else

The one thing I needed to do is send the parameters to the destination because they are not available.

Let me know if this helps or not.

Thomas G. Ward

-----Original Message-----
From: Dennis West [mailto:Click here to reveal e-mail address]
Sent: Tuesday, July 30, 2002 11:59 AM
To: aspngibuyspy
Subject: [aspngibuyspy] Not Answered: From a user control ...how can you open a new window

From a user control ...how can you open a new window

I have a simple IbuySpy portal module that is accessed by a Tab .the purpose of this is that the clicking on the Tab would execute the Module which intern is to Open a URL in a New Window?

Any body have a solution....

Is there a way to use the redirect function or some other method to open a URL in a new window ? from a User Control.

<script runat="server">

Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

If Page.IsPostBack = False Then
Response.Redirect(" https://home.theexpogroup.com/exchange/logon.asp")

End If

End Sub

</script>

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
Dennis West
I am doing this already what I need to do his (open a new window)

I am trying to access the javascript function that exist on the page.aspx that the control is register too... I need to pass a 'Url' to the javascript on the aspx. page ...that will then open the window.

here more on what I mean

I need to call a javascript function from a User control

I am trying to call a javasript function that is located in the head of a .aspx page from a User Control .ascx passing the value in the .ascx to the java script function

.aspx

function openWindow(url) {

var newWin = window.open(url, 'newWin');

}

.ascx.

Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

If Page.IsPostBack = False Then

//Response.Redirect(https://home.theexpogroup.com/ExpoGroup/FirstExpo.html)

Dim url = "https://home.theexpogroup.com/ExpoGroup/FirstExpo.html"

openWindow(url) // this is wrong ? this call does not work do i need a

xxxxxx.openWindow(url)

End If

End Sub

From a user control ...how can you open a new window

I have a simple IbuySpy portal module that is accessed by a Tab .the purpose of this is that the clicking on the Tab would execute the Module which intern is to Open a URL in a New Window?

Any body have a solution....

----- Original Message -----
From: Tom Ward
To: aspngibuyspy
Sent: Wednesday, July 31, 2002 9:36 AM
Subject: [aspngibuyspy] RE: Not Answered: From a user control ...how can you open a new window

Dennis,

I don't know if this will help or not but I do this frequently. It is just to another page not another site.

'If just the project was selected go directly to the Edit page with the project

If Not (Request.Params("Project") Is Nothing) And Request.Params("Project") <> "" Then

Response.Redirect("~/DesktopModules/EditProject.aspx?Project=" & Request.Params("Project"))

Else

The one thing I needed to do is send the parameters to the destination because they are not available.

Let me know if this helps or not.

Thomas G. Ward

-----Original Message-----
From: Dennis West [mailto:Click here to reveal e-mail address]
Sent: Tuesday, July 30, 2002 11:59 AM
To: aspngibuyspy
Subject: [aspngibuyspy] Not Answered: From a user control ...how can you open a new window

From a user control ...how can you open a new window

I have a simple IbuySpy portal module that is accessed by a Tab .the purpose of this is that the clicking on the Tab would execute the Module which intern is to Open a URL in a New Window?

Any body have a solution....

Is there a way to use the redirect function or some other method to open a URL in a new window ? from a User Control.

<script runat="server">

Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

If Page.IsPostBack = False Then
Response.Redirect("https://home.theexpogroup.com/exchange/logon.asp")

End If

End Sub

</script>

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
Jordan Baumgardner
Try this:

strFeatures='dialogWidth=600px;dialogHeight=600px;center=yes';
myAttributes= 'Some String to pass to the window, can contain information
for the window to process if you don't want it in the URL';
myvalue = window.showModalDialog('memo_helper.htm',myAttributes,
strFeatures);

To retrieve the Attributes in the window use:
gs_params = window.dialogArguments

To send a value back use:
window.returnValue = 'SomeValue';

This is a Modal window, and there is a "Non-Modal" version. I forget what it
is, but I'm sure that a search of showModalDialog will have a "See Also"
that will point to it.

HTH.

----------------------------------------------------------------------------
----

Jordan Baumgardner
303-652-1180 (W)
503-709-4935 (C)
Click here to reveal e-mail address
-----Original Message-----
From: Dennis West [mailto:Click here to reveal e-mail address]
Sent: Wednesday, July 31, 2002 12:28 PM
To: aspngibuyspy
Subject: [aspngibuyspy] RE: Not Answered: From a user control ...how can
you open a new window

I am doing this already what I need to do his (open a new window)

I am trying to access the javascript function that exist on the page.aspx
that the control is register too... I need to pass a 'Url' to the javascript
on the aspx. page ...that will then open the window.

here more on what I mean

I need to call a javascript function from a User control

I am trying to call a javasript function that is located in the head of a
.aspx page from a User Control .ascx passing the value in the .ascx to the
java script function

.aspx

function openWindow(url) {

var newWin = window.open(url, 'newWin');

}

.ascx.

Public Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

If Page.IsPostBack = False Then

//Response.Redirect(https://home.theexpogroup.com/ExpoGroup/FirstExpo.html)

Dim url = "https://home.theexpogroup.com/ExpoGroup/FirstExpo.html"

openWindow(url) // this is wrong ? this call does not work do i need a

xxxxxx.openWindow(url)

End If

End Sub

From a user control ...how can you open a new window

I have a simple IbuySpy portal module that is accessed by a Tab .the
purpose of this is that the clicking on the Tab would execute the Module
which intern is to Open a URL in a New Window?

Any body have a solution....

----- Original Message -----
From: Tom Ward
To: aspngibuyspy
Sent: Wednesday, July 31, 2002 9:36 AM
Subject: [aspngibuyspy] RE: Not Answered: From a user control ...how can
you open a new window

Dennis,

I don’t know if this will help or not but I do this frequently. It is
just to another page not another site.

'If just the project was selected go directly to the Edit
page with the project

If Not (Request.Params("Project") Is Nothing) And
Request.Params("Project") <> "" Then

Response.Redirect("~/DesktopModules/EditProject.aspx?Project=" &
Request.Params("Project"))

Else

The one thing I needed to do is send the parameters to the destination
because they are not available.

Let me know if this helps or not.

Thomas G. Ward

-----Original Message-----
From: Dennis West [mailto:Click here to reveal e-mail address]
Sent: Tuesday, July 30, 2002 11:59 AM
To: aspngibuyspy
Subject: [aspngibuyspy] Not Answered: From a user control ...how can you
open a new window

From a user control ...how can you open a new window

I have a simple IbuySpy portal module that is accessed by a Tab .the
purpose of this is that the clicking on the Tab would execute the Module
which intern is to Open a URL in a New Window?

Any body have a solution....

Is there a way to use the redirect function or some other method to open
a URL in a new window ? from a User Control.

<script runat="server">

Public Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

If Page.IsPostBack = False Then

Response.Redirect("https://home.theexpogroup.com/exchange/logon.asp")

End If

End Sub

</script>

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
Brian Desmond
Hi,

I’d have the control register some client side JavaScript which opens a
new Window. There won’t be any need for any codebehind to execute to do
this, just have the Javascript do its business.

--Brian Desmond
HYPERLINK "mailto:Click here to reveal e-mail address"Click here to reveal e-mail address
-----Original Message-----
From: Dennis West [mailto:Click here to reveal e-mail address]
Sent: Tuesday, July 30, 2002 11:59 AM
To: aspngibuyspy
Subject: [aspngibuyspy] Not Answered: From a user control ...how can you
open a new window

From a user control ...how can you open a new window

I have a simple IbuySpy portal module that is accessed by a Tab .the
purpose of this is that the clicking on the Tab would execute the Module
which intern is to Open a URL in a New Window?

Any body have a solution....

Is there a way to use the redirect function or some other method to open
a URL in a new window ? from a User Control.

<script runat="server">

Public Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

If Page.IsPostBack = False Then
Response.Redirect("HYPERLINK
"https://home.theexpogroup.com/exchange/logon.asp"https://home.theexpogr
oup.com/exchange/logon.asp")

End If

End Sub

</script>

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002
Reply to this message...
 
    
Duncan C. Ion
Dennis,
You might try using the System.Web.UI.Html32TextWriter to write
something like:

'

<Script Language='javascript'> var something = "Value"; </script>

'

HTH

Duncan

email: Click here to reveal e-mail address
All outgoing email is scanned using the Norton Antivirus system.
This email is private and may contain confidential matter. If you are
not the designated recipient, please return this email to
<mailto:Click here to reveal e-mail address> Click here to reveal e-mail address

Thank you.

-----Original Message-----
From: Dennis West [mailto:Click here to reveal e-mail address]
Sent: 31 July 2002 19:28
To: aspngibuyspy
Subject: [aspngibuyspy] RE: Not Answered: From a user control ...how can
you open a new window

I am doing this already what I need to do his (open a new window)

I am trying to access the javascript function that exist on the
page.aspx that the control is register too... I need to pass a 'Url' to
the javascript on the aspx. page ...that will then open the window.

here more on what I mean

I need to call a javascript function from a User control

I am trying to call a javasript function that is located in the head of
a .aspx page from a User Control .ascx passing the value in the .ascx to
the java script function

.aspx

function openWindow(url) {

var newWin = window.open(url, 'newWin');

}

.ascx.

Public Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

If Page.IsPostBack = False Then

//Response.Redirect(
<https://home.theexpogroup.com/ExpoGroup/FirstExpo.html>
https://home.theexpogroup.com/ExpoGroup/FirstExpo.html)

Dim url = " <https://home.theexpogroup.com/ExpoGroup/FirstExpo.html>
https://home.theexpogroup.com/ExpoGroup/FirstExpo.html"

openWindow(url) // this is wrong ? this call does not work do i need a

xxxxxx.openWindow(url)

End If

End Sub

From a user control ...how can you open a new window

I have a simple IbuySpy portal module that is accessed by a Tab .the
purpose of this is that the clicking on the Tab would execute the Module
which intern is to Open a URL in a New Window?

Any body have a solution....

----- Original Message -----

From: Tom Ward <mailto:Click here to reveal e-mail address>

To: aspngibuyspy <mailto:Click here to reveal e-mail address>

Sent: Wednesday, July 31, 2002 9:36 AM

Subject: [aspngibuyspy] RE: Not Answered: From a user control ...how can
you open a new window

Dennis,

I don't know if this will help or not but I do this frequently. It is
just to another page not another site.

'If just the project was selected go directly to the Edit
page with the project

If Not (Request.Params("Project") Is Nothing) And
Request.Params("Project") <> "" Then

Response.Redirect("~/DesktopModules/EditProject.aspx?Project=" &
Request.Params("Project"))

Else

The one thing I needed to do is send the parameters to the destination
because they are not available.

Let me know if this helps or not.

Thomas G. Ward

-----Original Message-----
From: Dennis West [mailto:Click here to reveal e-mail address]
Sent: Tuesday, July 30, 2002 11:59 AM
To: aspngibuyspy
Subject: [aspngibuyspy] Not Answered: From a user control ...how can you
open a new window

From a user control ...how can you open a new window

I have a simple IbuySpy portal module that is accessed by a Tab .the
purpose of this is that the clicking on the Tab would execute the Module
which intern is to Open a URL in a New Window?

Any body have a solution....

Is there a way to use the redirect function or some other method to open
a URL in a new window ? from a User Control.

<script runat="server">

Public Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

If Page.IsPostBack = False Then

Response.Redirect("https://home.theexpogroup.com/exchange/logon.asp")

End If

End Sub

</script>

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
Dennis West
this works

Dim url = "https://home.theexpogroup.com/ExpoGroup/FirstExpo.html"
Response.Write("<script language=""javascript"">popupWin window.open("""+ url +""")</script" + ">")
return

----- Original Message -----
From: Duncan C. Ion
To: aspngibuyspy
Sent: Wednesday, July 31, 2002 5:01 PM
Subject: [aspngibuyspy] RE: Not Answered: From a user control ...how can you open a new window

Dennis,
You might try using the System.Web.UI.Html32TextWriter to write something like:

'

<Script Language='javascript'> var something = "Value"; </script>

'

HTH

Duncan

email: Click here to reveal e-mail address
All outgoing email is scanned using the Norton Antivirus system.
This email is private and may contain confidential matter. If you are not the designated recipient, please return this email to Click here to reveal e-mail address

Thank you.

-----Original Message-----
From: Dennis West [mailto:Click here to reveal e-mail address]
Sent: 31 July 2002 19:28
To: aspngibuyspy
Subject: [aspngibuyspy] RE: Not Answered: From a user control ...how can you open a new window

I am doing this already what I need to do his (open a new window)

I am trying to access the javascript function that exist on the page.aspx that the control is register too... I need to pass a 'Url' to the javascript on the aspx. page ...that will then open the window.

here more on what I mean

I need to call a javascript function from a User control

I am trying to call a javasript function that is located in the head of a .aspx page from a User Control .ascx passing the value in the .ascx to the java script function

.aspx

function openWindow(url) {

var newWin = window.open(url, 'newWin');

}

.ascx.

Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

If Page.IsPostBack = False Then

//Response.Redirect(https://home.theexpogroup.com/ExpoGroup/FirstExpo.html)

Dim url = "https://home.theexpogroup.com/ExpoGroup/FirstExpo.html"

openWindow(url) // this is wrong ? this call does not work do i need a

xxxxxx.openWindow(url)

End If

End Sub

From a user control ...how can you open a new window

I have a simple IbuySpy portal module that is accessed by a Tab .the purpose of this is that the clicking on the Tab would execute the Module which intern is to Open a URL in a New Window?

Any body have a solution....

----- Original Message -----

From: Tom Ward

To: aspngibuyspy

Sent: Wednesday, July 31, 2002 9:36 AM

Subject: [aspngibuyspy] RE: Not Answered: From a user control ...how can you open a new window

Dennis,

I don't know if this will help or not but I do this frequently. It is just to another page not another site.

'If just the project was selected go directly to the Edit page with the project

If Not (Request.Params("Project") Is Nothing) And Request.Params("Project") <> "" Then

Response.Redirect("~/DesktopModules/EditProject.aspx?Project=" & Request.Params("Project"))

Else

The one thing I needed to do is send the parameters to the destination because they are not available.

Let me know if this helps or not.

Thomas G. Ward

-----Original Message-----
From: Dennis West [mailto:Click here to reveal e-mail address]
Sent: Tuesday, July 30, 2002 11:59 AM
To: aspngibuyspy
Subject: [aspngibuyspy] Not Answered: From a user control ...how can you open a new window

From a user control ...how can you open a new window

I have a simple IbuySpy portal module that is accessed by a Tab .the purpose of this is that the clicking on the Tab would execute the Module which intern is to Open a URL in a New Window?

Any body have a solution....

Is there a way to use the redirect function or some other method to open a URL in a new window ? from a User Control.

<script runat="server">

Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

If Page.IsPostBack = False Then
Response.Redirect("https://home.theexpogroup.com/exchange/logon.asp")

End If

End Sub

</script>

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
 
System.EventArgs
System.Object
System.Web.UI.Html32TextWriter
System.Web.UI.Page




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com