Git Product home page Git Product logo

haacked / codehaacks Goto Github PK

View Code? Open in Web Editor NEW
314.0 314.0 84.0 1.46 MB

This is a collection of prototypes, samples, proof-of-concepts. None of this is meant to be used in production code, but you can take any of the ideas you like and try them out in your own projects.

License: MIT License

C# 62.41% CSS 5.46% ASP 8.66% JavaScript 9.89% Batchfile 0.15% Pascal 0.16% HTML 13.26%
csharp dotnet

codehaacks's Introduction

codehaacks's People

Contributors

gxl avatar haacked avatar jbubriski avatar lodejard avatar robgha01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codehaacks's Issues

GetArgumentValue in AttributeExtensions can not handle enums

First and foremost, well done and good post i stumbled on youre old post from 2010 ๐Ÿ‘ "http://haacked.com/archive/2010/08/05/copying-attributes.aspx/" and wanted to pitch in for an update for enums.

To fix proper handlings of enum for a constructors replace:
var value = argument.Value; with

object value;
if (argument.ArgumentType.IsEnum)
{
    value = Enum.ToObject(argument.ArgumentType, argument.Value);
}
else
{
    value = argument.Value;
}

Model Binding Problem?

I have a FilterController with a "Filters" Action on it.
It takes a complex JSON object.

public class FilterController : JsonController
{
    public JsonResult Filters(FilterData filters)
    ...

Calling it like this always results in a null value, almost like it is not running through Model Binding:

    $mvc.Filter.Filters({ filters: currData })...

I can actually see the big blob of JSON data in the Request.InputStream

Calling it like this works fine:

    $.ajax({
        cache: false,
        dataType: 'json',
        type: 'POST',
        data: window.JSON.stringify({ filters: currData }),
        contentType: 'application/json; charset=utf-8',
        url: '/Dev/Filter/Filters'
    })

Is there something I'm doing wrong?

Integration with Gimpse

I've been using MvcHaack.Ajax on my site and it's working great (Thank you). I just downloaded Glimpse and when I turn it on, $mvc becomes undefined.

Any idea what I can do to resolve this?

Thanks,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.