471,049 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Force different page to postback.

Any ideas how I can have a button click on one open page force a postback on
a different page.
Feb 23 '06 #1
6 2324
Shawn,
without having the button click load the second page in some way into the
browser, and calling its __doPostback client script method, I fail to
understand the logic of why you need to perform this action. Sometimes when
you provide more information, somebody will come up with a more
straightforward technique to accomplish your goal?
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Shawn" wrote:
Any ideas how I can have a button click on one open page force a postback on
a different page.

Feb 23 '06 #2
Well, basically I have a page that has a custom control with a hyperlink
that opens a new page. I want the closing of that page to cause the parent
page to postback so that I can get a listbox control in the custom control
to make a new call to the database.

The new page that is opened from the hyperlink is designed to add a new
record to the database and the calling control should then automatically
pull that new record.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:46**********************************@microsof t.com...
Shawn,
without having the button click load the second page in some way into the
browser, and calling its __doPostback client script method, I fail to
understand the logic of why you need to perform this action. Sometimes
when
you provide more information, somebody will come up with a more
straightforward technique to accomplish your goal?
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Shawn" wrote:
Any ideas how I can have a button click on one open page force a postback
on
a different page.

Feb 23 '06 #3
OK.

One way is for the hyperlink to use client script to open a new window, and
then you can have the return values come back to the parent page. Here is an
article or two that illustrate one techinque:

http://www.eggheadcafe.com/articles/20050319.asp (with postback in parent)

http://www.eggheadcafe.com/articles/20060117.asp (simplified popup technique)

Peter


--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Shawn" wrote:
Well, basically I have a page that has a custom control with a hyperlink
that opens a new page. I want the closing of that page to cause the parent
page to postback so that I can get a listbox control in the custom control
to make a new call to the database.

The new page that is opened from the hyperlink is designed to add a new
record to the database and the calling control should then automatically
pull that new record.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:46**********************************@microsof t.com...
Shawn,
without having the button click load the second page in some way into the
browser, and calling its __doPostback client script method, I fail to
understand the logic of why you need to perform this action. Sometimes
when
you provide more information, somebody will come up with a more
straightforward technique to accomplish your goal?
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Shawn" wrote:
Any ideas how I can have a button click on one open page force a postback
on
a different page.


Feb 23 '06 #4
Funny, I briefly looked at this article earlier, I will take the time with
it as I am using a script to open the new window already. Thanks.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:47**********************************@microsof t.com...
OK.

One way is for the hyperlink to use client script to open a new window,
and
then you can have the return values come back to the parent page. Here is
an
article or two that illustrate one techinque:

http://www.eggheadcafe.com/articles/20050319.asp (with postback in
parent)

http://www.eggheadcafe.com/articles/20060117.asp (simplified popup
technique)

Peter


--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Shawn" wrote:
Well, basically I have a page that has a custom control with a hyperlink
that opens a new page. I want the closing of that page to cause the
parent
page to postback so that I can get a listbox control in the custom
control
to make a new call to the database.

The new page that is opened from the hyperlink is designed to add a new
record to the database and the calling control should then automatically
pull that new record.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in
message
news:46**********************************@microsof t.com...
> Shawn,
> without having the button click load the second page in some way into
> the
> browser, and calling its __doPostback client script method, I fail to
> understand the logic of why you need to perform this action. Sometimes
> when
> you provide more information, somebody will come up with a more
> straightforward technique to accomplish your goal?
> Peter
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
>
>
> "Shawn" wrote:
>
>> Any ideas how I can have a button click on one open page force a
>> postback
>> on
>> a different page.
>>
>>
>>


Feb 23 '06 #5
You might also try the JS function showModalDialog which has a return value
so that you know when the dialog has closed.

"Shawn" <sh**********@ccci.org> wrote in message
news:ee**************@TK2MSFTNGP15.phx.gbl...
Well, basically I have a page that has a custom control with a hyperlink
that opens a new page. I want the closing of that page to cause the parent
page to postback so that I can get a listbox control in the custom control
to make a new call to the database.

The new page that is opened from the hyperlink is designed to add a new
record to the database and the calling control should then automatically
pull that new record.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:46**********************************@microsof t.com...
Shawn,
without having the button click load the second page in some way into the
browser, and calling its __doPostback client script method, I fail to
understand the logic of why you need to perform this action. Sometimes
when
you provide more information, somebody will come up with a more
straightforward technique to accomplish your goal?
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Shawn" wrote:
Any ideas how I can have a button click on one open page force a
postback on
a different page.


Feb 23 '06 #6
Hi,

I've also blogged about one solution which might suit this scenario

ASP.NET: How to create a postback on a main page from a popup window
http://aspadvice.com/blogs/joteke/ar...6/15/2340.aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"Shawn" <ss******@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Funny, I briefly looked at this article earlier, I will take the time with
it as I am using a script to open the new window already. Thanks.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:47**********************************@microsof t.com...
OK.

One way is for the hyperlink to use client script to open a new window,
and
then you can have the return values come back to the parent page. Here is
an
article or two that illustrate one techinque:

http://www.eggheadcafe.com/articles/20050319.asp (with postback in
parent)

http://www.eggheadcafe.com/articles/20060117.asp (simplified popup
technique)

Peter


--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Shawn" wrote:
Well, basically I have a page that has a custom control with a hyperlink
that opens a new page. I want the closing of that page to cause the
parent
page to postback so that I can get a listbox control in the custom
control
to make a new call to the database.

The new page that is opened from the hyperlink is designed to add a new
record to the database and the calling control should then automatically
pull that new record.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in
message
news:46**********************************@microsof t.com...
> Shawn,
> without having the button click load the second page in some way into
> the
> browser, and calling its __doPostback client script method, I fail to
> understand the logic of why you need to perform this action. Sometimes
> when
> you provide more information, somebody will come up with a more
> straightforward technique to accomplish your goal?
> Peter
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
>
>
> "Shawn" wrote:
>
>> Any ideas how I can have a button click on one open page force a
>> postback
>> on
>> a different page.
>>
>>
>>


Feb 23 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Tom | last post: by
1 post views Thread by Julie Barnet | last post: by
5 posts views Thread by Jeronimo Bertran | last post: by
2 posts views Thread by Byron Hopp [MCS] | last post: by
2 posts views Thread by DB | last post: by
1 post views Thread by =?Utf-8?B?QnJ5YW4=?= | last post: by

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.