Questions tagged [cross-page-posting]

By default, buttons and other controls that cause a postback on an ASP.NET Web page submit the page back to itself. This is part of the round-trip cycle that ASP.NET Web pages go through as part of their normal processing.

By default, buttons and other controls that cause a postback on an ASP.NET Web page submit the page back to itself. This is part of the round-trip cycle that ASP.NET Web pages go through as part of their normal processing.

Under some circumstances, you might want to post one page to another page. For example, you might be creating a multi-page form that collects different information on each page. In that case, you can configure certain controls (those that implement the IButtonControl interface, such as the Button control) on the page to post to a different target page. This is referred to as cross-page posting. Cross-page posting provides some advantages over using the Transfer method to redirect to another page.

More Info on MSDN here

25 questions
7
votes
5 answers

Why is Page.PreviousPage always null?

I am experimenting with cross-page posting by following this MSDN article. I have this code: CrossPagePosting1.aspx

Page 1


brainbolt
  • 616
  • 1
  • 10
  • 24
6
votes
2 answers

What is cross-page posting in ASP.NET?

I have a few questions about cross-page posting in ASP.NET: What is cross-page posting in ASP.NET? When should I consider using it in my web application? What are pros and cons of cross-page posting?
ACP
  • 34,682
  • 100
  • 231
  • 371
3
votes
3 answers

ASP.NET webforms listbox - cross-page posting

I'm new to ASP.NET, and I'm having a problem getting a listbox to return the proper data when posting to another page. I have gotten dropdownlists and radio buttons to work. For instance, for dropdownlists, I simply did this: Public ReadOnly…
Geo Ego
  • 1,315
  • 7
  • 27
  • 53
3
votes
1 answer

PreviousPage is null when attempting a cross-page postback using a button and the PostBackURL attribute

I followed the tutorial: Getting Public Property Values from the Source Page on MSDN and I started a fresh Web Forms site and created the below two pages. They work just fine. Now, if I copy paste these into my other Web Forms project then…
Victorio Berra
  • 2,760
  • 2
  • 28
  • 53
3
votes
1 answer

Cross Page Posting not working

I am trying to pass the value of a variable from one page to another using cross page post-back using this code: on page1:
Seema
  • 107
  • 2
  • 5
  • 13
2
votes
1 answer

target aspx page is not displayed when crossposting

I am new to ASP.NET. I am experimenting with webforms. I have 2 pages: NewOrder.aspx which captures the user's order and then crossposts to SaveOrder.aspx where I want to save the order and display some information back to the user. …
kfc
  • 291
  • 7
  • 24
2
votes
1 answer

Multiple previous page

is it possible to add more than one previous page tag like <%@ PreviousPageType VirtualPath="~/Default3.aspx" %> <%@ PreviousPageType VirtualPath="~/Default3.aspx" %> Default3.aspx:
user1645200
  • 135
  • 2
  • 13
2
votes
2 answers

Is it possible to have multiple target pages with cross page posting?

I have a web page that uses cross page posting to post to a different target page. A new requirement has arisen that means that there could be 4 different target pages to post too depending on what data was entered on the client. Is it possible to…
Simon Keep
  • 9,886
  • 9
  • 63
  • 78
1
vote
1 answer

Cross-page postbacks and back again retaining data from source page

Is it possible to use cross-page postbacks (or a similar method, perhaps Server.Transfer) to post form data (say, Data-set A) to a page, which then allows the user to add some additional information (say, Data-set B) and then postback to the…
Kasaku
  • 2,192
  • 16
  • 26
1
vote
2 answers

asp.net 4.5 PreviousPage is null with cross page posting using a master page

Notes: I am using asp.net 4.5 I am using a master page FriendlyURLs is installed by default I am trying to cross page post using the POST method On the target url, it comes back with PreviousPage = null Is this due to…
1
vote
0 answers

Cannot Unregister UpdatePanel exception with Cross Page Posting

I am getting the dreaded exception "Cannot unregister UpdatePanel with ID 'UpdatePanel' since it was not registered with the ScriptManager" when trying to combine a popup window and some Cross-Page Posting. I've been able to reproduce the problem…
Wonko the Sane
  • 10,623
  • 8
  • 67
  • 92
1
vote
4 answers

ASP.Net Cross Page Posting

Currently I have two pages: The first page contains an input form, and the 2nd page generates an excel document. The input form's button posts to this 2nd page. What I'd like to do is add a second button which also posts to the 2nd page; however,…
John
  • 17,163
  • 16
  • 65
  • 83
1
vote
0 answers

.Net & JQuery - Cross-Page postback of part of a page

I am wondering if there is a way to perform a cross page postback while maintaining the source event and viewstate. Below is a longer explanation. I have a page (Control.aspx) where I am loading templates/controls based on query string parameters. …
mrK
  • 2,208
  • 4
  • 32
  • 46
0
votes
2 answers

Open datagridview in a new window...asp.net

Can anyone provide a simple way to get mys asp.net datagridview to open in a new window? Or even have a datagrid in it's own page but callable from any other page on my site. I basically want to have the effect of setting parameters in a text box,…
Dylan Jackson
  • 801
  • 1
  • 17
  • 33
0
votes
1 answer

One aspx page, two cross-page postbacks

Scenario I have a site where users can register for a course, I'm developing a new feature allowing existing students to login with an email & password and register using their previous details. Architecture Register.aspx contains an email and…
Naeem Sarfraz
  • 7,360
  • 5
  • 37
  • 63
1
2