| | |
form submitting twice
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
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 30minutes 2005 2008 access account arithmetic array assignment basic binary bing box button buttons center check code component connectionstring convert cpu crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist editvb.net excel file-dialog firewall folder ftp hardcopy image images insert isnumericfuntioncall login math memory mobile ms mssqlbackend mysql navigate net networking opacity output passingparameters peertopeervideostreaming picturebox1 port printpreview problemwithinstallation project record reports" reuse save savedialog serial soap storedprocedure string tcp temp text textbox timer toolbox trim update updown useraccounts usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf





