Click here to Skip to main content
15,917,618 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionstrange issue with cache application block (ENT LIB 5) Pin
Luca Dominici9-Aug-12 23:23
Luca Dominici9-Aug-12 23:23 
AnswerRe: strange issue with cache application block (ENT LIB 5) Pin
Pete O'Hanlon10-Aug-12 0:42
mvePete O'Hanlon10-Aug-12 0:42 
AnswerRe: strange issue with cache application block (ENT LIB 5) Pin
jkirkerx10-Aug-12 10:12
professionaljkirkerx10-Aug-12 10:12 
Questiondebug javascript Pin
dcof9-Aug-12 18:44
dcof9-Aug-12 18:44 
AnswerRe: debug javascript Pin
AnnieCalvert9-Aug-12 20:09
AnnieCalvert9-Aug-12 20:09 
GeneralRe: debug javascript Pin
dcof10-Aug-12 4:31
dcof10-Aug-12 4:31 
GeneralRe: debug javascript Pin
enhzflep10-Aug-12 4:59
enhzflep10-Aug-12 4:59 
Generalwindow open Pin
dcof9-Aug-12 12:16
dcof9-Aug-12 12:16 
QuestionRe: window open Pin
CodeHawkz9-Aug-12 20:57
CodeHawkz9-Aug-12 20:57 
AnswerRe: window open Pin
dcof10-Aug-12 4:30
dcof10-Aug-12 4:30 
GeneralRe: window open Pin
CodeHawkz12-Aug-12 8:36
CodeHawkz12-Aug-12 8:36 
GeneralRe: window open Pin
jkirkerx10-Aug-12 11:33
professionaljkirkerx10-Aug-12 11:33 
GeneralRe: window open Pin
dcof11-Aug-12 11:45
dcof11-Aug-12 11:45 
GeneralRe: window open Pin
jkirkerx11-Aug-12 13:34
professionaljkirkerx11-Aug-12 13:34 
Generaltextbox wrap to several lines Pin
classy_dog9-Aug-12 9:05
classy_dog9-Aug-12 9:05 
AnswerRe: textbox wrap to several lines Pin
R. Giskard Reventlov9-Aug-12 10:02
R. Giskard Reventlov9-Aug-12 10:02 
GeneralRe: textbox wrap to several lines Pin
classy_dog9-Aug-12 12:07
classy_dog9-Aug-12 12:07 
AnswerRe: textbox wrap to several lines Pin
R. Giskard Reventlov9-Aug-12 12:40
R. Giskard Reventlov9-Aug-12 12:40 
QuestionA liitle help on submitting a json array, no-primitive to a web service Pin
jkirkerx9-Aug-12 8:49
professionaljkirkerx9-Aug-12 8:49 
AnswerI think I did it, got my json reponse back with no error during testing. Pin
jkirkerx9-Aug-12 17:03
professionaljkirkerx9-Aug-12 17:03 
Well that was hard, especially finding info on it in vb, everything was c#, so I had to translate it. Wrote this at 1:30, but had to take a service call. Just got back to test it.

So a list of template_Elements, qualifies as a primitive, or it simply consumes the web method before processing, and passes on the json array for my manipulation.

If you've got insight into this, let me know, would like to learn more about it.

I'm going to try to parse the JSON back into an array, and write out some XML with it, hope it works, or I'm back to the drawing board.
<WebMethod()> _
 Public Function create_DynamicCart_Template(
    ByVal template_Name As String,
    ByVal template_Array As List(Of templateElements)) As String

    Dim dwExitCode As Integer = 2
    Dim json_response As StringBuilder = New StringBuilder
    Dim html_Stream As String = Nothing

    Try

        Dim jss As JavaScriptSerializer = New JavaScriptSerializer()
        Dim elements = jss.Deserialize(Of List(Of templateElements))(template_Array.ToString)


Then the class
Public Class templateElements

    Private privateName As String
    Public Property Name() As String
        Get
            Return privateName
        End Get
        Set(ByVal value As String)
            privateName = value
        End Set
    End Property
    Private privateCode As String
    Public Property Code() As String
        Get
            Return privateCode
        End Get
        Set(ByVal value As String)
            privateCode = value
        End Set
    End Property

End Class

QuestionRe: A liitle help on submitting a json array, no-primitive to a web service Pin
CodeHawkz9-Aug-12 20:54
CodeHawkz9-Aug-12 20:54 
AnswerRe: A liitle help on submitting a json array, no-primitive to a web service Pin
jkirkerx10-Aug-12 6:26
professionaljkirkerx10-Aug-12 6:26 
AnswerRe: A liitle help on submitting a json array, no-primitive to a web service Pin
CodeHawkz12-Aug-12 8:48
CodeHawkz12-Aug-12 8:48 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
jkirkerx12-Aug-12 10:25
professionaljkirkerx12-Aug-12 10:25 
GeneralRe: A liitle help on submitting a json array, no-primitive to a web service Pin
CodeHawkz12-Aug-12 17:23
CodeHawkz12-Aug-12 17:23 

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.