Click here to Skip to main content
16,005,339 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Working copy of your code. Pin
samflex6-Dec-14 14:47
samflex6-Dec-14 14:47 
GeneralRe: Working copy of your code. Pin
samflex6-Dec-14 16:21
samflex6-Dec-14 16:21 
QuestionAsp.net page with Web Service WITHIN code behind being called Pin
StealthRT4-Dec-14 5:13
StealthRT4-Dec-14 5:13 
QuestionRe: Asp.net page with Web Service WITHIN code behind being called Pin
jkirkerx4-Dec-14 8:55
professionaljkirkerx4-Dec-14 8:55 
SuggestionRe: Asp.net page with Web Service WITHIN code behind being called Pin
ZurdoDev4-Dec-14 10:45
professionalZurdoDev4-Dec-14 10:45 
Question.NET System.OutOfMemoryException in View using DisplayTemplate Pin
G-Alonso30-Nov-14 1:39
G-Alonso30-Nov-14 1:39 
AnswerRe: .NET System.OutOfMemoryException in View using DisplayTemplate Pin
Matt U.4-Dec-14 4:43
Matt U.4-Dec-14 4:43 
QuestionDisplaying javascript values from one page to another using multiview Pin
samflex29-Nov-14 14:10
samflex29-Nov-14 14:10 
I have a javascript that calculates mileage between two locations.

Once calculation is done, From location, To location and total mileage are displayed.

This works fine.

The issue that I am having is that I can't seem to get these values to display on another multiview control.

Here are relevant code:

//Javascript. This is what display the From, To, locations and total mileage
PHP
function initialize() {
    geocoder = new GClientGeocoder();
    gDir = new GDirections();
    GEvent.addListener(gDir, "load", function() {
        var drivingDistanceMiles = gDir.getDistance().meters / 1609.344;
        var drivingDistanceKilometers = gDir.getDistance().meters / 1000;
        document.getElementById('results').innerHTML = 'From: ' + location1.address + '<br />To: ' + location2.address + '<br />Driving Distance: ' + drivingDistanceMiles.toFixed(2) + ' miles ';
    });
}


PHP
//Then html
body id="top" onload="initialize()" class="page page-id-298 page-template-default stretched open_sans open_sans ">

 <form id="form1"  onsubmit="showLocation(); return false;" runat="server" class="ajax_form">
          <asp:MultiView ID="myMultiView" ActiveViewIndex="0" runat="server">
           <asp:View ID="vwPersonalData" runat="server">
...
...
</asp:View>
   <asp:View ID="vwPreview" ActiveViewIndex="0" runat="server">
..
..
</asp:View>
</asp:MultiView>
  <p id="results" runat="server" style="display:none"></p>
 <asp:Button ID="btnBack" runat="server" Text="< Back " OnClick="btnBack_Click" />
  <asp:Button ID="btnNext" runat="server" Text="Next >" OnClick="btnNext_Click" />	
  <asp:Button ID="btnSend" runat="server" Text="Send request" OnClick="btnSend_Click" />
</form>


All I am trying to do is make the values of results control ID not visible, but make it visible in the vwPreview control ID so I can grab the values in codebehind.

How do I do this?

Thanks a lot in advance
AnswerRe: Displaying javascript values from one page to another using multiview Pin
Anurag Gandhi30-Nov-14 22:41
professionalAnurag Gandhi30-Nov-14 22:41 
GeneralRe: Displaying javascript values from one page to another using multiview Pin
samflex1-Dec-14 5:54
samflex1-Dec-14 5:54 
Questioncan anyoen tell me when i use file upload in asp.net.how to rename file with id..its very urgent..plz Pin
Sanju Choudhary S28-Nov-14 2:13
Sanju Choudhary S28-Nov-14 2:13 
AnswerRe: can anyoen tell me when i use file upload in asp.net.how to rename file with id..its very urgent..plz Pin
den2k8828-Nov-14 2:38
professionalden2k8828-Nov-14 2:38 
AnswerRe: can anyoen tell me when i use file upload in asp.net.how to rename file with id..its very urgent..plz Pin
Richard Deeming28-Nov-14 2:43
mveRichard Deeming28-Nov-14 2:43 
GeneralRe: can anyoen tell me when i use file upload in asp.net.how to rename file with id..its very urgent..plz Pin
jaimin851-Dec-14 23:13
jaimin851-Dec-14 23:13 
GeneralRe: can anyoen tell me when i use file upload in asp.net.how to rename file with id..its very urgent..plz Pin
Richard Deeming2-Dec-14 2:23
mveRichard Deeming2-Dec-14 2:23 
QuestionJavascript Scanner recognition Pin
Member 1035398227-Nov-14 22:54
Member 1035398227-Nov-14 22:54 
AnswerRe: Javascript Scanner recognition Pin
ZurdoDev2-Dec-14 3:14
professionalZurdoDev2-Dec-14 3:14 
QuestionHashing fields pre server post Pin
Dale17727-Nov-14 14:09
Dale17727-Nov-14 14:09 
AnswerRe: Hashing fields pre server post Pin
Kornfeld Eliyahu Peter27-Nov-14 19:12
professionalKornfeld Eliyahu Peter27-Nov-14 19:12 
GeneralRe: Hashing fields pre server post Pin
Dale17727-Nov-14 20:24
Dale17727-Nov-14 20:24 
GeneralRe: Hashing fields pre server post Pin
Kornfeld Eliyahu Peter27-Nov-14 20:35
professionalKornfeld Eliyahu Peter27-Nov-14 20:35 
GeneralRe: Hashing fields pre server post Pin
Richard Deeming28-Nov-14 2:38
mveRichard Deeming28-Nov-14 2:38 
AnswerRe: Hashing fields pre server post Pin
Michael_Cox3-Dec-14 6:38
Michael_Cox3-Dec-14 6:38 
GeneralRe: Hashing fields pre server post Pin
Richard Deeming3-Dec-14 7:41
mveRichard Deeming3-Dec-14 7:41 
GeneralRe: Hashing fields pre server post Pin
Michael_Cox3-Dec-14 9:37
Michael_Cox3-Dec-14 9:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.