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. Web Development
  3. ASP.NET
  4. ASP .net results in the same page

ASP .net results in the same page

Scheduled Pinned Locked Moved ASP.NET
databasequestioncsharp
4 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
    Maksi
    wrote on last edited by
    #1

    In asp .net application i execute sql query with button click and results come in new page, how can i get resuls in the same page? thank you for your reply in advance.

    M 1 Reply Last reply
    0
    • M Maksi

      In asp .net application i execute sql query with button click and results come in new page, how can i get resuls in the same page? thank you for your reply in advance.

      M Offline
      M Offline
      matthias s 0
      wrote on last edited by
      #2

      since your question is rather unspecific, I assume that you have an aspx page with a button on it. in the buttons click event-handler you connect to a datasource and fetch some records. then you assign them to either a datagrid, a repeater or your homemade html to render the data. in this case you have the result on the same page (freshly generated after a roundtrip to the server caused by the button click). if you provide a more specific question or some code snippets, we might be able to help more. regards! /matthias

      I love deadlines. I like the whooshing sound they make as they fly by.
      [Douglas Adams]

      M 1 Reply Last reply
      0
      • M matthias s 0

        since your question is rather unspecific, I assume that you have an aspx page with a button on it. in the buttons click event-handler you connect to a datasource and fetch some records. then you assign them to either a datagrid, a repeater or your homemade html to render the data. in this case you have the result on the same page (freshly generated after a roundtrip to the server caused by the button click). if you provide a more specific question or some code snippets, we might be able to help more. regards! /matthias

        I love deadlines. I like the whooshing sound they make as they fly by.
        [Douglas Adams]

        M Offline
        M Offline
        Maksi
        wrote on last edited by
        #3

        yes I have aspx page and there is datagrid but problem is here, i just saw, i had insert javascript code to handle Enter click and execute button click, and its caused get results in new page. ehat can I handle button click, on textbox like enabled button in winforms?

        M 1 Reply Last reply
        0
        • M Maksi

          yes I have aspx page and there is datagrid but problem is here, i just saw, i had insert javascript code to handle Enter click and execute button click, and its caused get results in new page. ehat can I handle button click, on textbox like enabled button in winforms?

          M Offline
          M Offline
          matthias s 0
          wrote on last edited by
          #4

          I'm sorry, but I still don't understand the issue you're having. could you provide some sample code illustrating the problem? regards! /matthias

          I love deadlines. I like the whooshing sound they make as they fly by.
          [Douglas Adams]

          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