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. AJAX and ASP.NET and submit button

AJAX and ASP.NET and submit button

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netdatabasetutorial
6 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.
  • K Offline
    K Offline
    Kasic Slobodan
    wrote on last edited by
    #1

    Two questions: 1. I have a ASP.NET application with ASP.NET form controls in it. I want to display some data from database with AJAX (no Atlas) when ASP.NET textbox loses focus, so I was wandering, how can I call AJAX function when textbox loses focus or I need to use a standard textbox? Anyway, I know how to do it with standard textbox, but, I want to use a ASP.NET control. 2. I've got two ASP.NET buttons, one for submiting, other for previewing the message (like the one you have it on CodeProject to preview the written message). I want the same functionalaty, but with ASP.NET button. I know that I can do it simply with standard button control. I've tried with RegisterStartupScript, but form first submits and then opens the popup window. I don't wanna to submit the form (with that prview button). Thanks.

    A 1 Reply Last reply
    0
    • K Kasic Slobodan

      Two questions: 1. I have a ASP.NET application with ASP.NET form controls in it. I want to display some data from database with AJAX (no Atlas) when ASP.NET textbox loses focus, so I was wandering, how can I call AJAX function when textbox loses focus or I need to use a standard textbox? Anyway, I know how to do it with standard textbox, but, I want to use a ASP.NET control. 2. I've got two ASP.NET buttons, one for submiting, other for previewing the message (like the one you have it on CodeProject to preview the written message). I want the same functionalaty, but with ASP.NET button. I know that I can do it simply with standard button control. I've tried with RegisterStartupScript, but form first submits and then opens the popup window. I don't wanna to submit the form (with that prview button). Thanks.

      A Offline
      A Offline
      Amit Kushwaha
      wrote on last edited by
      #2

      hi, try this link http://www.w3schools.com/ajax/ajax_example.asp[^]

      Thanks & Regards... Amit

      K 1 Reply Last reply
      0
      • A Amit Kushwaha

        hi, try this link http://www.w3schools.com/ajax/ajax_example.asp[^]

        Thanks & Regards... Amit

        K Offline
        K Offline
        Kasic Slobodan
        wrote on last edited by
        #3

        Thanks... Hmmm... There isn't anything to do with ASP.NET controls on that link... -- modified at 8:39 Monday 11th December, 2006

        R 1 Reply Last reply
        0
        • K Kasic Slobodan

          Thanks... Hmmm... There isn't anything to do with ASP.NET controls on that link... -- modified at 8:39 Monday 11th December, 2006

          R Offline
          R Offline
          RichardGrimmer
          wrote on last edited by
          #4

          Perhaps you're missing the fact that ASP.NET controls are all rendered as standard html controls - eg. an ASP:Label is rendered as a tag... Since this is the case, everything else should fall into place, once you realise what objects are resulting from your asp.net objects...

          "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

          K 1 Reply Last reply
          0
          • R RichardGrimmer

            Perhaps you're missing the fact that ASP.NET controls are all rendered as standard html controls - eg. an ASP:Label is rendered as a tag... Since this is the case, everything else should fall into place, once you realise what objects are resulting from your asp.net objects...

            "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

            K Offline
            K Offline
            Kasic Slobodan
            wrote on last edited by
            #5

            Sorry about that. I know that asp.net controls are rendered into standard controls. Anyway, I wanted a solution for asp.net controls wich I have solved it with control_name.Attribute.Add. Second problem is also solved with control_name.Attributes.Add and return false; after calling popupWindow.

            R 1 Reply Last reply
            0
            • K Kasic Slobodan

              Sorry about that. I know that asp.net controls are rendered into standard controls. Anyway, I wanted a solution for asp.net controls wich I have solved it with control_name.Attribute.Add. Second problem is also solved with control_name.Attributes.Add and return false; after calling popupWindow.

              R Offline
              R Offline
              RichardGrimmer
              wrote on last edited by
              #6

              result!

              "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

              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