JavaScript JQuery- Read value from C# Dictionary
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: JQuery- Read value from C# Dictionary

  1. #1
    Join Date
    Dec 2008
    Posts
    144

    Question JQuery- Read value from C# Dictionary

    I'm having to change a working application to accomodate new requirements. Mainly I have 2 arrays, the values of which are now loaded into SQL tables.

    I would like to read these values into C# Dictionaries, as C# is the main logic language for these ASP.NET pages.

    What I want to do is adjust the JQuery logic so that instead of accessing the arrays, it will instead reach out to the C# dictionaries using the JQuery value as the dictioanry's Key and return the dictionary's Value. That value needs to be captured by JQuery and will be used to finish calculations.

    How would I go about doing this?
    Code:
    if (Issue.Resolved)
    {
         ThreadTools.Click();
         MarkThreadResolved();
    }

  2. #2
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,839

    Re: JQuery- Read value from C# Dictionary

    You can't directly. jQuery is a JavaScript framework (client-side) whereas C# would be compiled by the server into a web application (server-side). You can pass data through GET and POST, but other than that, those two languages cannot interact together.

    EDIT: Just so you know, duplicate threads across multiple forums is considered spam by this site's ToS. I deleted the other post for you.
    Last edited by PeejAvery; July 22nd, 2013 at 09:29 PM.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center