Click here to Skip to main content
15,899,025 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: dropdownlist auto select first value in gridview with edit mode Pin
demoninside93-Mar-13 23:57
demoninside93-Mar-13 23:57 
GeneralRe: dropdownlist auto select first value in gridview with edit mode Pin
Karthik Harve4-Mar-13 0:04
professionalKarthik Harve4-Mar-13 0:04 
Questionhow to make multiple entries for a book in database for multiple copies of the same book in a library? Pin
Madhubala Ganesan2-Mar-13 6:33
Madhubala Ganesan2-Mar-13 6:33 
AnswerRe: how to make multiple entries for a book in database for multiple copies of the same book in a library? Pin
Bernhard Hiller3-Mar-13 20:35
Bernhard Hiller3-Mar-13 20:35 
QuestionJson + asp.net Pin
jojoba20112-Mar-13 4:45
jojoba20112-Mar-13 4:45 
AnswerRe: Json + asp.net Pin
jkirkerx4-Mar-13 10:36
professionaljkirkerx4-Mar-13 10:36 
QuestionRe: Json + asp.net Pin
jojoba20119-Mar-13 17:58
jojoba20119-Mar-13 17:58 
AnswerRe: Json + asp.net Pin
jkirkerx9-Mar-13 18:19
professionaljkirkerx9-Mar-13 18:19 
I write in vb, not sure if that helps, but

<WebMethod()> _
    <ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _
    Public Function Get_RateVendorCode( _
        ByVal rate_API_Code As String,
        ByVal localization_Code As Integer) As String

        Dim sb_json As StringBuilder = New StringBuilder
        Dim json_response As String = Nothing

        Dim Rate_VendorCode As String = ""
        Dim service_Marks As String = ""
        Dim service_Title As String = ""

        Try
            Dim rm As ResourceManager = Nothing
            Dim ci As CultureInfo = Nothing

            Select Case localization_Code
                Case 0
                    rm = New ResourceManager("SC_Standard.labels_en", Assembly.GetExecutingAssembly())
                    ci = New CultureInfo("en-US")
                Case 1
                    rm = New ResourceManager("SC_Standard.labels_fr", Assembly.GetExecutingAssembly())
                    ci = New CultureInfo("fr-CA")
                Case 2
                    rm = New ResourceManager("SC_Standard.labels_es", Assembly.GetExecutingAssembly())
                    ci = New CultureInfo("es-MX")
            End Select

            Rate_VendorCode = Get_RateVendorCode_SQL(rate_API_Code)

            Select Case Rate_VendorCode
                Case "DHL"
                    service_Title = rm.GetString("Select Rate:")
                    service_Marks = rm.GetString("DHL service marks used by permission")

                Case "FEDEX"
                    service_Title = rm.GetString("Select Rate:")
                    service_Marks = rm.GetString("FedEx service marks used by permission")

                Case "FEDEXFREIGHT"
                    service_Title = rm.GetString("Select Rate:")
                    service_Marks = rm.GetString("FedEx service marks used by permission")

                Case "UPS"
                    service_Title = rm.GetString("Select Rate:")
                    service_Marks = rm.GetString("UPS service marks used by permission")

                Case "FREIGHTQUOTE"
                    service_Title = rm.GetString("Select Rate:")
                    service_Marks = rm.GetString("FreightQuote.Com service marks used by permission")
            End Select

        Catch ex As Exception

        End Try

        sb_json.Append("{")
        sb_json.Append(" ""VendorCode"" : """ & Rate_VendorCode & """,")
        sb_json.Append(" ""ServiceTitle"" : """ & service_Title & """,")
        sb_json.Append(" ""ServiceMarks"" : """ & service_Marks & """")
        sb_json.Append("}")

        json_response = sb_json.ToString

        Dim js As System.Web.Script.Serialization.JavaScriptSerializer = New System.Web.Script.Serialization.JavaScriptSerializer
        js.Serialize(json_response)
        js = Nothing

        Return json_response

    End Function

Questionerror '80004003', Object reference not set to an instance of an object. Pin
notahack2-Mar-13 4:37
notahack2-Mar-13 4:37 
AnswerRe: error '80004003', Object reference not set to an instance of an object. Pin
Richard MacCutchan2-Mar-13 5:42
mveRichard MacCutchan2-Mar-13 5:42 
Questionplugging in twitter and facebook into the web application Pin
Member 87018131-Mar-13 3:04
Member 87018131-Mar-13 3:04 
AnswerRe: plugging in twitter and facebook into the web application Pin
Sandeep Mewara1-Mar-13 4:24
mveSandeep Mewara1-Mar-13 4:24 
GeneralRe: plugging in twitter and facebook into the web application Pin
Member 87018131-Mar-13 8:32
Member 87018131-Mar-13 8:32 
GeneralRe: plugging in twitter and facebook into the web application Pin
Sandeep Mewara1-Mar-13 9:04
mveSandeep Mewara1-Mar-13 9:04 
GeneralRe: plugging in twitter and facebook into the web application Pin
Member 87018132-Mar-13 21:25
Member 87018132-Mar-13 21:25 
GeneralRe: plugging in twitter and facebook into the web application Pin
Member 87018131-Mar-13 23:02
Member 87018131-Mar-13 23:02 
QuestionInvalid length for a Base-64 char array Pin
Anshul Jindal1-Mar-13 1:51
Anshul Jindal1-Mar-13 1:51 
AnswerRe: Invalid length for a Base-64 char array Pin
Simon_Whale1-Mar-13 1:56
Simon_Whale1-Mar-13 1:56 
GeneralRe: Invalid length for a Base-64 char array Pin
Anshul Jindal1-Mar-13 2:02
Anshul Jindal1-Mar-13 2:02 
AnswerRe: Invalid length for a Base-64 char array Pin
jkirkerx3-Mar-13 12:09
professionaljkirkerx3-Mar-13 12:09 
GeneralRe: Invalid length for a Base-64 char array Pin
Anshul Jindal3-Mar-13 16:46
Anshul Jindal3-Mar-13 16:46 
GeneralRe: Invalid length for a Base-64 char array Pin
jkirkerx4-Mar-13 6:39
professionaljkirkerx4-Mar-13 6:39 
AnswerRe: Invalid length for a Base-64 char array Pin
jkirkerx4-Mar-13 8:53
professionaljkirkerx4-Mar-13 8:53 
QuestionRotating Homepage banner up to 5 banner images Pin
Member 870181328-Feb-13 15:50
Member 870181328-Feb-13 15:50 
AnswerRe: Rotating Homepage banner up to 5 banner images Pin
Deflinek1-Mar-13 1:29
Deflinek1-Mar-13 1:29 

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.