| | |
form submitting twice
Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Aug 2008
Posts: 6
Reputation:
Solved Threads: 0
Hi.
I need help in vb.net.
We have a page that opens a pop-up modal dialog with a form via JavaScript. The pop-up opens when a button from the parent window is clicked. The pop-up contains a textarea that has a required field validator. Once the user clicks the OK button on the pop-up, it closes itself and reloads the parent window giving it a REJECTED status and hides the button for calling the pop-up.
Everything from that point is good but when you click on the back button a few times, it goes back to the page where you have to reject the form again. The status reverts to the old one and the button calling the pop-up is shown again. When the user clicks the button, the pop-up is called and you can reject the form AGAIN.
If the form is already rejected, the pop-up should display a message saying the form is rejected instead of a textarea. It seems that the pop-up window doesn't reload itself you call it from a few pages back.
This is the page_load of the pop-up window:
Help would be appreciated. Thanks
-dork
I need help in vb.net.
We have a page that opens a pop-up modal dialog with a form via JavaScript. The pop-up opens when a button from the parent window is clicked. The pop-up contains a textarea that has a required field validator. Once the user clicks the OK button on the pop-up, it closes itself and reloads the parent window giving it a REJECTED status and hides the button for calling the pop-up.
Everything from that point is good but when you click on the back button a few times, it goes back to the page where you have to reject the form again. The status reverts to the old one and the button calling the pop-up is shown again. When the user clicks the button, the pop-up is called and you can reject the form AGAIN.
If the form is already rejected, the pop-up should display a message saying the form is rejected instead of a textarea. It seems that the pop-up window doesn't reload itself you call it from a few pages back.
This is the page_load of the pop-up window:
VB.NET Syntax (Toggle Plain Text)
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If (b_prf.PRFStatus() = Constants.PRFRejected) Then lblRequestedBy.Visible = False lblRequestedByReject.Visible = False lblDateRequested.Visible = False lblDateRequestedReject.Visible = False lblReason.Visible = False txtReason.Visible = False btnOK.Visible = False Response.Write("PRF already rejected.") Else AssignValuesToControls(b_prf.Retrieve(State.PrfID)) End If End Sub Private Sub AssignValuesToControls(ByVal prf As PRF) 'display details lblRequestedByReject.Text = prf.User lblDateRequestedReject.Text = prf.DateRequested lblPRFID.Text = prf.PRFCode End Sub
Help would be appreciated. Thanks
-dork
![]() |
Similar Threads
- Form without action "imitate" of other Form (which do have action) ??? (JavaScript / DHTML / AJAX)
- Send a text message to your phone from your site! (ColdFusion)
- Problems with form submition (JavaScript / DHTML / AJAX)
- form validation not working (JavaScript / DHTML / AJAX)
- Form not sending email (PHP)
- Need Web Based Contact Us Form (PHP)
- Submitting forms (Existing Scripts)
- filtering bad user input (Java)
- Automatically writing webpages by submitting a form... (PHP)
- Hotmail and Submitting Forms (Web Browsers)
Other Threads in the VB.NET Forum
- Previous Thread: Line By line printing on Crystal Report
- Next Thread: Localization of MSFlexgrid
| Thread Tools | Search this Thread |
"crystal .net .net2005 .net2008 2008 access add application array assignment basic beginner box browser button buttons click code combo convert cpu cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationthesis dissertationtopic dosconsolevb.net editvb.net exists fade filter firewall forms html image images input isnumericfuntioncall listview math mobile module mssqlbackend mysql navigate number opacity open panel picturebox picturebox2 port print printing printpreview record regex reports" reuse right-to-left savedialog serial settings shutdown socket sqldatbase sqlserver storedprocedure string temp temperature textbox timer timespan transparency txttoxmlconverter useraccounts usercontol usercontrol vb vb.net vb.nettoolboxvisualbasic2008sidebar vbnet vista visual visualbasic.net visualstudio.net web winforms wpf wrapingcode xml year





