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. dopostback method

dopostback method

Scheduled Pinned Locked Moved ASP.NET
questioncsharpjavascriptasp-netsysadmin
4 Posts 3 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.
  • A Offline
    A Offline
    Amir Jalaly
    wrote on last edited by
    #1

    hi i am beginer in asp.net so may be this question be too dump to answer ! i want to change the postback method that automaticly genarate in aspx files for exam when a spec control want to call dopostback before sending to server a javascript code runs . is there a way for running a javascript code for a .net component that must submit ot server ? Regards Amir Jalaly

    G 1 Reply Last reply
    0
    • A Amir Jalaly

      hi i am beginer in asp.net so may be this question be too dump to answer ! i want to change the postback method that automaticly genarate in aspx files for exam when a spec control want to call dopostback before sending to server a javascript code runs . is there a way for running a javascript code for a .net component that must submit ot server ? Regards Amir Jalaly

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      It might be possible to change the code that is automatically created, but I believe that it would be much easier to change the code that the control uses. Just examine the code that the control uses know, and add that code manually to the control instead. Then you can just add more javascript code to be executed before the postback. --- b { font-weight: normal; }

      A 1 Reply Last reply
      0
      • G Guffa

        It might be possible to change the code that is automatically created, but I believe that it would be much easier to change the code that the control uses. Just examine the code that the control uses know, and add that code manually to the control instead. Then you can just add more javascript code to be executed before the postback. --- b { font-weight: normal; }

        A Offline
        A Offline
        Amir Jalaly
        wrote on last edited by
        #3

        hi thanks for your answer . i use a datagrid and i want to change code of buttons on datagrid ( for example make sure that user wants to delete the record ) . how can do this with these controls ? Regards Amir Jalaly

        T 1 Reply Last reply
        0
        • A Amir Jalaly

          hi thanks for your answer . i use a datagrid and i want to change code of buttons on datagrid ( for example make sure that user wants to delete the record ) . how can do this with these controls ? Regards Amir Jalaly

          T Offline
          T Offline
          thomasa
          wrote on last edited by
          #4

          This can be used if you create buttons in runtime(I use this for linkbuttons). Button btn = new Button(); btn.Attributes.Add("OnClick", "javascript:return confirm('Are you sure you want to delete');"); Hope it helps Thomas

          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