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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Request.Form in MVC

Request.Form in MVC

Scheduled Pinned Locked Moved ASP.NET
asp-netcsharpjsonooparchitecture
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Quake2Player
    wrote on last edited by
    #1

    Hi, I was wondering if retrieving the input in MVC is always string based? Like requesting.form a "select multiple" (aka listbox).. Is any other method than retrieving the values in a comma-separated string? Like "043,015,091" Or for example a checkbox.. is it possible to retrieve a bool instead of parsing a string? Because everything must be retrieved by using Request.Form Please notice that i'm talking about ASP.NET MVC: That means i'm retrieving the values from a controller (POST) and not in the SomeButton_Click or something. In a NOT MVC way it would be all object oriented by using asp controls and etc.

    C 1 Reply Last reply
    0
    • Q Quake2Player

      Hi, I was wondering if retrieving the input in MVC is always string based? Like requesting.form a "select multiple" (aka listbox).. Is any other method than retrieving the values in a comma-separated string? Like "043,015,091" Or for example a checkbox.. is it possible to retrieve a bool instead of parsing a string? Because everything must be retrieved by using Request.Form Please notice that i'm talking about ASP.NET MVC: That means i'm retrieving the values from a controller (POST) and not in the SomeButton_Click or something. In a NOT MVC way it would be all object oriented by using asp controls and etc.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Sounds like MVC sucks. A website posts everything as a string. So, a string is all you will ever get. That's how the web works, it has nothing to do with MVC or ASP.NET.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      Q N 2 Replies Last reply
      0
      • C Christian Graus

        Sounds like MVC sucks. A website posts everything as a string. So, a string is all you will ever get. That's how the web works, it has nothing to do with MVC or ASP.NET.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        Q Offline
        Q Offline
        Quake2Player
        wrote on last edited by
        #3

        But with checkboxes, for example, when you use ASP.NET (not mvc) you can manage them as if their were winforms checkboxes (ie. myCheckBox.Value is bool), And with Listboxes, you can refer to the ith item in the list (because its an array), and so on..

        C 1 Reply Last reply
        0
        • Q Quake2Player

          But with checkboxes, for example, when you use ASP.NET (not mvc) you can manage them as if their were winforms checkboxes (ie. myCheckBox.Value is bool), And with Listboxes, you can refer to the ith item in the list (because its an array), and so on..

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Because ASP.NET converts it all for you. Which is why I said, it sounds like MVC sucks.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          T N 2 Replies Last reply
          0
          • C Christian Graus

            Because ASP.NET converts it all for you. Which is why I said, it sounds like MVC sucks.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            T Offline
            T Offline
            ToddHileHoffer
            wrote on last edited by
            #5

            Christian Graus wrote:

            Because ASP.NET converts it all for you. Which is why I said, it sounds like MVC sucks.

            Seriously. MVC is like a step backwards. I haven't had any problems with ASP.Net, I don't understand what issues MVC fixed. Really, I don't get it even a little bit.

            I didn't get any requirements for the signature

            Q 1 Reply Last reply
            0
            • C Christian Graus

              Because ASP.NET converts it all for you. Which is why I said, it sounds like MVC sucks.

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              Christian Graus wrote:

              Which is why I said, it sounds like MVC sucks.

              A broad statement that can fit any number of situations, tools, technologies, etc. sounds like [insert name here] sucks.


              only two letters away from being an asset

              C 1 Reply Last reply
              0
              • N Not Active

                Christian Graus wrote:

                Which is why I said, it sounds like MVC sucks.

                A broad statement that can fit any number of situations, tools, technologies, etc. sounds like [insert name here] sucks.


                only two letters away from being an asset

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                Well, I only have his description to go on, so that is what I was commenting on.

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                1 Reply Last reply
                0
                • C Christian Graus

                  Sounds like MVC sucks. A website posts everything as a string. So, a string is all you will ever get. That's how the web works, it has nothing to do with MVC or ASP.NET.

                  Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                  N Offline
                  N Offline
                  N a v a n e e t h
                  wrote on last edited by
                  #8

                  Christian Graus wrote:

                  Sounds like MVC sucks.

                  Not in all aspects. It is good if you want better testability, reduced payload, meaningful URLs and many other things. Two things which I don't like about ASP.NET MVC are, writing markup and server side code together like we did in old ASP and installations on IIS6. Installation on any IIS versions prior to 7 is not very straightforward. :)

                  Navaneeth How to use google | Ask smart questions

                  1 Reply Last reply
                  0
                  • T ToddHileHoffer

                    Christian Graus wrote:

                    Because ASP.NET converts it all for you. Which is why I said, it sounds like MVC sucks.

                    Seriously. MVC is like a step backwards. I haven't had any problems with ASP.Net, I don't understand what issues MVC fixed. Really, I don't get it even a little bit.

                    I didn't get any requirements for the signature

                    Q Offline
                    Q Offline
                    Quake2Player
                    wrote on last edited by
                    #9

                    MVC solves the separation of concerns.. thats what it "fixes"

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

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