Two redirects to the same page?

DW CS3 - ASP

Through a former (but excellent) training DVD to create registration forms Insert/Update/Delete using DW & ASP.

Two forms are created on the same page - a record of update and delete record.  Update works, but delete creates an error:

Microsoft VBScript error "800 a 0411" compilation

Name redefined

/mysitename/myFolder/admin_edit.asp line 95

Dim MM_editRedirectUrl

This error is apparently due to the different redirect for each form URL:

' add the query string to the redirect URL
Dim MM_editRedirectUrl
MM_editRedirectUrl = "admin_edit.asp".
If (Request.QueryString <>"") then
If (InStr (1, MM_editRedirectUrl, "?", vbTextCompare in) = 0) then
MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
On the other
MM_editRedirectUrl = MM_editRedirectUrl & "" & Request.QueryString
End If
End If
Response.Redirect (MM_editRedirectUrl)
End If
End If
% >

' add the query string to the redirect URL
Dim MM_editRedirectUrl
MM_editRedirectUrl = "admin_home.asp".
If (Request.QueryString <>"") then
If (InStr (1, MM_editRedirectUrl, "?", vbTextCompare in) = 0) then
MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
On the other
MM_editRedirectUrl = MM_editRedirectUrl & "" & Request.QueryString
End If
End If
Response.Redirect (MM_editRedirectUrl)
End If

End If
% >

I read that rename the second MM_editRedirectUrl Sun of Sun MM_editRedirectUrl_2 will make things work properly and he DID!  However, does make for an unstable environment; and if yes, what is the best approach to resolve this?

OK, that makes sense. The problem stands and the original solution. Loading edit/detail page he sees scripts and variables of these two behaviors, and that the same variable name is used in both cases. So to change the names of variables in one or the other behaviors will work and will not cause any instability.

Tags: Dreamweaver

