Asp Net to Display the Webpage Again the Web Browser Needs to Resend
#ane
To brandish the webpage over again, the web browser needs to resend the info
Posted 20 Dec 2016 - 02:03 PM
I am using VB and javascript.
Event: i go a warning when I refresh parent page and shut child folio.
Alarm: To brandish the webpage again, the web browser needs to resend the information you lot've previously submitted.
I have a parent folio and child page
Parent page: here i have a link. user click on it and a pop up opens.
Protected Sub EditB(ByVal sender As Object, ByVal e As EventArgs) ... Dim url Equally String = "/chilpage.aspx?id=" & getID Dim s Equally String = "window.open up('" & url + "', 'popup_window', 'width=1190,height=740,left=100,height=100,resizable=yeah');" ClientScript.RegisterStartupScript(Me.GetType(), "script", s, True) ... End Sub
child page: here i desire to refresh parent folio and close child page.
Protected Sub UpdateB_Click(ByVal sender As Object, ByVal eastward As Organisation.EventArgs) Handles UpdateB.Click ... Response.Write("<script language='javascript'> window.opener.location.reload(); </script>") Response.Write("<script language='javascript'> { window.close();}</script>") ... End Sub
#2
Re: To brandish the webpage over again, the spider web browser needs to resend the info
Posted 20 December 2016 - 03:03 PM
It sounds like you sent a post request to load the folio, then the browser is confirming that y'all desire to ship the same mail request. It's typical for code that processes a form to do the work and and then redirect to a page through get, and so that if the user refreshes the folio it doesn't submit the same mail service asking again.
#3
Re: To brandish the webpage again, the web browser needs to resend the info
Posted 21 December 2016 - 07:07 AM
Cheers. I see so this mean the consequence has to be hither. I am guessing its the server tags which are causing the upshot only i practise demand them to run backend code. Could you please point to right direction? I been stuck on this upshot for last 2 months.
How can i get rid of this warning
Parent page: hither i have a link. user click on it and a popular up opens.
<form id="form1" runat="server"> ... <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="imitation" DataKeyNames="ID" AllowSorting="True" AllowPaging="truthful" PageSize="10" OnPageIndexChanging="GridView1_PageIndexChanging" OnSorting="GridView1_Sorting"> <Columns> <asp:TemplateField > <ItemTemplate> <asp:LinkButton ID="lnkEdit" runat="server" Text="Edit" onclick="EditB" /></asp:LinkButton> </ItemTemplate> ... Protected Sub EditB(ByVal sender As Object, ByVal east As EventArgs) ... Dim url As String = "/chilpage.aspx?id=" & getID Dim s Equally String = "window.open('" & url + "', 'popup_window', 'width=1190,height=740,left=100,top=100,resizable=yes');" ClientScript.RegisterStartupScript(Me.GetType(), "script", s, Truthful) ... Cease Sub
kid page: here i want to refresh parent folio and close child page.
<form id="form1" runat="server"> ... <asp:Button ID="UpdateB" runat="server" Text="Update" /> ... Protected Sub UpdateB_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles UpdateB.Click ... Response.Write("<script language='javascript'> window.opener.location.reload(); </script>") Response.Write("<script language='javascript'> { window.close();}</script>") ... End Sub
This mail has been edited by ikhlas06: 21 December 2016 - 07:19 AM
#4
Re: To display the webpage again, the spider web browser needs to resend the info
Posted 21 December 2016 - 07:33 AM
Mayhap rather than refresh by javascript. I can use VB code.
Maybe some thing like this but i get 2 fault in this code and I am non sure how to declared them:
1. Arrangement.Windows.Forms.FormClosingEventArgs is not defined
two. ParentForm is not declared
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing 'Unbind the DataGridView control in the parent form ParentForm.DataGridView1.Items.Clear() 'Now call the Load event of the parent form ParentForm.Load(Nothing, Zip) Cease Sub
#5
Re: To brandish the webpage once again, the web browser needs to resend the info
Posted 21 December 2016 - x:03 AM
I know what the solution is, but I don't know how to do it in ASP.net since it transforms the page so much. IF you could create the same form and submit it to the parent window then that will work. I'm just not sure of the manner that ASP.cyberspace wants that to be handled, since information technology takes those ASP tags and changes all of that into a agglomeration of forms and Javascript automatically.
Source: https://www.dreamincode.net/forums/topic/400111-to-display-the-webpage-again-the-web-browser-needs-to-resend-the-info/
0 Response to "Asp Net to Display the Webpage Again the Web Browser Needs to Resend"
Post a Comment