| | |
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
- Need Web Based Contact Us Form (PHP)
- 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)
- 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 |
.net .net2005 30minutes 2005 2008 access account arithmetic array basic binary bing button buttons center check code combobox component connectionstring crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dissertationthesis dropdownlist excel fade file-dialog folder ftp generatetags google gridview hardcopy image images input insert intel internet mobile monitor ms net networking objects output passingparameters peertopeervideostreaming picturebox picturebox1 port print problem problemwithinstallation project reports" save savedialog searchbox searchvb.net select serial shutdown soap survey table tcp temperature text textbox timer toolbox trim update updown user usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf





