Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

John ph

@John ph
About
Posts
621
Topics
22
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • File upload fails through web application firewall with 403 Error (ModSecurity)
    J John ph

    Working on .Net Core MVC web application hosted in Azure App Service with WAF (Web Application Firewall) enabled. WAF rules are blocking the File upload functionality. When the rules are turned OFF, application works fine. Does anyone know how this can be fixed?

    Regards, John

    Design and Architecture asp-net csharp dotnet cloud architecture

  • Wiki
    J John ph

    Thanks Kamil.

    Regards, John

    Workspaces Forum collaboration workspace

  • Wiki
    J John ph

    Great Work. Thanks to Chris and team for the workspaces. A wiki would be nice for each workspace along with code and task. Just wondering if this is in the roadmap...

    Regards, John

    Workspaces Forum collaboration workspace

  • MVC Page
    J John ph

    Check this ASP.NET MVC and Multiple Submit buttons[^]

    Regards, John

    ASP.NET question asp-net architecture

  • MVC Page
    J John ph

    civic060 wrote:

    I have a webpage with two buttons Save & Close, Save & Add Next Question.

    What are those buttons? just input buttons or submit buttons?

    <input type='button' />
    <input type='submit' />

    civic060 wrote:

    How can I call different functions for each of the buttons above.

    Did you mean action methods on the controller or AJAX calls through JQuery/Javascript?

    Regards, John

    ASP.NET question asp-net architecture

  • Voting a forum message
    J John ph

    great, thanks.

    Regards, Jon

    Site Bugs / Suggestions question

  • Voting a forum message
    J John ph

    Voting a forum message option is not available to me for a long time. I don't see it there. Am i missing something?

    Regards, Jon

    Site Bugs / Suggestions question

  • Code Project UI very bad
    J John ph

    You can have the layout the way you want.

    Regards, Jon

    Site Bugs / Suggestions design lounge

  • Architecture suggestions for an application in Web and IPAD form
    J John ph

    I would recommend ASP.NET MVC 4 which is perfect for web and mobile platforms.

    Regards, Jon

    ASP.NET asp-net csharp ios design business

  • Find the selected radio button immediately using the 'this' variable in he javascript
    J John ph

    Does any of the message you posted have a purpose?

    Regards, Jon

    JavaScript csharp javascript php asp-net com

  • vote button
    J John ph

    When i click on vote without selecting rating option it gives me the below message and voting section disappears.

    There was an error while trying to rate this item. Please try again later.

    Regards, Jon

    Site Bugs / Suggestions help

  • To Web Pages or not to Web Pages?
    J John ph

    Hope, you got your question answered from Dylan's response.

    - Regards -
       J O N

    ASP.NET asp-net csharp database architecture question

  • MVC - How are you scripting..?
    J John ph

    that's exactly right. .NET Model is converted into JSON object and passed on to the Init function. In the Init when we do something like this we get the exact representation of the .NET Model in a javascript object with all items as knockout observables which is nice for a two-way binding.

    model = ko.mapping.fromJS(initialData);

    or

    model = ko.wrap.fromJS(initialData);

    - Regards -
       J O N

    ASP.NET javascript json csharp asp-net wpf

  • To Web Pages or not to Web Pages?
    J John ph

    I have worked on Webforms previously and now MVC. In my opinion MVC is better in performance, speed and flexible for test-driven development. Here is the interesting part.... No postbacks, No viewstates, No server controls, No page life-cycle. All done with HTTP RESTful services and HTML controls. And it's completely stateless. Controller controls all user interactions. each user request is served by raising an action method in the controller. Bundling, routing and Web API's are some of the interesting areas in ASP.NET MVC Check this MSDN articel[^]

    - Regards -
       J O N

    ASP.NET asp-net csharp database architecture question

  • MVC - How are you scripting..?
    J John ph

    I'm using revealing module pattern and knockout js file contains viewmodel something like this

    // The ViewModel
    var viewmodel = function (){
    model = ko.mapping.fromJS([]),
    init = function(initialData) {
    model = initialData;
    },
    save = function(data, event) {
    $.ajax({
    // ....
    });
    },
    delete = function(data, event) {
    $.ajax({
    // ....
    });
    };
    return{
    Init : init,
    Save : save,
    Delete : delete
    };
    };

    view contains script to initialize viewModel and bindings

    $(document).ready(function () {
    viewmodel.Init(Model.toJSON());
    ko.applyBindings(viewmodel);
    });

    Not sure if it's the best way but it works.

    - Regards -
       J O N

    ASP.NET javascript json csharp asp-net wpf

  • MVC v MVVM
    J John ph

    Whatever data that is required for the View keep it in ViewModel. Use auto mapper to convert Core DataModel to ViewModel and Vice versa.

    - Regards -
       J O N

    ASP.NET csharp asp-net wpf architecture css

  • asp.net web form or asp.net mvc ??
    J John ph

    Classic car or Sports car? Which one do you want? why?

    - Regards -
       J O N

    ASP.NET asp-net csharp architecture question

  • Best way to save/load data locally. WPF
    J John ph

    1. Create an object that describes your data 2. Serialize it as XML file 3. If your data contains any bitmaps, add those to a seperate folder 4. zip the whole content and add the file extension that is associated with your WPF application 5. save the file do the reverse order to get it loaded. select the File, Unzip and deserialize

    - Regards -
       J O N


    A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers


    WPF csharp wpf

  • MessageBox - when application loads a WPF theme DLL
    J John ph

    you can check this article WPF Themes and Skins Engine[^] to get some tips...

    - Regards -
       J O N


    A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers


    WPF wpf csharp question announcement

  • How to activate the tab in tab control by select the business object
    J John ph

    Mode=OneWay in the SelectedItem is causing the problem, i guess. Remove that and try.

    - Regards -
       J O N


    A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers


    WPF question wpf wcf business tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups