window.top.location.href [英] window.top.location.href

查看:80
本文介绍了window.top.location.href的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ASP的新手,但是我已经用VB编程了好几年了,而且我在这个ASP上遇到了一些问题

增强我正在努力。我发现ASP很多

与我在VB中使用的不同。


我已经创建了一个ASP界面用户可以选择一个

电子邮件组,用这些电子邮件填充列表框

地址。如果用户在该列表中看到他们不想要的电子邮件,那么他们可以通过使删除

按钮无效来删除它,反之也可以添加电子邮件。我是

试图通过创建一个弹出窗口来实现这个目标

当用户点击添加或删除时按钮。在这个弹出窗口

ASP页面中,用户可以根据他们选择的按钮添加或删除额外的电子邮件

(s)地址。

之后,他们已经进行了更改,他们可以点击提交

按钮来更新上一页。


我如何获得要弹出的ASP页面?

现在,当我使用

onclick =" window.top.location.href =''Add_Emails.asp''"我的ASP

页面在当前浏览器窗口中加载,而不是它自己的



我如何获得来自弹出ASP页面的数据在我之前的ASP页面上的列表框中发布

更改?

例如,我选择的电子邮件组有John,Betty和

Joe,但我希望Maggie加入到列表中。从理论上来说,我的

新列表应该显示John,Betty,Joe和Maggie。

I''m new to ASP, but I''ve been programming in VB for
several years, and I''m having a few issues with this ASP
enhancement I''m working on. I''ve found ASP to be a lot
different than what I''m use to in VB.

I''ve created an ASP interface where a user can select an
email group that populates a listbox with those email
addresses. If a user sees an email in that list that they
do not want then they can remove it by clinking the Delete
button and conversely do the same for Adding emails. I''m
trying to accomplish this by creating a popup window when
a use clicks the "Add or Delete" button. In this popup
ASP page the user can then Add or Delete additional email
(s) addresses depending on the button they chose. After
they have made their changes they can click the submit
button to update the previous page.

How do I get the ASP page to popup?
Right now, when I use
onclick="window.top.location.href=''Add_Emails.asp'' " my ASP
page loads itself in the current browser window instead of
it''s own.

How do I get the data from the popup ASP page to post the
changes in my listbox on the previous ASP page?
For example, the email group I chose has John, Betty, and
Joe, but I want Maggie added to the list. In theory my
new list should show John, Betty, Joe, and Maggie.

推荐答案

>如何弹出ASP页面?


查看window.open()...请参阅JavaScript新闻组。
> How do I get the ASP page to popup?

Look at window.open() ... please see a JavaScript newsgroup.
如何从弹出的ASP页面获取数据,在我之前的ASP页面上的列表框中发布
更改?
How do I get the data from the popup ASP page to post the
changes in my listbox on the previous ASP page?




你必须说

wi **************************************** ******* @ man.chew& delete = bob @ franks

..com'';


然后重建SELECT框基于request.querystring相应的。



You''ll have to say
wi***********************************************@ man.chew&delete=bob@franks
..com'';

Then rebuild the SELECT box based on request.querystring accordingly.


" Scott"写道:
"Scott" wrote:
我是ASP的新手,但我已经用VB编程了好几年了,而且我在这个ASP上遇到了一些问题增强我正在努力。我发现ASP与我在VB中的用途不同。

我创建了一个ASP界面,用户可以选择< />使用这些电子邮件地址填充列表框的电子邮件组。如果用户在该列表中看到他们不想要的电子邮件,那么他们可以通过使删除
按钮无效来删除它,反过来也可以添加电子邮件。我正在尝试通过创建一个弹出窗口来实现这个目标,当用户点击添加或删除按钮时按钮。在这个弹出的
ASP页面中,用户可以根据他们选择的按钮添加或删除其他电子邮件地址。在他们进行了更改之后,他们可以点击提交
按钮来更新上一页。

如何让ASP页面弹出?
现在,当我使用
onclick =" window.top.location.href =''Add_Emails.asp''"我的ASP
页面在当前浏览器窗口中加载,而不是它自己的。

如何从弹出的ASP页面获取数据以发布
在我以前的ASP页面上列表框中的更改?
例如,我选择的电子邮件组有John,Betty和
Joe,但我希望Maggie添加到列表中。理论上我的新列表应该显示John,Betty,Joe和Maggie。
I''m new to ASP, but I''ve been programming in VB for
several years, and I''m having a few issues with this ASP
enhancement I''m working on. I''ve found ASP to be a lot
different than what I''m use to in VB.

I''ve created an ASP interface where a user can select an
email group that populates a listbox with those email
addresses. If a user sees an email in that list that they
do not want then they can remove it by clinking the Delete
button and conversely do the same for Adding emails. I''m
trying to accomplish this by creating a popup window when
a use clicks the "Add or Delete" button. In this popup
ASP page the user can then Add or Delete additional email
(s) addresses depending on the button they chose. After
they have made their changes they can click the submit
button to update the previous page.

How do I get the ASP page to popup?
Right now, when I use
onclick="window.top.location.href=''Add_Emails.asp'' " my ASP
page loads itself in the current browser window instead of
it''s own.

