codeprada's Profile User Rating: *****

Reputation: 952 Master
Active Posts:
2,379 (1.36 per day)
15-February 11
Profile Views:
Last Active:
User is offline Nov 04 2015 04:58 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:
Expert In:

Latest Visitors

Icon   codeprada has not set their status

Posts I've Made

  1. In Topic: Write application from Winforms to MVC

    Posted 24 Sep 2015


    Submitting data to the server via Javascript will be almost as identical as if the regular/traditinal form submission is used. Using AJAX will set your HTTP_X_REQUESTED_WITH header value with XMLHttpRequest. In terms on the security aspect of this, the data will be visible once you're not using HTTPS. Using AJAX doesn't necessarily make it less secure. ASP.NET however has mechanisms to validate the origin and authenticity of your data. You could use the HTML helper function
    . This would place a hidden input in your form and the value would be validate the form when it is submitted to the server. To make use of this feature you must attach the [ValidateAntiForgeryToken] Attribute to your ValidateUser action method within your HomeController.

    [HttpPost] // let's only accept POST requests
    public ActionResult ValidateUser(/* parameters */)
        // code won't be executed unless the AntiForgeryToken is valid

    There is also a better way to handle AJAX forms. You must install the package Microsoft.jQuery.Unobtrusive.Ajax from NuGet. Have a look at the code below.
    @using (Ajax.BeginForm("ActionMethodName", "ControllerName", null, new AjaxOptions()
        HttpMethod = "POST",
        InsertionMode = InsertionMode.Replace,
        UpdateTargetId = "replace-a-html-element-with-the-result-of-your-ajax-call",
        OnSuccess = "runthisjavascriptfunction"
        <!-- Your HTML Code Here -->

    Read up on the Ajax.BeginForm for submitting forms via AJAX.
  2. In Topic: Fall - Winter 2015 Fitness

    Posted 24 Sep 2015

    Fitness isn't just for those who are overweight. A lean person can suffer from high cholesterol just as easy as someone who's overweight. Staying fit doesn't even have to involve going to the gym and working out. Playing a sport works. Keep the heart and body healthy and your mind will work at optimal performance.
    I'm actually in the process of gaining weight... yep gaining weight. My weight a few months ago was about 110-115 lbs and I'm a 25 year old male lol. I'm 5'5" though so my lack of weight helps. I managed to reach the 120's category through weight lifting. Since I code a lot and game on a few occasions the physical activity is needed.

    Can never go wrong with fitness and you feel great when you start to see results. It's hard work but what isn't these days? We're coders, we know what hard work is. If we can debug programs for hours I'm sure we got the patience to grind out the results through physical activity.
  3. In Topic: Role Based login form in webforms

    Posted 1 Sep 2015


    Have a look at ASP.NET Identity. You'll be able to create actual Roles and check which role each user is in upon login. It's a bit of a learning curve for anyone starting out ASP.NET but it's definitely something you'll want to learn.

    This is a tutorial to get you started -> Adding ASP.NET Identity to an Empty or Existing Web Forms Project
  4. In Topic: What are you working on today?

    Posted 17 Apr 2015

    Try working for the government. Loading a project takes about 10 - 15 minutes. Enough time to make a cup of coffee. Dual Core Intel with 4 GB of RAM and 256MB dedicated to video. Compiling would probably take about 2 - 3 minutes for me at work and 5 seconds at home.
  5. In Topic: Winforms project with sql server, where to put (clr) stored procedure?

    Posted 17 Apr 2015


    A simple way to incorporate your queries is through the Entity Framework (EF). I had to call stored procedures in my current project and EF makes it quite easy. Check out this short tutorial on how to do so.
    Stored Procedure in Entity Framework
    Note that EF automatically protects you against SQL injection.

    You could also do it via the SqlCommand. Instead of passing the query into the SqlCommand you would pass the procedure's name and set the command type to StoredProcedure.
    Here's an example
    Call stored procedure with parameters using SqlCommand

    To avoid SQL injection use Parameters. For example.
    using (var command = new SqlCommand("INSERT INTO Table VALUES(@name, @number)")) {
        command.Parameters.AddWithValue("@name", NameTextBox.Text); // it's safe to pull the text directly from the UI or Object
        command.Parameters.AddWithValue("@number", someObject.Number);
        // code to execute your query

My Information

Member Title:
Changed Man With Different Priorities
24 years old
February 13, 1991
My girlfriend,
Staying fit,
Football (Soccer),
Years Programming:
Programming Languages:


Contact Information

Website URL:
Website URL


Page 1 of 1
  1. Photo

    jesicalbaby Icon

    16 Sep 2013 - 14:40
    My name is Miss jesical,
    i saw your profile today
    and,i fill more interest to contact you ,
    i will like you to please send me
    an email via (
    for me to send you my picture
  2. Photo

    defiance Icon

    22 Feb 2012 - 14:47
    codeprada when you have time please read your priv mail :)
  3. Photo

    Jstall Icon

    31 Jan 2012 - 06:12
    Congrats on the promotion! Very very well deserved dude.
  4. Photo

    smohd Icon

    31 Jan 2012 - 03:59
    Welcome to the club! Now its my time to welcome you :)
  5. Photo

    smohd Icon

    30 Oct 2011 - 12:52
    Thanks mate, Looks cool... I missed my experts club ;)
    But you seem to be busy these days.
  6. Photo

    RudiVisser Icon

    05 Sep 2011 - 04:32
    Thanks :)
  7. Photo

    RudiVisser Icon

    05 Aug 2011 - 10:11
    Thanking you - Once I've finished off the 2x CMS Tutorials + got time to spend on more daily articles I think it will be even better! Just can't keep updating my signature with every single one :D
  8. Photo

    smohd Icon

    03 Jul 2011 - 09:37
  9. Photo

    smohd Icon

    20 Jun 2011 - 14:43
    I see it now, nice work :)
  10. Photo

    smohd Icon

    20 Jun 2011 - 11:49
    Hi, but everytime I see you online helping, why they remove it from you? Did they mention any reason? or just system error?
  11. Photo

    smohd Icon

    20 Jun 2011 - 11:17
    Hey, what happens to expert badge?
  12. Photo

    codeprada Icon

    16 Jun 2011 - 03:36
    Thanks, so the link's been doing it's job :)
  13. Photo

    Ace26 Icon

    16 Jun 2011 - 01:53
    Hey there, howdy? I like one of your signature links that says hell is real. Are you a believer in Jesus Christ as your Lord and personal saviour?
    If yes then I'd say keep up the good work and stay strong in the faith, my brother in the Lord.
    Nice to meet a fellow christian geek.
  14. Photo

    Vip3rousmango Icon

    13 Apr 2011 - 12:12
    Thanks for the rep! :)
Page 1 of 1