Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Force different page to postback.

Reply
Thread Tools

Force different page to postback.

 
 
Shawn
Guest
Posts: n/a
 
      02-23-2006
Any ideas how I can have a button click on one open page force a postback on
a different page.


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      02-23-2006
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.
>
>
>

 
Reply With Quote
 
 
 
 
Shawn
Guest
Posts: n/a
 
      02-23-2006
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]" <> wrote in message
news:46057A75-60E5-4480-85D9-...
> 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.
>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      02-23-2006
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]" <> wrote in message
> news:46057A75-60E5-4480-85D9-...
> > 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.
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Shawn
Guest
Posts: n/a
 
      02-23-2006
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]" <> wrote in message
news:473CA3C1-5964-4995-90F9-...
> 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]" <> wrote in
>> message
>> news:46057A75-60E5-4480-85D9-...
>> > 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.
>> >>
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
Peter Rilling
Guest
Posts: n/a
 
      02-23-2006
You might also try the JS function showModalDialog which has a return value
so that you know when the dialog has closed.

"Shawn" <> wrote in message
news:...
> 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]" <> wrote in message
> news:46057A75-60E5-4480-85D9-...
>> 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.
>>>
>>>
>>>

>
>



 
Reply With Quote
 
Teemu Keiski
Guest
Posts: n/a
 
      02-23-2006
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" <> wrote in message
news:%...
> 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]" <> wrote in message
> news:473CA3C1-5964-4995-90F9-...
>> 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]" <> wrote in
>>> message
>>> news:46057A75-60E5-4480-85D9-...
>>> > 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.
>>> >>
>>> >>
>>> >>
>>>
>>>
>>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nike air force one, air force 1, air force one low cut, air force one salewholeta@163.com Digital Photography 3 12-31-2008 04:29 PM
Nike Air Force Ones,Air Force One Air Force One-1 lky52193@gmail.com Computer Support 0 01-17-2008 04:40 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52112@gmail.com Digital Photography 0 01-15-2008 04:46 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52112@gmail.com Digital Photography 0 01-15-2008 04:34 PM
Force a postback for a page from a different frame Jeronimo Bertran ASP .Net 5 06-08-2005 05:30 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57