Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help creating a very simple page

Status
Not open for further replies.

johnc83

Technical User
Jan 29, 2008
154
GB
Hi All,

I have been creating a new windows VB application for the past few months and it has become necessary for part of it to be web-based. I have never created a new asp.net web site before and was hoping someone could point out the basics.

How would I go about setting up a home page where someone entered a value and a query was ran on my table.

e.g my Table 'tblJobs' has two fields, JobNumber & AccountNumber.

I would like user to enter their account number and be presented with all the jobs linked to that account number.

All I have been able to do so far is show every single record from the table.

Hope someone can help.

thanks and regards

John

.NET 2.0, Visual Studio 2005, SQL Server 2005 Express
 
Thanks for that, i'll take a look

much appreciated

John

.NET 2.0, Visual Studio 2005, SQL Server 2005 Express
 
Hi again, sorry if it looks like I am being lazy but I only need to be able to run a simple select query with one parameter. Need it quite quick thats all - I can look at the basics later on when I get chance.

Done so far:

On my default.aspx form I have a textbox (CustCodeTextBox) and because I have dragged some fields from the database I now have a 'SqlDataSource'.

I have configured this datasource to include a WHERE clause against what is in the CustCodeTextBox but I don't know how to execute it and populate the data.

It doesn't need to be perfect - just to show my bosses that it is possible.

Cheers

John

.NET 2.0, Visual Studio 2005, SQL Server 2005 Express
 
One of the tutorials from the ASP.NET site does pretty much what you are asking:


However, if you do go down the route of using the data controls then potentially they will make things harder in the long run


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
got what i was looking for now,

thanks a lot

John

.NET 2.0, Visual Studio 2005, SQL Server 2005 Express
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top