How do I get the data from the popup ASP page to post the
changes in my listbox on the previous ASP page?
For example, the email group I chose has John, Betty, and
Joe, but I want Maggie added to the list. In theory my
new list should show John, Betty, Joe, and Maggie.




现在存储的电子邮件地址在哪里?它们是在数据库中还是在

文档中或硬编码到页面中?


-

Roland

这些信息的分发是希望它有用,但

没有任何保证;甚至没有适销性的暗示保证

或适合特定用途的适用性。



Where are the email addresses stored now? Are they in a database or in a
document or hard coded into the page?

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.


它们存储在SQL数据库中。


我打电话给一个存储过程,它根据从

下拉框中选择的组返回

整个电子邮件列表,并且然后使用所有

电子邮件地址填充列表框。我正在做的

网页中没有硬编码。


如果这有帮助,我使用标准按钮而不是

提交按钮,在

列表框中添加或删除电子邮件时。点击

这两个按钮之一后启动新的ASP页面时,它只有一个文本框和一个

SUBMIT按钮。

我的目的是使用相同的ASP页面来添加

和从列表框中删除电子邮件,除非有人有更好的建议。正如我之前所说,我已经完成了比ASP编程更多的VB

编程,而且我宁愿标记

电子邮件并点击删除删除它们而不是提出一个

ASP页面来做这件事,但我不知道如何在ASP中做到这一点。

这样添加电子邮件很好。
They are stored in a SQL Database.

I make a call out to a Stored Procedure that returns the
entire list of emails base on the group selected from a
dropdown box, and then populates the listbox with all the
email addresses. There is nothing hard-code in the
WebPages I''m doing.

If this helps, I using a standard button instead of a
submit button, when adding or deleting emails from the
listbox. When the new ASP page is launched after clicking
one of these two buttons, it has just a textbox and a
SUBMIT button on it.

My intention is to use this same ASP page for both adding
and deleting emails from the listbox, unless someone has a
better suggestion. As I stated before, I''ve done more VB
programming than ASP programming, and I''d rather tag the
emails and click delete to remove them than to bring up an
ASP page to do it, but I not sure how to do it in ASP.
Adding emails this way is fine.
-----原始消息-----
Scott写道:
-----Original Message-----
"Scott" wrote:
我是ASP的新手,但我已经用VB编程了好几年了,而且我在这个ASP上遇到了一些问题增强我正在努力。我发现ASP与我在VB中的用途不同。

我创建了一个ASP界面,用户可以选择< />使用这些电子邮件地址填充列表框的电子邮件组。如果用户在该列表中看到他们不想要的
的电子邮件,那么他们可以通过使
删除按钮无效来删除它,相反地为添加电子邮件执行相同操作。
我试图通过在用户点击添加或删除时创建弹出窗口
来实现此目的。按钮。在这个弹出窗口的ASP页面中,用户可以根据他们选择的按钮添加或删除额外的
电子邮件地址。在他们进行了更改之后,他们可以点击提交
按钮来更新上一页。

如何让ASP页面弹出?
现在,当我使用
onclick =" window.top.location.href =''Add_Emails.asp''"我的
ASP页面在当前浏览器窗口加载自己,而不是它自己的


如何从弹出的ASP页面获取数据以发布
我在前一个ASP页面上的列表框中的更改?
例如,我选择的电子邮件组有John,Betty,
和Joe,但我希望Maggie添加到列表中。理论上我的新列表应该显示John,Betty,Joe和Maggie。
现在存储的电子邮件地址在哪里?它们是在
I''m new to ASP, but I''ve been programming in VB for
several years, and I''m having a few issues with this ASP
enhancement I''m working on. I''ve found ASP to be a lot
different than what I''m use to in VB.

I''ve created an ASP interface where a user can select an
email group that populates a listbox with those email
addresses. If a user sees an email in that list that they do not want then they can remove it by clinking the Delete button and conversely do the same for Adding emails. I''m trying to accomplish this by creating a popup window when a use clicks the "Add or Delete" button. In this popup
ASP page the user can then Add or Delete additional email (s) addresses depending on the button they chose. After
they have made their changes they can click the submit
button to update the previous page.

How do I get the ASP page to popup?
Right now, when I use
onclick="window.top.location.href=''Add_Emails.asp'' " my ASP page loads itself in the current browser window instead of it''s own.

How do I get the data from the popup ASP page to post the changes in my listbox on the previous ASP page?
For example, the email group I chose has John, Betty, and Joe, but I want Maggie added to the list. In theory my
new list should show John, Betty, Joe, and Maggie.
Where are the email addresses stored now? Are they in a



数据库中还是在文档中或硬编码到页面中?

-
Roland

这些信息的分发是希望它有用,但没有任何保证;甚至没有暗示保修
适用于特定用途的适销商。


database or in adocument or hard coded into the page?

--
Roland

This information is distributed in the hope that it will be useful, butwithout any warranty; without even the implied warranty of merchantabilityor fitness for a particular purpose.
.



这篇关于window.top.location.href的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