Hi,
I am using RadButton to cross post a page, NewOrder.aspx, to another page,SaveOrder.aspx. the form is submitted and processed in the target page but the browser stays at the first page.
if i change the RadButton to asp:Button, it works and SaveOrder.aspx is displayed.
here's my markup for the button in NewOrder.aspx that is submitting to SaveOrder.aspx
in SaveOrder.aspx i have this
basically the user fills an order in NewOrder.aspx and submits it using the RadButton to SaveOrder.aspx where it will be saved . SaveOrder.aspx will return some information back to the user. its Page_Load method executes but the browser stays at NewOrder.aspx. what i am doing wrong? thanks
I am using RadButton to cross post a page, NewOrder.aspx, to another page,SaveOrder.aspx. the form is submitted and processed in the target page but the browser stays at the first page.
if i change the RadButton to asp:Button, it works and SaveOrder.aspx is displayed.
here's my markup for the button in NewOrder.aspx that is submitting to SaveOrder.aspx
<telerik:RadButton ID="BtnSubmirOrder" runat="server" ButtonType="StandardButton" AutoPostBack="true" Text="Place order" PostBackUrl="SaveOrder.aspx"> </telerik:RadButton>in SaveOrder.aspx i have this
protected void Page_Load(object sender, EventArgs e) { if (PreviousPage==null || !PreviousPage.IsCrossPagePostBack) Response.Redirect("~/Default.aspx"); var referencingPage = PreviousPage as NewOrder; int id = Int32.Parse(referencingPage.SelectedPublicationId); DateTime neededBy = referencingPage.SelectedOrderDate; LblSummaryIsbn.Text = referencingPage.SelectedIsbn; LblSummaryNbrCopies.Text = referencingPage.NbrOfOrderedCopies; DateTime orderDate = DateTime.Now; LblSummaryOrderDate.Text = orderDate.ToShortDateString(); LblSummaryTitle.Text = referencingPage.SelectedPublicationTitle; int quantity = Int32.Parse(referencingPage.NbrOfOrderedCopies); StockContainer _context = new StockContainer(); Order newOrder = Order.CreateOrder(orderDate, quantity, neededBy, id); _context.Orders.AddObject(newOrder); _context.SaveChanges(); }basically the user fills an order in NewOrder.aspx and submits it using the RadButton to SaveOrder.aspx where it will be saved . SaveOrder.aspx will return some information back to the user. its Page_Load method executes but the browser stays at NewOrder.aspx. what i am doing wrong? thanks