Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 27th, 2006, 09:34 AM
Registered User
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Query Using Date i n Textbox

hi

I created a database in MS SQL 7.0 called "DBSupply".It has a table called "Supply".
The table has two columns Named "Date" and "productSuppiled".

On my webform1.aspx, I have a textbox, Search botton and a datagrid.


Please how do i construct my SQL query on the webform so that when i type a specific date
in the textbox it will display date and the productsupplied on that date on my datagird.

I dont know which SQL query to pass from the webform, that will help me retrieve information
from the database based on the data i type in textbox.

I am using MS Visual studio.Net 2003 and VB as language.

Helps will be appreciated.


Ktsis
 
Old May 27th, 2006, 10:18 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Here is a great article to help you

http://aspnet.4guysfromrolla.com/articles/070203-1.aspx






Similar Threads
Thread Thread Starter Forum Replies Last Post
Date entry textbox as / / adamusufi SQL Server 2000 5 February 22nd, 2009 12:23 AM
I am not getting calender next to Date textbox sha_shivani Reporting Services 2 April 26th, 2007 04:41 AM
Date based query when date is nvarchar MichaelTJ SQL Language 4 January 12th, 2004 09:57 PM
Convert String Date to Date for a SQL Query tdaustin Classic ASP Basics 4 July 7th, 2003 06:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.