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. Other Discussions
  3. The Weird and The Wonderful
  4. This really pushes my buttons

This really pushes my buttons

Scheduled Pinned Locked Moved The Weird and The Wonderful
5 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.
  • R Offline
    R Offline
    Rich Edwards
    wrote on last edited by
    #1

    if (buttontype == 0)
    {
    this.ViewState["id"] = 0;
    this.ViewState["ceID"] = 0;
    this.CreateOtmGridAndAutoCompleteJavascript();
    if (buttontype == 2)
    {
    this.PopulateDefaultValues(form);
    }
    }

    A V 2 Replies Last reply
    0
    • R Rich Edwards

      if (buttontype == 0)
      {
      this.ViewState["id"] = 0;
      this.ViewState["ceID"] = 0;
      this.CreateOtmGridAndAutoCompleteJavascript();
      if (buttontype == 2)
      {
      this.PopulateDefaultValues(form);
      }
      }

      A Offline
      A Offline
      Adam R Harris
      wrote on last edited by
      #2

      maybe CreateOtmGridAndAutoCompleteJavascript changes buttonType ... probably not but maybe

      Don't comment your code - it was hard to write, it should be hard to read!

      P G 2 Replies Last reply
      0
      • A Adam R Harris

        maybe CreateOtmGridAndAutoCompleteJavascript changes buttonType ... probably not but maybe

        Don't comment your code - it was hard to write, it should be hard to read!

        P Offline
        P Offline
        Pedro H Fialho
        wrote on last edited by
        #3

        Side effects FTW

        1 Reply Last reply
        0
        • A Adam R Harris

          maybe CreateOtmGridAndAutoCompleteJavascript changes buttonType ... probably not but maybe

          Don't comment your code - it was hard to write, it should be hard to read!

          G Offline
          G Offline
          greldak
          wrote on last edited by
          #4

          surely its obvious ViewState increments it ;P

          1 Reply Last reply
          0
          • R Rich Edwards

            if (buttontype == 0)
            {
            this.ViewState["id"] = 0;
            this.ViewState["ceID"] = 0;
            this.CreateOtmGridAndAutoCompleteJavascript();
            if (buttontype == 2)
            {
            this.PopulateDefaultValues(form);
            }
            }

            V Offline
            V Offline
            V 0
            wrote on last edited by
            #5

            Rich.Edwards wrote:

            This really pushes my buttons

            or not ;P

            V.
            (MQOTD rules and previous solutions)

            OriginalGriff wrote:

            V is absolutely right

            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