Click here to Skip to main content
15,888,351 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionASP.NET MVC. Specific URL for partial views Pin
Member 1204569220-May-16 6:05
Member 1204569220-May-16 6:05 
AnswerRe: ASP.NET MVC. Specific URL for partial views Pin
John C Rayan22-May-16 23:48
professionalJohn C Rayan22-May-16 23:48 
AnswerRe: ASP.NET MVC. Specific URL for partial views Pin
John C Rayan23-May-16 0:03
professionalJohn C Rayan23-May-16 0:03 
Questionthe page load event gets fires, but it just skips the SelectedIndexChanged event for the dropdown Pin
Member 1144948319-May-16 2:33
Member 1144948319-May-16 2:33 
SuggestionRe: the page load event gets fires, but it just skips the SelectedIndexChanged event for the dropdown Pin
Richard MacCutchan19-May-16 6:24
mveRichard MacCutchan19-May-16 6:24 
AnswerRe: the page load event gets fires, but it just skips the SelectedIndexChanged event for the dropdown Pin
CHill6019-May-16 6:35
mveCHill6019-May-16 6:35 
PraiseRe: the page load event gets fires, but it just skips the SelectedIndexChanged event for the dropdown Pin
John C Rayan22-May-16 23:43
professionalJohn C Rayan22-May-16 23:43 
Questionasmx web service using Await returning JSON string from Jquery $Ajax not returning string Pin
jkirkerx18-May-16 8:08
professionaljkirkerx18-May-16 8:08 
So this is an extension of the my last post about sending emails async.

I have these asmx web services, and they record the transaction, send an eamil message and return a JSON formatted string back to the client script written in JQuery.

When I run the code in WebDev, All is well, and I stop at the last line that returns the JSON String, and it looks good. But for some reason, the JQuery Ajax success can't parse or see the return object.

The message sends, database gets updated, just the return value get lost, malformed, or something.
I can't seem to figure it out.

So this is just a example of what I did with the service.
<WebMethod(EnableSession:=True)> _
Public Async Function send_Reply( _
    ByVal m_messageID As String) As Threading.Tasks.Task(Of String)

    Dim _task as _smtptask - Await sendMessageAsync(model)

    // Do Stuff until the message is sent
    updateDatabase(model)
    archiveMessage(model)

    // Wait until all is complete
    Await sendMessageAsync(model)

    // Return the Json string
    Return json_response.ToString

End function

AnswerInteresting, the data return to $Ajax was repackaged as a different object Pin
jkirkerx18-May-16 9:38
professionaljkirkerx18-May-16 9:38 
QuestionSetup and Use Open SSL in HttpClient and HttpListener application. Pin
Jaimesh.241118-May-16 2:07
Jaimesh.241118-May-16 2:07 
AnswerRe: Setup and Use Open SSL in HttpClient and HttpListener application. Pin
Richard MacCutchan18-May-16 3:13
mveRichard MacCutchan18-May-16 3:13 
Questionwhat is difference betwee App_LocalResources and App_GlobalResources Pin
Tridip Bhattacharjee16-May-16 3:46
professionalTridip Bhattacharjee16-May-16 3:46 
AnswerRe: what is difference betwee App_LocalResources and App_GlobalResources Pin
Richard Deeming16-May-16 5:28
mveRichard Deeming16-May-16 5:28 
GeneralRe: what is difference betwee App_LocalResources and App_GlobalResources Pin
Tridip Bhattacharjee16-May-16 21:55
professionalTridip Bhattacharjee16-May-16 21:55 
GeneralRe: what is difference betwee App_LocalResources and App_GlobalResources Pin
John C Rayan18-May-16 1:25
professionalJohn C Rayan18-May-16 1:25 
Questionrendom image upload Pin
Member 1181823013-May-16 21:46
Member 1181823013-May-16 21:46 
AnswerRe: rendom image upload Pin
ZurdoDev16-May-16 3:07
professionalZurdoDev16-May-16 3:07 
Questionrename image upload Pin
Member 1181823013-May-16 21:03
Member 1181823013-May-16 21:03 
QuestionRe: rename image upload Pin
ZurdoDev16-May-16 3:07
professionalZurdoDev16-May-16 3:07 
QuestionApplication design for multiple databases Pin
Stephen Holdorf13-May-16 2:24
Stephen Holdorf13-May-16 2:24 
AnswerRe: Application design for multiple databases Pin
Gerry Schmitz13-May-16 4:16
mveGerry Schmitz13-May-16 4:16 
AnswerRe: Application design for multiple databases Pin
Stephen Holdorf13-May-16 9:24
Stephen Holdorf13-May-16 9:24 
GeneralRe: Application design for multiple databases Pin
Stephen Holdorf14-May-16 10:26
Stephen Holdorf14-May-16 10:26 
GeneralRe: Application design for multiple databases Pin
Nathan Minier15-May-16 3:13
professionalNathan Minier15-May-16 3:13 
GeneralRe: Application design for multiple databases Pin
Stephen Holdorf15-May-16 9:53
Stephen Holdorf15-May-16 9:53 

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.