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. Database & SysAdmin
  3. Database
  4. problem in writing query for particular problem..

problem in writing query for particular problem..

Scheduled Pinned Locked Moved Database
databasehelpsql-serversysadmin
5 Posts 4 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.
  • P Offline
    P Offline
    pankaj3086
    wrote on last edited by
    #1

    can any one help me i am facing problem in writing query in my project.i am taking four link buttons in one page(test.aspx page) when i click on Test1 link it should show me the result on show page (show.aspx page) by retriving the data stored in database for Test1 table similarly if i click Test2 link it should show me the data on same show page(show.aspx page) retriving data from database for test2 table same for Test3 and Test4 link.database iam using here is sql server 2005.

    P M 2 Replies Last reply
    0
    • P pankaj3086

      can any one help me i am facing problem in writing query in my project.i am taking four link buttons in one page(test.aspx page) when i click on Test1 link it should show me the result on show page (show.aspx page) by retriving the data stored in database for Test1 table similarly if i click Test2 link it should show me the data on same show page(show.aspx page) retriving data from database for test2 table same for Test3 and Test4 link.database iam using here is sql server 2005.

      P Online
      P Online
      PIEBALDconsult
      wrote on last edited by
      #2

      How it's displayed and how the user interacts with it doesn't matter. What database system? What is your schema like?

      1 Reply Last reply
      0
      • P pankaj3086

        can any one help me i am facing problem in writing query in my project.i am taking four link buttons in one page(test.aspx page) when i click on Test1 link it should show me the result on show page (show.aspx page) by retriving the data stored in database for Test1 table similarly if i click Test2 link it should show me the data on same show page(show.aspx page) retriving data from database for test2 table same for Test3 and Test4 link.database iam using here is sql server 2005.

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        Trap the click event from the buttons Identify the button Test1-4 to determine the table Create a query string to select the data based on the button clicked Create a connection to the database Create a command using the connection string and the query string that returns a data table bind the datatable to the grin in your UI

        Never underestimate the power of human stupidity RAH

        P 1 Reply Last reply
        0
        • M Mycroft Holmes

          Trap the click event from the buttons Identify the button Test1-4 to determine the table Create a query string to select the data based on the button clicked Create a connection to the database Create a command using the connection string and the query string that returns a data table bind the datatable to the grin in your UI

          Never underestimate the power of human stupidity RAH

          P Offline
          P Offline
          pankajots
          wrote on last edited by
          #4

          @mycroftholmes can u plzz write query for me to retrive data from diffrent tables on a single pages.

          M 1 Reply Last reply
          0
          • P pankajots

            @mycroftholmes can u plzz write query for me to retrive data from diffrent tables on a single pages.

            M Offline
            M Offline
            Mycroft Holmes
            wrote on last edited by
            #5

            Nope, I have better things to do that your work. [edit] I relent

            Select * from TableName

            there you go, just replace tableName with the table name. [/edit]

            Never underestimate the power of human stupidity RAH

            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