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. EventArgs in DoPostback

EventArgs in DoPostback

Scheduled Pinned Locked Moved ASP.NET
questionjavascripttutorial
2 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.
  • M Offline
    M Offline
    Michela 0
    wrote on last edited by
    #1

    If you do a manual postback by calling __doPostBack in javascript, what happens to the value you send for the eventArgument argument? For example, suppose the following is called in javascript __doPostBack('Button1','Test'); This causes a postback but how can I extract the value "Test" from the eventArgs ? Michela

    P 1 Reply Last reply
    0
    • M Michela 0

      If you do a manual postback by calling __doPostBack in javascript, what happens to the value you send for the eventArgument argument? For example, suppose the following is called in javascript __doPostBack('Button1','Test'); This causes a postback but how can I extract the value "Test" from the eventArgs ? Michela

      P Offline
      P Offline
      Paul Riley
      wrote on last edited by
      #2

      Doing postback's isn't quite as simple as calling __doPostBack. You want to create a control derived from Button that handles postbacks using Page.GetPostBack... methods. There's quite a lot to learn here, so I'm just pointing you in the right direction :). Paul

      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