Similar Questions

  • How can I open now two copies of the same page

    As a shortcut to business I cut and paste a copy of one web page to another copy. The new feature does not allow two copies of the same page. Is there a way to force the two copies?

    • Press the SHIFT key while an entry in the drop-down list is highlighted to disable 'Switch to the tab' and see the URL.
    • Use the right arrow to select an element marked as switch to tab in the menu drop-down and copy the URL in the address bar.
    • Open the URL in a new tab using Alt + Enter on the highlighted entry.
    • Open the URL in the current tab by using shift + enter on the highlighted entry.
  • Redirect to the same page with the values of the variables

    Hello

    I develop a form to report data of the certain date range provided by the user.

    The problem is that I have to redirect the page back to the original page with the error message "not found in the date range" If the provided date range contains all the data in the database. I am able to redirect the page to the original page for help:

    < cfif queryname. RecordCount EQ 0 >

    < cfset action 'error' = >

    < Cflocation >

    < / cfif >

    And I use the < cfparam > for the creation of an action to navigate in the code, variable

    < name cfparam = "action" default = "" >

    [Use the < cfparam > above, tag at the top of the code and using action EQ 'report' and ' ' for navigation in the code]

    But, when I redirect to the same page, with the variable value measures of error and using cflocation he forget all varable values in the new page [way], then how can I pass a variable value measures on the same page and redirect it to the same page on meeting certain criteria.

    If this isn't clear, let me know.

    Help, please

    Vijayvijay77.

    vijayvijay77 wrote:


    ...


    And I use

    a kind of cfif to navigate inside the code. I'm doing something wrong here.

    You say that you guessed it at work.  But you have a dangerous code here (if you have not changed).

    The line will generate variables URLS when ColdFusion processes the page.cfm file once requested by the browser.  For example url.set and url.flag.

    Tags are NOT specifying the scope of variables, so they will default to the scope of "variables".  Who are the local variables of the demand for treatment.  For example variables.set and variables.flag.

    URL.set and VARIABLES.set ARE NOT the same variables.  And this confusion can cause some VERY difficult to diagnose the problems of code.

  • How to set point values when redirecting to the same page.

    I just create a button to redirect I want to redirect to the same page and place 2 elements on the page to the same value they had before the redirection.
    But I can not write:
    Place these items: P1_Permit_Number, P1_Fishing_Year
    With these values: & P1_Permit_Number, & P1_Fishing_Year.

    Because there are no values in session state, because a shipment has not been done.

    So, how can I do this?
    I know how to get the values stored in the elements, for example, $v ('P1_PERMIT_NUMBER')
    but where should I put this command? It is not allowed under the "with these values.
    And I don't really want to make a button "submit" and create a process that says:
    P1_PERMIT_NUMBER: = $v ('P1_PERMIT_NUMBER'), because that would complicate the page too - I already have other branches and the process on the pages which conditions have to be modified so that they do not work in this scenario.

    Thank you.

    Hello

    The syntax seems correct to me. Your summers of uppercase element names?

    Try:

    alert("Here");
    var permitNumber = document.getElementById('P1_Permit_Number').value;
    alert(permitNumber);
    var fishingYear = document.getElementById('P1_Fishing_Year').value;
    alert(fishingYear);
    var url = 'f?p=&APP_ID.:1:&APP_SESSION.:Vessel_Display:::P1_Permit_Number,P1_Fishing_Year:' + permitNumber + ',' + fishingYear;
    alert(url):
    window.location.href = url;
    

    All alerts MUST display expected values. Doesn't it?

    Andy

  • Two tabs of the same page

    Hello
    I have spent all morning trying to find a solution to this problem, but have not found by myself or the analysis of forum posts.

    I am building an application with a level tab two for navigation.
    It's all right as long as the pages referenced by the tabs contain a different number.

    My problem is that I use the same page dynamic (say 40) to be used via two different tabs.
    for example Parent tab is labeled "Parent".
    Two other tabs are created related to parent tab 'Parent' and those labeled "Action1" and Action2.
    By selecting "Action1" will result in return of the 40 with a parameter page (say page_type) is set to 1.
    By selecting "Action2" will result in rendering the * same * page 40 with a parameter (say page_type) has a value of 2.

    For the parent tab 'Parent' say that the default is to select "Action1".

    Is there a solution to implement this kind of behavior?
    I tried to create redirect pages (empty page and one branch) to achieve, but I always get stuck trying to have page 40 display the appropriate tabs and tab parent.
    Thanks in advance for any help.
    Daniel

    Hi Daniel,.

    First of all, don't worry about your English - it's better that my French (in fact I didn't even know you were not English until I checked your profile!)

    Second, there may be a way to manage the definition of value. As long as your instructions of doSubmit() problem tabs, which sets a REQUEST , then it can be captured - see: Re: trying to find my tabs in my browser sql tree as a result, you should be able to put any value you like. I did have the chance to set up an example of this, but I hope, that should give you an idea of what can be done.

    You will always have the issue of not being able to click on each tab, once you have clicked on one of them - but I guess that the user is not likely to do it anyway?

    Andy

  • Two forms on the same Page

    Hey everybody,

    I have a page on which there are two forms to two different tables.

    The problem I'm having is when I try and create an entry in one of the forms and click on the button create that APEX is trying to enter the information of these two forms.

    What I want is the user to be able to enter the information one shape at a time, like a pose after you have entered the information about the two forms at the same time.

    Can someone point me in the rite direction?

    Thanks in advance,
    -N.S.N.O.

    In the 'Edit Page' page process go to the section 'Conditions '.
    You will see a drop-down list named "when button (process after submit when this button is pressed). In this list click the button so that the process is to fire.

    CITY

  • Branch to redirect to the same page as edit

    Hello
    How can I stay on the same page after insert or update the folder but in edit mode.
    I use a branch, but that loses the values.


    Kind regards
    Orlando Cruz

    Hello:

    Change the target of the branch defined in the page containing your form points to itself.
    Remove the 'reset the page' page process defined on the form page.

    CITY

  • Error update of two reports on the same page! Could you please have a look?

    Hey guys!

    I have the following situation:

    two updated reports on a single page with ID "DATE_REPORT" and "WORK_REPORT".
    two processes of pl/sql on submit after named 'SUBMIT_DATE' and 'SUBMIT_WORK' c...
    two buttons named 'SAVE_DATE' and 'SAVE_WORK '.
    Finally, the process of the insert and update are conditioned to a request = 1 where for the "DATE_REPORT" Expression, it is set to 'SAVE_DATE' and 'WORK_REPORT', it's logically on 'SAVE_WORK '. There is no condition extra button.

    My problem: I press any button, the table is accumulation in the columns of the first report and continues to add lines of the second report.

    For example: "DATE_REPORT" has 11 lines and "WORK_REPORT" has 9 lines. In debug mode, I see that the picture is piling using the 'DATE_REPORT' although 'SAVE_WORK' has been accepted as a demand. The same problem vice versa for the other update.
    ......column CNT_ARBEIT_CRIT_DATE mapped to WWV_Flow.g_f02
    ......column LNG_ARBEITSSCHRITT mapped to WWV_Flow.g_f03
    ......column STR_ARBEITSSCHRITT not mapped - not stateful.
    ......column DATE_GP_X_START mapped to WWV_Flow.g_f04
    ......column DATE_GP_X_END mapped to WWV_Flow.g_f05
    ......column DATE_R_X_START mapped to WWV_Flow.g_f06
    ......column DATE_R_X_END mapped to WWV_Flow.g_f07
    ......column LNG_GEBIET mapped to WWV_Flow.g_f08
    ......column CS not mapped - not stateful.
    ...array has 20 row(s). Used f08 to count.
    
    Validate report columns(ApexLib_TabForm.validateColumns)
    Row 12 has checksum error. ORA-01403: no data found ORA-01403: no data found ORA-01403: no data found
    ...Row 12
    ...LNG_ARBEITSSCHRITT
    ...CNT_ARBEIT_CRIT_DATE
    ......is not required
    ...LNG_GEBIET
    ......is not required
    ...DATE_GP_X_START
    ......is not required
    ...DATE_GP_X_END
    ......is not required
    ...DATE_R_X_START
    ......is not required
    ...DATE_R_X_END
    0.00: A C C E P T: Request="SAVE_WORK"
    How can I make sure that the tables are made from the reports which are the subject of the update?

    Thank you very much for reading this post and give help if you have an idea!

    Kind regards

    SEB

    Published by: skahlert on 13.03.2010 10:57

    Hi Sebastian,.

    what you want to achieve is indicative of the browser not to send the region A fields when you want to commit region B.

    You have several options:

    (1) do not make the region all the (conditions of the region)
    (2) send any content and to ignore the lines of region A in your area of PL/SQL
    (3) the region has to withdraw before submitting the page (for example with jQuery: jQuery("#__).remove())

    But maybe you should start by rethinking your application, do you really want 2 different TabForms on a single page.

    Peter

    + Blog: http://www.oracle-and-apex.com+

  • two region on the same page of repetition

    Hello, I need to display a repeat region of the recordset in two places inside the page as on the top and the bottom.

    What is the best way to do it? I need to create two recordset?

    I have now added to the Dreamweaver FAQ and created a short article about it here: http://kb2.adobe.com/community/publishing/528/cpsid_52877.html.

  • Redirect to the same page after submitting a form

    I use a landing page form Eloqua to drive online capture at all our shows. Right now, I have been creating pages for individual destination and forms for each of them... which isn't an ideal situation. I also started using query parameters, so I have a default form that will capture a unique campaign for each show ID. It is, I can't figure out how to redirect the submission form!

    Example:

    testing.Eloqua.com/tradeshowleadform?source=CAMPAIGNID123

    On form submission, the source meets the fact that he was from CAMPAIGNID123 and puts it in the system. But I can't get back to this exact URL for redirection! I get to go back to ' testing.eloqua.com/tradeshowleadform"...but I need to the query parameter in order to capture the right campaign."

    Anyone has an idea on how to do it? My one idea was to enter the FULL URL in a field called (returnURL), but don't know how to do this since the request parameters are only for everything after the question mark.

    Any help would be greatly appreciated.

    Thank you!

    -Jon

    Try campaignid1.  If this does not work, you can find the HTML for the merger of field by inserting it into an email or landing page and showing the source code.

  • Whenever I do a right click on a link, it automatically goes to this page. If I right click and select "Open in a new tab" I have two tabs of the same page. How can I stop this?

    It was never happen just randomly started, if I hover over a link and press the button between Ctrl and Alt Gr then it will come back with options without going through the link itself

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Bug. Can not put two edge animations animate on the same page

    Alrighty. Just thanked Adobe for fixation sensitive question scaling. Now, it seems to be a new. When I put two animations dashboard run on the same page, they both disappear completely from the view! Both in mode live view (or which saw fluid grid) and trying to get a glimpse into any browser. The responsive design works fine but if I put two animations on the same page that the two just disappear! GONE!

    Perhaps there is a code that I can use to prevent this. I did a number of tests during the last hour. My smile (from the reactive solution) is now again a frown. I can't keep working like that. Please let me know if there is something I am doing wrong. I have two animations on a page without worries prior to this version, but the delicate design did not work properly. The responsive design work NOW, but I can't have MORE than ONE ANIMATION on the same page. Thanks for your time. Best regards, Julian.

    The use, I did the modification required:

    
    
    
      
    
    
    
    
      
  • Branch to the same page with different session variables

    Hello guys,.

    Is there a way that allows to create a branch that redirect to the same page with a different set of values for session variables. Or is it an effective way to add the buttons after that moves through the consecutive records in the pre and oracle apex.

    hope someone can help me.

    Kind regards.

    -shashikahk-

    is there a way to add the following buttons and pre

    If you create a form using the wizard pages, Apex will automatically create these buttons in some cases (as in a master form / retail).

    Create a master page / detail demo so you can see how it works. Apex creates a pre-rendering process:

    Get the value of the primary key next or previous

    Some of the hidden objects, such as Pxx_ROWID_NEXT.

    And two buttons: GET_PREVIOUS_ROWID and GET_NEXT_ROWID

    (if you do not use rowid as the primary key, another name will be generated).

  • PET brain: menu Tablet pointing to the same page


    Hello

    Here, I'm having to click ABOUT to access the same contact page.
    The text is so short that I put the two sections on the same page:

    Home

    Unless I should just create a long page and have the anchors, not separate pages.
    I'll make a long page for the version of OFFICE.


    You are looking for advice, lol, thank you.


    ~ Anita



    Please provide more information, as if the two pages aren't landing same linked page or the link redirects to another page.

    You can use menu manual and 2 under a link menu items to link to the same page.

    Thank you

    Sanjit

  • How to add two controls on the same form datagrid? I get the error message...

    Hello

    I have to add two controls on the same page datagrid. When I try to drag an another DataGrid in the components window, it says "an element with that name already exists in the library."

    How can I add multiple controls on the same page datagrid?

    Kind regards.

    _data2 = new XML (event.target.data2);

    should be

    _data2 = new XML (event.target.data);

    (actually, it's better if it was

    _data2 = XML (event.target.data);

Maybe you are looking for