473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how can i refine a gridview selection using multiple dropdown lists and text boxes

I have five dropdown lists each with different data sources.the grid view selection should get more refined as i make each selection from ddl1 to ddl5 and the selection should be between two date ranges in two text boxes.below is the code i used but it doesnt seem to do what i want,please assist..

Expand|Select|Wrap|Line Numbers
  1. SELECT sequenceID,CONVERT (varchar(10), CallDate, 103) AS CallDate, CONVERT (varchar(10), StartTime, 108) AS StartTime, CONVERT (varchar(10), Finishtime, 108) AS FinishTime, Description FROM Hours WHERE (EmployeeID = @EmployeeID) or (CompanyID = @CompanyID) or (ProjectID = @ProjectID) or (CustomerID = @CustomerID) or (ATMID = @ATMID) and CallDate>=@StartDate and CallDate<=@EndDate 
  2.  
Jul 12 '10 #1
0 1028

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Andrew Kidd | last post by:
Hi, I've have a form for the user to fill in which comprises of 5 date ranges, each made up of a "FROM" & "TO" date, which is built from a "" dropdownlist & a "" dropdownlist, as follows: ...
1
by: Frustrated Developer via DotNetMonster.com | last post by:
I have developed a form that would allow the user to load and search a database several ways, by data range using two combo boxes, by specific number entered in a text box or all database entries....
1
by: cgian31 | last post by:
I have implemented a website where in a page are represented the data of one record, using cascade dropdown lists in 2 levels, within the same page/record. According to the selection in the...
11
by: abctech | last post by:
Hi, I am developing a webapplication using Javascript,JSP,Servlets. I have 2 dropdown lists in my form, the first one is autopopulated on form load , I have written this code in Jsp and its...
2
by: chaosdl | last post by:
Hello, I am currently using Visual Basic 2005 express edition with a MS Access database. I have made a "Contacts" Form, where the user will be able to enter a members surname and press an OK...
0
by: =?Utf-8?B?RW1pbHk=?= | last post by:
Hi all, I have a gridview that contains two dropdown lists, Session and Attendance, along with some other columns. When the user makes changes and clicks the Submit button, I need to somehow...
2
by: =?Utf-8?B?bWF2cmljazEwMQ==?= | last post by:
Hi, I have a webform which has 4 panels. Each panel would have about 20 textboxes and dropdown boxes. I have named the controls like Panel1: _textboxP1T1; _textboxP1T2; ......
0
by: Kalkin | last post by:
Hi i am having trouble with the following problem any help would be appreciated:: The gridview starts off with empty text boxes for input along with already populated dropdowns to choose from for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.