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. SQLDatasource with multiple controlparameters for select command

SQLDatasource with multiple controlparameters for select command

Scheduled Pinned Locked Moved ASP.NET
helpdatabasecsharpasp-netwpf
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.
  • G Offline
    G Offline
    Geethalakshmi
    wrote on last edited by
    #1

    I would like to introduce myself as ASP.Net 2.0 beginner. I face a problem when using gridview and sqldatasource. Problem: Initially I tried using the SQLDatasource control and Gridview with one parameter in the select query. I made that parameter as a control parameter and set the autopostback of the control. Everything worked fine. Now I want to have multiple control parameters set for one SQLDatasource and GridView combination (It is basically a kind of search screen and the procedure for select command has so many parameters). I have created all the properties for these controls. But getting stuck with how to trigger the retrieval process. If it is one control, I used the autopostback and ASP.Net did the rest. Now that I have to manually trigger the retrieval of data and the binding on a search button click, am getting stuck. This is an urgent requirement and Could you please help??? Thanks Geetha

    T 1 Reply Last reply
    0
    • G Geethalakshmi

      I would like to introduce myself as ASP.Net 2.0 beginner. I face a problem when using gridview and sqldatasource. Problem: Initially I tried using the SQLDatasource control and Gridview with one parameter in the select query. I made that parameter as a control parameter and set the autopostback of the control. Everything worked fine. Now I want to have multiple control parameters set for one SQLDatasource and GridView combination (It is basically a kind of search screen and the procedure for select command has so many parameters). I have created all the properties for these controls. But getting stuck with how to trigger the retrieval process. If it is one control, I used the autopostback and ASP.Net did the rest. Now that I have to manually trigger the retrieval of data and the binding on a search button click, am getting stuck. This is an urgent requirement and Could you please help??? Thanks Geetha

      T Offline
      T Offline
      ToddHileHoffer
      wrote on last edited by
      #2

      all you have to is put datagrid.databind(); in the code that handles the event for your search button.


      how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things --thedailywtf 3/21/06

      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