Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 315 results for
searchbox
- Page 1
C# Searchbox connected
Programming
Software Development
14 Years Ago
by Exaktor
Hi, I have 4
searchbox
and with them i can search in a Datagridview. But …
Search in a datagridview with searchbox
Programming
Software Development
13 Years Ago
by Exaktor
… it. I want to search the whole datagridview with a
searchbox
. This is the code I am using but it only…
SearchBox which is connecyed to a database
Programming
Software Development
13 Years Ago
by krii017
i wonder how can i make a search box like this. [ATTACH]20232[/ATTACH] [URL="http://www.youtube.com/watch?v=3cJinHSSkuI&feature=related"]http://www.youtube.com/watch?v=3cJinHSSkuI&feature=related[/URL] i tried to convert the code in the description but it didn't work haha
Re: SearchBox which is connecyed to a database
Programming
Software Development
13 Years Ago
by abelLazm
Write this query on button_click event it will return every occurrence of your entered string in database [CODE]String Command="select OrderNumber, Address, City ,Zipcode from Table_name where OrderNumber like '%"+ searchTextBox.text+"%'"[/CODE]
Re: SearchBox which is connecyed to a database
Programming
Software Development
13 Years Ago
by Mitja Bonca
You want to do an sql query which would return all the order numbers, which contains the inserted number in textBox? The order is not counting at all? I can see you typed into a textBox 10078, and the return was 2 results: 1007851103 and 11007859. 2nd order number has 11 on the beginning - this is not what you wrote into textBox. So does it mean …
Re: SearchBox which is connecyed to a database
Programming
Software Development
13 Years Ago
by Mitja Bonca
If I was wrong in my last statement, you cna do it like: [CODE] private void textBox1_TextChanged(object sender, EventArgs e) { DataTable table = new DataTable(); //getting new results: using (SqlConnection sqlConn = new SqlConnection("connectionString")) { …
Re: SearchBox which is connecyed to a database
Programming
Software Development
13 Years Ago
by krii017
[CODE]lvi.SubItems.Add(dr[1]); lvi.SubItems.Add(dr[2]); lvi.SubItems.Add(dr[3]);[/CODE] got an error it says cannot convert to System.Windows.Forms.listViewItems.ListViewSubItems
Re: C# Searchbox connected
Programming
Software Development
14 Years Ago
by phoenix911
do you want to search for more than 1 field at a time? or search one field, and all relevant data with that ( this should already be happening0
Re: C# Searchbox connected
Programming
Software Development
14 Years Ago
by kvprajapati
[b]>So what I want is that they are connected to each other. [/b] Please be more specific. I guess you have to use [B]and[/B] operator. [code] List<string> query = new List<string>(); if (txtSearch1.Text.Length != 0) query.Add("firstname like '" + txtSearch1.Text + "%'"); if (txtSearch2.…
Re: C# Searchbox connected
Programming
Software Development
14 Years Ago
by phoenix911
the above code, would work, if thats what you wanted, but like he mentioned, you have to be more specific, I myself wasnt to sure what you meant, thats why i asked if you wanted to search multiple fields at once, good post adatapost
Re: Search in a datagridview with searchbox
Programming
Software Development
13 Years Ago
by finito
HMM, I am not sure but try this. [CODE] DataView Dv = new DataView(); Dv.Table = partsDataSet.Tables["partsTable"]; Dv.RowFilter = " Make LIKE '%" + makeBox.Text + "%' OR Model LIKE '%" + makeBox.Text + "%' "; dataGridView1.DataSource = Dv;[/CODE]
Re: Search in a datagridview with searchbox
Programming
Software Development
13 Years Ago
by Exaktor
If i search only 'Honda' in make column it shows the value. I can also search for 'Accord' in model column. But when I search for maybe 'Honda Accord' it doesn't show up anything. Here is a image for my program. [URL="http://img203.imageshack.us/img203/3240/inventoryn.jpg"]http://img203.imageshack.us/img203/3240/inventoryn.jpg[/URL]
Re: Search in a datagridview with searchbox
Programming
Software Development
13 Years Ago
by finito
Make another TextBox ModelBox [CODE] DataView Dv = new DataView(); Dv.Table = partsDataSet.Tables["partsTable"]; Dv.RowFilter = " Make LIKE '%" + makeBox.Text + "%' OR Model LIKE '%" + ModelBox.Text + "%' "; dataGridView1.DataSource = Dv;[/CODE] or parse them …
Re: Search in a datagridview with searchbox
Programming
Software Development
13 Years Ago
by finito
If you are making an Spare Parts inventory search program I suggest you add Spare Part number.
Re: Search in a datagridview with searchbox
Programming
Software Development
13 Years Ago
by Exaktor
Finiti, Thanks for the tips. I did a modelbox also but I want them to be connected to each other. For example when I write 'Honda' in the makebox and then something else in the modelbox it only shows the value from modelbox. I don't want it to restart from start when I start writing on the other box.
Re: Search in a datagridview with searchbox
Programming
Software Development
13 Years Ago
by finito
[CODE] Dv.RowFilter = " Make LIKE '%" + [B]makeBox.Text[/B] + "%' OR Model LIKE '%" + [B]ModelBox.Text [/B]+ "%' [/CODE]
Re: Search in a datagridview with searchbox
Programming
Software Development
13 Years Ago
by Exaktor
[QUOTE=finito;1215466][CODE] Dv.RowFilter = " Make LIKE '%" + [B]makeBox.Text[/B] + "%' OR Model LIKE '%" + [B]ModelBox.Text [/B]+ "%' [/CODE][/QUOTE] I can't use OR operator if I use maybe 4 searchboxes. How do I do then?
Re: Search in a datagridview with searchbox
Programming
Software Development
13 Years Ago
by Exaktor
Look at this image: [URL="http://img97.imageshack.us/img97/1448/asdfgvt.jpg"]http://img97.imageshack.us/img97/1448/asdfgvt.jpg[/URL] Why does it also show 'Honda accord'? I want it to show just 'Honda Civic'.
Re: Search in a datagridview with searchbox
Programming
Software Development
13 Years Ago
by finito
[QUOTE=Exaktor;1215501]Look at this image: [URL="http://img97.imageshack.us/img97/1448/asdfgvt.jpg"]http://img97.imageshack.us/img97/1448/asdfgvt.jpg[/URL] Why does it also show 'Honda accord'? I want it to show just 'Honda Civic'.[/QUOTE] do you the concept ++ make + -- make + -+ make - +- make - just read the SQL you did…
Re: Search in a datagridview with searchbox
Programming
Software Development
13 Years Ago
by Exaktor
Thank you very much finito for the help I have now fixed the problem.
Re: Search in a datagridview with searchbox
Programming
Software Development
13 Years Ago
by finito
[QUOTE=Exaktor;1215573]Thank you very much finito for the help I have now fixed the problem.[/QUOTE] nps your welcome, please mark as solved.
can you evaluate my code, which is better?
Programming
Web Development
13 Years Ago
by lambing
…: function(e) { if(Dom.get(this.
searchBox
).value === defaultSearchValue) { Dom.get(this.
searchBox
).value = ''; Dom.get(this.
searchBox
).style.fontStyle = 'normal'; } }, onBlur: function…
I Get this error mysql_numrows(): supplied argument is not a valid MySQL re
Programming
Web Development
10 Years Ago
by official.DJ.cabo
…").keyup(function() { var
searchbox
= $(this).val(); var dataString = 'searchword='+
searchbox
; if(
searchbox
=='') { } else { $.ajax…}return false; }); }); jQuery(function($){ $("#
searchbox
").Watermark("Search"); }); </script&…
Live search didn't disappear
Programming
Web Development
12 Years Ago
by vizz
…(function(){ $(".search").keyup(function() { var
searchbox
= $(this).val(); var dataString = 'searchword='+
searchbox
; if(
searchbox
=='') {} else { $.ajax({ type: "POST&…<?php } } else {} ?>[/CODE] CSS [CODE]*{margin:0px} #
searchbox
{ width:250px; border:solid 1px #000; padding:3px; } #display { width…
Re: Please help, PHP causing site crash
Programming
Web Development
11 Years Ago
by LastMitch
…get' action='".$GLOBALS['bloginfo_url']."/' name='
searchBox
' id='
searchBox
'> From this: $string .= "… action='".$GLOBALS['bloginfo_url']."/' name='
searchBox
' id='
searchBox
'> Add a **semicolon** at …action='".$GLOBALS['bloginfo_url']."/' name='
searchBox
' id='
searchBox
'>; If this doesn't work…
IE quirk-no images showing on my index page
Digital Media
UI / UX Design
16 Years Ago
by marushko
…:0; margin:0; display:inline; } .
searchbox
form p { padding:0; margin:0; display:inline; } .
searchbox
input { background:transparent; border:1px solid… #CCCCCC; color:#FFFFFF; font-size:.85em;} .
searchbox
{ border:0px solid #CC6600; float:right; margin-right:20px;…
How to highlight the search terms in a search results page?
Programming
Web Development
11 Years Ago
by flynismo
… LIKE ? "); $q->execute(array('%'.$_POST['
searchbox
'].'%')); ### Here the query is being executed $q->… results found for: <strong> " . $_POST['
searchbox
'] . "</strong></div>"; } }…->info will contain the search term ($_POST['
searchbox
']). How can I extract the search term from…
Re: Please help, PHP causing site crash
Programming
Web Development
11 Years Ago
by HITMANOF44th
…;<form method='get' action='".$GLOBALS['bloginfo_url']."/' name='
searchBox
' id='
searchBox
'> <input type='text' value='".$PPT->…;form method='get' action='".$GLOBALS['bloginfo_url']."/' name='
searchBox
' id='
searchBox
'><input type='text' value='".$PPT->_e…
movie catalog
Programming
Software Development
16 Years Ago
by angel143
… System.EventArgs) Handles searchButton.Click Dim index As Integer = DoBinarySearch(
searchBox
.Text) If index = -1 Then MessageBox.Show("Could not… find """ &
searchBox
.Text & """ in catalog") Else MessageBox…
css in ie problem
Digital Media
UI / UX Design
13 Years Ago
by hushtalk
i have had a problem with a
searchbox
found on 99lessons , it is a facebook like
searchbox
everytime i made a search, the… type="text" class="search" id="
searchbox
" /><br /> </div> </div…
1
2
3
6
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC