Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to install android ndk for visual studio 2015 ? Pin
Richard MacCutchan24-Jun-18 21:01
mveRichard MacCutchan24-Jun-18 21:01 
GeneralRe: How to install android ndk for visual studio 2015 ? Pin
Member 245846725-Jun-18 16:27
Member 245846725-Jun-18 16:27 
GeneralRe: How to install android ndk for visual studio 2015 ? Pin
Richard MacCutchan25-Jun-18 21:17
mveRichard MacCutchan25-Jun-18 21:17 
GeneralRe: How to install android ndk for visual studio 2015 ? Pin
Member 245846726-Jun-18 16:17
Member 245846726-Jun-18 16:17 
GeneralRe: How to install android ndk for visual studio 2015 ? Pin
Richard MacCutchan26-Jun-18 21:26
mveRichard MacCutchan26-Jun-18 21:26 
GeneralRe: How to install android ndk for visual studio 2015 ? Pin
Member 245846727-Jun-18 16:08
Member 245846727-Jun-18 16:08 
GeneralRe: How to install android ndk for visual studio 2015 ? Pin
Richard MacCutchan27-Jun-18 21:06
mveRichard MacCutchan27-Jun-18 21:06 
QuestionWhy Is The Text Element Inside Of Razor Code Block Skipped During Debugging Pin
MadDashCoder23-Jun-18 13:43
MadDashCoder23-Jun-18 13:43 
When a user clicks on the delete button to delete a jqgrid row, the form Action attribute is triggered and calls my controller method, which then returns a view. Then in this view, depending on the value of a certain viewbag, an alert will display the message "Successfully deleted" and the grid is reloaded.

Everything worked fine but I would like to use a confirm modal to make user confirm his/her intention so I put a part of the Razor code above the modal script and the rest inside the Success section of the AJAX code inside of the modal code. Below is my script:
C#
@{var message = ViewBag.Message;}
$("#DeleteDialog").dialog({
height: 280,
modal: true,
autoOpen: false,
  buttons: {
    'Confirm': function () {
        $.ajax({
            type: "POST",
            cache: false,
            url: "/Forms/MyMethod",
            success: function (data) {                                    
              @if (message == "Deleted"){
                ViewBag.Message = null;
                ViewBag.Status = null;
                <text>
                 alert("Successfully deleted!");                                            
                 jQuery("#jQGrid").clearGridData(true).trigger("reloadGrid");
                 jQuery('#jqGrid').trigger( 'reloadGrid' );
                 $('#files').empty();
                </text>
              }
            }            
         });
      $(this).dialog('close');
    },
    'Cancel': function () {
        $(this).dialog('close');
     }
  }
 });

I noticed that during debugging the viewbag codes were executed but the "<text>" element was skipped. That means the alert and other code inside of the TEXT element are not executed.

modified 23-Jun-18 20:04pm.

AnswerRe: Why Is The Text Element Inside Of Razor Code Block Skipped During Debugging Pin
OriginalGriff23-Jun-18 19:47
mveOriginalGriff23-Jun-18 19:47 
GeneralRe: Why Is The Text Element Inside Of Razor Code Block Skipped During Debugging Pin
MadDashCoder23-Jun-18 21:31
MadDashCoder23-Jun-18 21:31 
GeneralRe: Why Is The Text Element Inside Of Razor Code Block Skipped During Debugging Pin
Pete O'Hanlon23-Jun-18 23:27
mvePete O'Hanlon23-Jun-18 23:27 
GeneralRe: Why Is The Text Element Inside Of Razor Code Block Skipped During Debugging Pin
MadDashCoder24-Jun-18 1:05
MadDashCoder24-Jun-18 1:05 
QuestionAPP Projekt call a DLL Froms Projekt Pin
Member 1368015123-Jun-18 0:52
Member 1368015123-Jun-18 0:52 
AnswerRe: APP Projekt call a DLL Froms Projekt Pin
OriginalGriff23-Jun-18 1:54
mveOriginalGriff23-Jun-18 1:54 
GeneralRe: APP Projekt call a DLL Froms Projekt Pin
Member 1368015123-Jun-18 3:23
Member 1368015123-Jun-18 3:23 
GeneralRe: APP Projekt call a DLL Froms Projekt Pin
OriginalGriff23-Jun-18 4:01
mveOriginalGriff23-Jun-18 4:01 
QuestionC# text to speech Pin
tsi clinero22-Jun-18 14:22
tsi clinero22-Jun-18 14:22 
AnswerRe: C# text to speech Pin
OriginalGriff22-Jun-18 18:10
mveOriginalGriff22-Jun-18 18:10 
GeneralRe: C# text to speech Pin
Eric Lynch22-Jun-18 23:55
Eric Lynch22-Jun-18 23:55 
GeneralRe: C# text to speech Pin
OriginalGriff23-Jun-18 0:11
mveOriginalGriff23-Jun-18 0:11 
QuestionHow do Xamarin forms connect to SQL Server ? Pin
Member 245846721-Jun-18 21:57
Member 245846721-Jun-18 21:57 
AnswerRe: How do Xamarin forms connect to SQL Server ? Pin
Richard MacCutchan21-Jun-18 22:33
mveRichard MacCutchan21-Jun-18 22:33 
AnswerRe: How do Xamarin forms connect to SQL Server ? Pin
Pete O'Hanlon22-Jun-18 1:26
mvePete O'Hanlon22-Jun-18 1:26 
QuestionComparing hashed Passwords Pin
Kevin Marois21-Jun-18 12:29
professionalKevin Marois21-Jun-18 12:29 
AnswerRe: Comparing hashed Passwords Pin
#realJSOP21-Jun-18 13:55
mve#realJSOP21-Jun-18 13:55 

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.