I need to know how to return a dataset from a DB from given a variable paramiter.
Posted on 2004-09-09
I am using asp.vb in Microsofts Visual Web Developer 2005 Express Edition Beta to make a web site. I have figured out how to graphically put an "SqlDataSource" object on the page and then "Bind" it to various data grids. The thing works great for returing all the values from my spesified values. Now I need it to return data based on a text box entry and the click of a button. I have added my button and my textbox to the page - But I can't figure out how to make the query look at whats in the text box for a parameter then procede to present the results. I have a basic understanding of ASP.Net (very basic) and of logical syntax. I can provide further information if it will help. I just need a little guidance. Also, for a web application, is this a reasonable way to set up a search for data? I made the question 500 pts because I think I will need some detail in the answer.