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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Flow Options opinions

Flow Options opinions

Scheduled Pinned Locked Moved C#
regexhelpdiscussion
5 Posts 2 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.
  • F Offline
    F Offline
    ffowler
    wrote on last edited by
    #1

    Hello All, I have a particular problem that I am hoping someone can give me a better way of acheiving something. I have a web page with some predefined search options. I want to give the user a way to create an adHoc search that could have up to 5 elements for the criteria. So I thought of associating a numeric or alpha character to each element and then do check for a pattern on the postback. This option is becoming cumbersome and I know there has got to be a better way of doing this. Any suggestions would be greatly appreciated. For those who don't answer, have a great day. Fred

    E 1 Reply Last reply
    0
    • F ffowler

      Hello All, I have a particular problem that I am hoping someone can give me a better way of acheiving something. I have a web page with some predefined search options. I want to give the user a way to create an adHoc search that could have up to 5 elements for the criteria. So I thought of associating a numeric or alpha character to each element and then do check for a pattern on the postback. This option is becoming cumbersome and I know there has got to be a better way of doing this. Any suggestions would be greatly appreciated. For those who don't answer, have a great day. Fred

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #2

      Create 5 fields.

      Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

      F 1 Reply Last reply
      0
      • E Ennis Ray Lynch Jr

        Create 5 fields.

        Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

        F Offline
        F Offline
        ffowler
        wrote on last edited by
        #3

        I did create 5 fields but what if the user doesn't want to utilize all the fields. For example they might want to use "Create Date" and "User". Another user might want to search by "Status", "User" and "Create Date".

        E 1 Reply Last reply
        0
        • F ffowler

          I did create 5 fields but what if the user doesn't want to utilize all the fields. For example they might want to use "Create Date" and "User". Another user might want to search by "Status", "User" and "Create Date".

          E Offline
          E Offline
          Ennis Ray Lynch Jr
          wrote on last edited by
          #4

          Then what is the problem. Pass the parameters to your stored procedure if they are provided, null if not, and then use the appropriate where clause to restrict the results. If you aren't using a database, LINQ will do the same thing in its where clause.

          Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

          F 1 Reply Last reply
          0
          • E Ennis Ray Lynch Jr

            Then what is the problem. Pass the parameters to your stored procedure if they are provided, null if not, and then use the appropriate where clause to restrict the results. If you aren't using a database, LINQ will do the same thing in its where clause.

            Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

            F Offline
            F Offline
            ffowler
            wrote on last edited by
            #5

            :doh: Sorry to have been a bother. I just wasn't thinking for some reason. Thanks!

            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