<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'Search'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=Search&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'Search'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Search</title><link>http://forums.asp.net/thread/3571586.aspx</link><pubDate>Thu, 17 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3571586</guid><dc:creator>ckblues123</dc:creator><description>&lt;p&gt;I need to code for serching a keyword from&amp;nbsp;a folder with doc n txt files if the keyword found i need to dispaly the files in&amp;nbsp;which it is there i need it in c#,&amp;nbsp;if anyone can help me thats so great thanks in advance&amp;nbsp;&lt;/p&gt;</description></item><item><title>Table Entries not visible during execution</title><link>http://forums.asp.net/thread/3555359.aspx</link><pubDate>Wed, 09 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3555359</guid><dc:creator>nencarnacion</dc:creator><description>&lt;p&gt;I made a simple search function which makes use of a textbox, a button and a listview. Using this code, i was able to successfully execute a search for a particular entry:&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;string strConString = ConfigurationManager.ConnectionStrings[&amp;quot;pubsConnectionString1&amp;quot;].ConnectionString;
            SqlConnection myConnect = new SqlConnection(strConString);

            string cmd = &amp;quot;SELECT * FROM authors WHERE au_lname=@au_lname&amp;quot;;

            SqlDataAdapter da = new SqlDataAdapter(cmd, myConnect);
            da.SelectCommand.Parameters.AddWithValue(&amp;quot;@au_lname&amp;quot;, TextBox1.Text);
            // here yu can see the passed value in textbox   
            DataSet ds = new DataSet();
            da.Fill(ds, &amp;quot;authors&amp;quot;);

            ListView1.DataSource = ds.Tables[&amp;quot;authors&amp;quot;];
            ListView1.DataBind(); &lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;But during the initial run of the page, there are no entries to be displayed. So what should i do so that when i first run the page,all of the entries are going to appear and when i click the button, thats the only time that the the table will show the results of the search.?How do i do this?&lt;/p&gt;</description></item><item><title>Search Function for Listview</title><link>http://forums.asp.net/thread/3553475.aspx</link><pubDate>Tue, 08 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3553475</guid><dc:creator>nencarnacion</dc:creator><description>&lt;p&gt;How do i make a simple search function that can search for entries in a listviews. do i use a textbox and a button? if yes, how do i do it?&lt;/p&gt;</description></item><item><title>Wild card not returning search values from database...</title><link>http://forums.asp.net/thread/3498550.aspx</link><pubDate>Fri, 06 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3498550</guid><dc:creator>dcwhitson</dc:creator><description>&lt;p&gt;Thanks in advance for anyone able to help me with this. I have been going over this for hours and it&amp;#39;s probably something simple that I am missing. &lt;/p&gt;&lt;p&gt;I have a search page that looks for adverstising listings in an MSSQL&amp;nbsp; Database. I can get return results for exact word matches, but I cannot get any wild card matches. I have dummy ads in there now and if I type in a word I know is in the index, such as landscaping, I get all the rows returned for that word. If I shorten the same word I just successfully found and put an * or % in the text box and search for landsc* or landsc%, I get no results. I get the same result if I am putting the wild card in the text box like a web savvy user would, or if I insert them while the page is building the query.&lt;/p&gt;&lt;p&gt;Any tips or advice would be greatly appreciated. I am using 1&amp;amp;1 shared hosting so it&amp;#39;s asp.net 2.0 and sql server 2005 that is being used.&lt;/p&gt;&lt;p&gt;&lt;a target="_blank" href="http://www.abqpromo.com/abqpromo/findit.aspx"&gt;here is where I am testing it&lt;/a&gt; (you must select NW as the location to get any results. Some valid keywords are test, description, landscaping, painting, accounting)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="vb.net"&gt;&amp;lt;%@ Page Title=&amp;quot;&amp;quot; Debug=&amp;quot;true&amp;quot; Language=&amp;quot;VB&amp;quot; MasterPageFile=&amp;quot;promo.master&amp;quot; %&amp;gt;

&amp;lt;%@ Import Namespace=&amp;quot;System.Data.SqlClient&amp;quot; %&amp;gt;

&amp;lt;script runat=&amp;quot;server&amp;quot;&amp;gt;
    Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim myConnection As Data.SqlClient.SqlConnection
        Dim myCommand As Data.SqlClient.SqlCommand
        Dim strSearch As String
        Dim arrTerms() As String
        Dim strSQL As String
        Dim I As Integer

        strSearch = adsearch.Text
		
        If strSearch.Length &amp;gt; 0 Then
            
            strSearch = strSearch.Replace(&amp;quot;&amp;#39;&amp;quot;, &amp;quot;&amp;#39;&amp;#39;&amp;quot;)
			
            arrTerms = strSearch.Split()

            strSQL = &amp;quot;SELECT * FROM ad_listings WHERE &amp;quot;
			
            For I = arrTerms.GetLowerBound(0) To arrTerms.GetUpperBound(0)
                
                strSQL = strSQL &amp;amp; &amp;quot;CONTAINS(*,&amp;#39;%&amp;quot; &amp;amp; arrTerms(I) &amp;amp; &amp;quot;%&amp;#39;)&amp;quot;
                strSQL = strSQL &amp;amp; &amp;quot; AND quad = &amp;#39;&amp;quot; &amp;amp; quadid.SelectedValue &amp;amp; &amp;quot;&amp;#39;&amp;quot;

                If I &amp;lt; arrTerms.GetUpperBound(0) Then
                    strSQL = strSQL &amp;amp; &amp;quot; AND &amp;quot;
                End If
            Next I

            myConnection = New SqlConnection(&amp;quot;Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True&amp;quot;)

            myConnection.Open()
            myCommand = myConnection.CreateCommand()
            myCommand.CommandText = strSQL

            DataList1.DataSource = myCommand.ExecuteReader()
            DataList1.DataBind()


            myConnection.Close()
        Else
            adsearch.Text = &amp;quot;Enter Search Here&amp;quot;
        End If
    End Sub
&amp;lt;/script&amp;gt;

&amp;lt;asp:Content ID=&amp;quot;Content1&amp;quot; ContentPlaceHolderID=&amp;quot;head&amp;quot; Runat=&amp;quot;Server&amp;quot;&amp;gt;
    &amp;lt;meta name=&amp;quot;keywords&amp;quot; content=&amp;quot;Albuquerque Business Search, local, find, look&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
    &amp;lt;meta name=&amp;quot;description&amp;quot; content=&amp;quot;Perform a local Albuquerque business search. ABQpromo provides an alternative to the &amp;#39;haystack&amp;#39; search engines and gives you a relevant Albuquerque Business Search.&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
&amp;lt;/asp:Content&amp;gt;
&amp;lt;asp:Content ID=&amp;quot;Content2&amp;quot; ContentPlaceHolderID=&amp;quot;LeftContent&amp;quot; Runat=&amp;quot;Server&amp;quot;&amp;gt;
&amp;lt;/asp:Content&amp;gt;
&amp;lt;asp:Content ID=&amp;quot;Content3&amp;quot; ContentPlaceHolderID=&amp;quot;MainContent&amp;quot; Runat=&amp;quot;Server&amp;quot;&amp;gt;
    &amp;lt;h1&amp;gt;Do an Albuquerque business search here!&amp;lt;/h1&amp;gt;
    &amp;lt;h1&amp;gt;Select a location...&amp;lt;/h1&amp;gt;
    &amp;lt;asp:DropDownList ID=&amp;quot;quadid&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
        &amp;lt;asp:ListItem Selected=&amp;quot;True&amp;quot; Value=&amp;quot;0&amp;quot;&amp;gt;Select One...&amp;lt;/asp:ListItem&amp;gt;
        &amp;lt;asp:ListItem Value=&amp;quot;2&amp;quot;&amp;gt;NE&amp;lt;/asp:ListItem&amp;gt;
        &amp;lt;asp:ListItem Value=&amp;quot;1&amp;quot;&amp;gt;NW&amp;lt;/asp:ListItem&amp;gt;
        &amp;lt;asp:ListItem Value=&amp;quot;3&amp;quot;&amp;gt;SE&amp;lt;/asp:ListItem&amp;gt;
        &amp;lt;asp:ListItem Value=&amp;quot;4&amp;quot;&amp;gt;SW&amp;lt;/asp:ListItem&amp;gt;
        &amp;lt;asp:ListItem Value=&amp;quot;5&amp;quot;&amp;gt;Rio Rancho&amp;lt;/asp:ListItem&amp;gt;
    &amp;lt;/asp:DropDownList&amp;gt;
    &amp;lt;asp:CompareValidator ID=&amp;quot;locValidator&amp;quot; runat=&amp;quot;server&amp;quot; 
        ControlToValidate=&amp;quot;quadid&amp;quot; ErrorMessage=&amp;quot;Location is required!&amp;quot; 
        Operator=&amp;quot;NotEqual&amp;quot; ValueToCompare=&amp;quot;0&amp;quot;&amp;gt;*&amp;lt;/asp:CompareValidator&amp;gt;
    &amp;lt;h1&amp;gt;Enter your search words...&amp;lt;/h1&amp;gt;
    
    &amp;lt;asp:TextBox id=&amp;quot;adsearch&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt; &amp;nbsp;&amp;nbsp;
    &amp;lt;asp:Button id=&amp;quot;btnSearch&amp;quot; runat=&amp;quot;server&amp;quot;

	Text= &amp;quot;Search Local!&amp;quot;
	style=&amp;quot;height: 26px&amp;quot; PostBackUrl=&amp;quot;findit.aspx&amp;quot; onclick=&amp;quot;btnSearch_Click&amp;quot; /&amp;gt;
&amp;lt;br /&amp;gt;
    &amp;lt;asp:ValidationSummary ID=&amp;quot;ValidationSummary1&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
    &amp;lt;br /&amp;gt;

	&amp;lt;br /&amp;gt;
	&amp;lt;asp:DataList ID=&amp;quot;DataList1&amp;quot; runat=&amp;quot;server&amp;quot; BorderColor=&amp;quot;#5D5A59&amp;quot; 
        BorderWidth=&amp;quot;2px&amp;quot; GridLines=&amp;quot;Both&amp;quot;&amp;gt;
        &amp;lt;ItemTemplate&amp;gt;
        &amp;lt;asp:HyperLink ID=&amp;quot;HyperLink2&amp;quot; runat=&amp;quot;server&amp;quot; NavigateUrl=&amp;#39;&amp;lt;%# &amp;quot;http://www.abqpromo.com/abqpromo/adview.aspx?adID=&amp;quot; &amp;amp; Eval(&amp;quot;adID&amp;quot;).ToString %&amp;gt;&amp;#39;&amp;gt;
            &amp;lt;table width=&amp;quot;450px&amp;quot; cellspacing=&amp;quot;1&amp;quot; class=&amp;quot;style2&amp;quot;&amp;gt;
                &amp;lt;tr&amp;gt;
                    &amp;lt;td rowspan=&amp;quot;3&amp;quot; width=&amp;quot;20px&amp;quot;&amp;gt;
                    
                        &amp;nbsp;&amp;nbsp;&amp;lt;/td&amp;gt;
                    &amp;lt;td rowspan=&amp;quot;4&amp;quot; width=&amp;quot;100px&amp;quot; valign=&amp;quot;middle&amp;quot;&amp;gt;
                        &amp;lt;asp:Image ID=&amp;quot;logoImage&amp;quot; runat=&amp;quot;server&amp;quot; 
                            ImageUrl=&amp;#39;&amp;lt;%# Bind(&amp;quot;logoURL&amp;quot;, &amp;quot;/ABQpromo/images/Logos/{0}&amp;quot;) %&amp;gt;&amp;#39; Width=&amp;quot;80&amp;quot; /&amp;gt;
                    &amp;lt;/td&amp;gt;
                    &amp;lt;td width=&amp;quot;160px&amp;quot;&amp;gt;
                        
                        &amp;lt;asp:Label ID=&amp;quot;Label1&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;#39;&amp;lt;%# Eval(&amp;quot;bizName&amp;quot;) %&amp;gt;&amp;#39; 
                            style=&amp;quot;font-weight: 700; color: #000066; font-size: medium; text-decoration:underline;&amp;quot; /&amp;gt;
                    &amp;lt;/td&amp;gt;
                    &amp;lt;td width=&amp;quot;20px&amp;quot;&amp;gt;
                        &amp;nbsp;&amp;nbsp;&amp;lt;/td&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;nbsp;&amp;lt;/td&amp;gt;
                    &amp;lt;td width=&amp;quot;10px&amp;quot;&amp;gt;
                        &amp;nbsp;&amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;lt;asp:Label ID=&amp;quot;Label2&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;#39;&amp;lt;%# Eval(&amp;quot;bizPhone&amp;quot;) %&amp;gt;&amp;#39; 
                            style=&amp;quot;font-size: medium;&amp;quot; /&amp;gt;
                    &amp;lt;/td&amp;gt;
                    &amp;lt;td rowspan=&amp;quot;2&amp;quot;&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;&amp;lt;td rowspan=&amp;quot;2&amp;quot;&amp;gt;
                        &amp;lt;asp:Label ID=&amp;quot;Label4&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;#39;&amp;lt;%# Eval(&amp;quot;bizCat1&amp;quot;) %&amp;gt;&amp;#39; 
                            style=&amp;quot;font-size: small; color: #808080;&amp;quot; /&amp;gt;
                        &amp;lt;br /&amp;gt;
                        &amp;lt;asp:Label ID=&amp;quot;Label5&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;#39;&amp;lt;%# Eval(&amp;quot;bizCat2&amp;quot;) %&amp;gt;&amp;#39; 
                            style=&amp;quot;font-size: small; color: #808080;&amp;quot; /&amp;gt;
                        &amp;lt;br /&amp;gt;
                        &amp;lt;asp:Label ID=&amp;quot;Label6&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;#39;&amp;lt;%# Eval(&amp;quot;bizCat3&amp;quot;) %&amp;gt;&amp;#39; 
                            style=&amp;quot;font-size: small; color: #808080;&amp;quot; /&amp;gt;
                        &amp;lt;br /&amp;gt;
                    &amp;lt;/td&amp;gt;
                    &amp;lt;td rowspan=&amp;quot;2&amp;quot;&amp;gt;
                        &amp;nbsp;&amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;lt;asp:Label ID=&amp;quot;Label3&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;#39;&amp;lt;%# Eval(&amp;quot;bizSite&amp;quot;) %&amp;gt;&amp;#39; 
                            style=&amp;quot;font-style: italic; color: #006600&amp;quot; /&amp;gt;
                    &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;/table&amp;gt;
                       &amp;lt;/asp:HyperLink&amp;gt;
                        &amp;lt;/ItemTemplate&amp;gt;&amp;lt;/asp:DataList&amp;gt;&amp;lt;br /&amp;gt;
&amp;lt;/asp:Content&amp;gt;&lt;/pre&gt;&lt;br /&gt; Thanks!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Searching through xml</title><link>http://forums.asp.net/thread/3432680.aspx</link><pubDate>Wed, 30 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3432680</guid><dc:creator>yuszz_ayie</dc:creator><description>&lt;p&gt;hello,&lt;/p&gt;&lt;p&gt;I&amp;#39;m quite new to asp.net and xml.&lt;/p&gt;&lt;p&gt;I have a problem here which is i need to search through the xml depending on the criteria given in a dropdownlist.&lt;/p&gt;&lt;p&gt;could anyone help me.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;thanks anyway.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>on ('text') open div id=&amp;quot;('text')&amp;quot;</title><link>http://forums.asp.net/thread/3408631.aspx</link><pubDate>Wed, 16 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3408631</guid><dc:creator>sallads</dc:creator><description>&lt;p&gt;I&amp;#39;m doing, what you would call, a search box.&lt;/p&gt;&lt;p&gt;This is what I&amp;#39;m trying to do.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;(This is the normal way to do it, make a link, then the div id matching will be opened.)&amp;lt;td width=&amp;quot;43&amp;quot;&amp;gt;&amp;lt;DIV onclick=&amp;quot;show(&amp;#39;1&amp;#39;)&amp;quot;&amp;gt;TEXT&amp;lt;/DIV&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;(But I want a text box, so people can write, ex: lost and then the div id lost will be opened.)&lt;/p&gt;&lt;p&gt;&amp;lt;form&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;div&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=&amp;quot;text&amp;quot; size=&amp;quot;31&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input onclick=&amp;quot;show(&amp;#39;-the text that has been written in the text box-&amp;#39;)&amp;quot; src=&amp;quot; &amp;quot; type=&amp;quot;image&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;DIV id=1 style=&amp;quot;DISPLAY: none;&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div style=&amp;quot;width:100%; height: 100%; background-color:#000; filter:alpha(Opacity=80); -moz-opacity:.8; opacity:.8; display: block; position: absolute; top: 0px; left: 0px;&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div style=&amp;#39;width: 40%; height: 20%; position: absolute; top: 25%; left: 30%; background-color: #fff; border: 0px solid; text-align: center; padding: 10px; color:#FFF; font:Century Gothic, Geneva, sans-serif; &amp;#39;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;north&amp;gt;TEXT&amp;lt;/north&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;a href=&amp;#39;#&amp;#39;&amp;gt;Back&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/DIV&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;/tr&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;thank you for all the help!! &lt;img src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif" alt="Smile" title="Smile" border="0" /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to Perform Facet Search in Lucene.net</title><link>http://forums.asp.net/thread/3399830.aspx</link><pubDate>Fri, 11 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3399830</guid><dc:creator>milan.s</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have searched but cannot find any examples of Lucene.net Faceted search, Solr has it (based on lucene), but is there any other way of getting Faceted search, like any other free&amp;nbsp;library.&lt;/p&gt;</description></item><item><title>How can I make a search in MVC</title><link>http://forums.asp.net/thread/3397865.aspx</link><pubDate>Thu, 10 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3397865</guid><dc:creator>joaoluizbt</dc:creator><description>&lt;p&gt;Hi friends,&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have an enterprise form, and I want to implement a search tool in that view with a list of all enterprises founded. It could be done by the enterprise&amp;#39;s code or name.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I tried to add a textbox and an actionlink, but is going wrong. The idea is the user fill the textbox with a code and, clicking in the search actionlink, appear a screen with the list of enterprises that have that code or name.&lt;br /&gt;&lt;br /&gt;I put my code down here:&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Model:&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;        public IQueryable&amp;lt;Empresa&amp;gt; BuscarEmpresas(int codigo)
        {
            return from empresa in db.Empresas
                   where empresa.cod_empresa == codigo
                   orderby empresa.nome
                   select empresa;
        }
&lt;/pre&gt;
&lt;p&gt;Controller:&lt;br /&gt;&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;        //
        // GET: /Empresa/Buscar
        [Authorize]
        public ActionResult Buscar(int? page, int codigo)
        {
            const int pageSize = 10;
            var Empresas = EmpresaRepositorio.BuscarEmpresas(codigo);
            var PaginatedEmpresas = new PaginatedList&amp;lt;Empresa&amp;gt;(Empresas,
                                                         page ?? 0,
                                                         pageSize);
            return View(PaginatedEmpresas);
        }
&lt;/pre&gt;
&lt;p&gt;View:&lt;br /&gt;&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;    &amp;lt;p&amp;gt;
        &amp;lt;label for=&amp;quot;buscar&amp;quot;&amp;gt;Buscar pelo cógigo:&amp;lt;/label&amp;gt;
        &amp;lt;%= Html.TextBox(&amp;quot;Buscar&amp;quot;)%&amp;gt;
        &amp;lt;%= Html.ActionLink(&amp;quot;Buscar&amp;quot;, &amp;quot;Buscar&amp;quot;) %&amp;gt;        
    &amp;lt;/p&amp;gt;
    &amp;lt;ul&amp;gt;
        &amp;lt;% foreach (var empresa in Model) { %&amp;gt;
            &amp;lt;li&amp;gt;
                -
                &amp;lt;%= Html.ActionLink(empresa.nome, &amp;quot;Detalhe&amp;quot;, new { id=empresa.cod_empresa }) %&amp;gt;
            &amp;lt;/li&amp;gt;
        &amp;lt;% } %&amp;gt;
    &amp;lt;/ul&amp;gt;
    &amp;lt;a href=&amp;#39;&amp;lt;%=Url.Action(&amp;quot;Adicionar&amp;quot;,&amp;quot;Empresa&amp;quot;) %&amp;gt;&amp;#39;&amp;gt;
            &amp;lt;img src=&amp;quot;../../Content/img/adicionar.jpg&amp;quot; alt=&amp;quot;Adicionar&amp;quot; class=&amp;quot;image&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;
&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;Once more, thanks.&lt;/p&gt;
&lt;p&gt;João Luiz&lt;/p&gt;</description></item><item><title>Multiple Keyword Search in SQL Server</title><link>http://forums.asp.net/thread/3329813.aspx</link><pubDate>Tue, 04 Aug 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3329813</guid><dc:creator>covertblack</dc:creator><description>&lt;p&gt;I am using ASP.net 2.0 on Visual Studio 2005 and trying to search a SQL Server 2000 database table based on user input of &lt;b&gt;Multiple Keywords&lt;/b&gt; into a texbox. &amp;nbsp;I am having trouble generating the correct syntax.&lt;/p&gt;&lt;p&gt;&lt;b&gt;For Example:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;If user inputs something like &lt;b&gt;&amp;quot;English Songs&amp;quot;&lt;/b&gt; then it should be split into 2 saperate keywords of &lt;b&gt;&amp;quot;English&amp;quot;&lt;/b&gt; and &lt;b&gt;&amp;quot;Songs&amp;quot;&lt;/b&gt; and then those records should be fetched which contain these 2 keywords, irrelevant of their occuring in the string, &lt;/p&gt;&lt;p&gt;It should fetch the following Records if user Inputs &lt;b&gt;&amp;quot;English Songs&amp;quot; &lt;/b&gt;in the textbox: &lt;/p&gt;&lt;ol&gt;&lt;li&gt;&amp;quot;Free &lt;b&gt;English Songs&lt;/b&gt;&amp;quot;&lt;/li&gt;&lt;li&gt;&amp;quot;&lt;b&gt;Songs&lt;/b&gt; in &lt;b&gt;English&lt;/b&gt;&amp;quot;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;I have been searching for a sweet and simple solution for 2 3 days but I am still not able find it :-(&lt;/p&gt;&lt;p&gt;Please help...&lt;/p&gt;&lt;p&gt;Thanks in Advance.&lt;span class="Apple-tab-span" style="white-space:pre;"&gt;	&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Url to search Access 97, VB.</title><link>http://forums.asp.net/thread/3318807.aspx</link><pubDate>Wed, 29 Jul 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3318807</guid><dc:creator>Mike.Brown</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi&lt;/p&gt;
&lt;p&gt;I have a page which you can add records to the database and works fine.&lt;/p&gt;
&lt;p&gt;However, what I am trying to do now is create an edit record page by clicking on the record number.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For example&lt;/p&gt;
&lt;p&gt;Page 1 displays&lt;/p&gt;
&lt;p&gt;
&lt;table class="mceItemTable" align="center"&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;div align="center"&gt;ID&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;Cheque No&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;Date&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;Payee&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;Description&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;ClaimID &amp;amp; P.O.&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;&lt;span&gt;Amount&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;Action&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;Notes&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div align="center"&gt;&lt;a href="http://forums.asp.net/bcrupdate.asp?id=12"&gt;
&lt;div align="center"&gt;12&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;4567890 
&lt;div&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;22/04/09&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;ray&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;paid&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;4567&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;&lt;span&gt;£400,000,000.00&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;on hold&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div align="center"&gt;waiting on work completion&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;So when they click on ID 12 the url changes to post the link to the next page ( &lt;a href="http://myurlco.uk/raytest1.asp?id=12"&gt;http://myurlco.uk/raytest1.asp?id=12&lt;/a&gt;&amp;nbsp;)&lt;br /&gt;I have now got the next page to display&amp;nbsp;the variable&amp;nbsp;12, but the variable does not give me the record result 12, it just gives me all of them and I cant work out the correct variable to search the database.&lt;/p&gt;
&lt;p&gt;Example of page 2 (Editing Page)&lt;/p&gt;
&lt;p&gt;12 &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table&gt;

&lt;tr&gt;
&lt;td&gt;ID&lt;/td&gt;
&lt;td&gt;ChqNo&lt;/td&gt;
&lt;td&gt;Date&lt;/td&gt;
&lt;td&gt;Payee&lt;/td&gt;
&lt;td&gt;Description&lt;/td&gt;
&lt;td&gt;ClaimId_po&lt;/td&gt;
&lt;td&gt;Amount&lt;/td&gt;
&lt;td&gt;Action&lt;/td&gt;
&lt;td&gt;Notes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;45678`&lt;/td&gt;
&lt;td&gt;22/02/09&lt;/td&gt;
&lt;td&gt;e3w&lt;/td&gt;
&lt;td&gt;e2w&lt;/td&gt;
&lt;td&gt;ty67u8&lt;/td&gt;
&lt;td&gt;3888&lt;/td&gt;
&lt;td&gt;basildon&lt;/td&gt;
&lt;td&gt;basildon&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;56789876&lt;/td&gt;
&lt;td&gt;22/04/09&lt;/td&gt;
&lt;td&gt;dws&lt;/td&gt;
&lt;td&gt;dws&lt;/td&gt;
&lt;td&gt;test1&lt;/td&gt;
&lt;td&gt;4000000&lt;/td&gt;
&lt;td&gt;paid&lt;/td&gt;
&lt;td&gt;paid&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;4567890&lt;/td&gt;
&lt;td&gt;22/04/09&lt;/td&gt;
&lt;td&gt;ray&lt;/td&gt;
&lt;td&gt;paid&lt;/td&gt;
&lt;td&gt;4567&lt;/td&gt;
&lt;td&gt;400000000&lt;/td&gt;
&lt;td&gt;on hold&lt;/td&gt;
&lt;td&gt;waiting on work completion&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the code for the page 2 (Editing page), please could anyone help me.....Thanks in advance.&lt;/p&gt;
&lt;p&gt;---------------------CODE-------------------------&lt;/p&gt;
&lt;p&gt;&amp;lt;&lt;a href="mailto:%@LANGUAGE=&amp;quot;VBSCRIPT"&gt;%@LANGUAGE=&amp;quot;VBSCRIPT&lt;/a&gt;&amp;quot; CODEPAGE=&amp;quot;65001&amp;quot;%&amp;gt;&lt;br /&gt;&amp;lt;!--#include file=&amp;quot;Connections/RayTest.asp&amp;quot; --&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;%&lt;br /&gt;Dim Recordset1&lt;br /&gt;Dim Recordset1_cmd&lt;br /&gt;Dim Recordset1_numRows&lt;/p&gt;
&lt;p&gt;Set Recordset1_cmd = Server.CreateObject (&amp;quot;ADODB.Command&amp;quot;)&lt;br /&gt;Recordset1_cmd.ActiveConnection = MM_RayTest_STRING&lt;br /&gt;Recordset1_cmd.CommandText = &amp;quot;SELECT * FROM Basildon&amp;quot; &lt;br /&gt;Recordset1_cmd.Prepared = true&lt;/p&gt;
&lt;p&gt;Set Recordset1 = Recordset1_cmd.Execute&lt;br /&gt;Recordset1_numRows = 0&lt;br /&gt;%&amp;gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;Dim Repeat1__numRows&lt;br /&gt;Dim Repeat1__index&lt;/p&gt;
&lt;p&gt;Repeat1__numRows = 10&lt;br /&gt;Repeat1__index = 0&lt;br /&gt;Recordset1_numRows = Recordset1_numRows + Repeat1__numRows&lt;br /&gt;%&amp;gt;&lt;br /&gt;&amp;lt;% Dim variable&lt;br /&gt;variable=Request.QueryString(&amp;quot;id&amp;quot;)&lt;br /&gt;%&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;&lt;a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/a&gt;&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;html xmlns=&amp;quot;&lt;a href="http://www.w3.org/1999/xhtml"&gt;http://www.w3.org/1999/xhtml&lt;/a&gt;&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;Untitled Document&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;% Response.Write variable %&amp;gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;ID&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;ChqNo&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Date&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Payee&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Description&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;ClaimId_po&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Amount&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Action&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Notes&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;% While ((Repeat1__numRows &amp;lt;&amp;gt; 0) AND (NOT Recordset1.EOF)) %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;%=(Recordset1.Fields.Item(&amp;quot;ID&amp;quot;).Value)%&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;%=(Recordset1.Fields.Item(&amp;quot;ChqNo&amp;quot;).Value)%&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;%=(Recordset1.Fields.Item(&amp;quot;Date&amp;quot;).Value)%&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;%=(Recordset1.Fields.Item(&amp;quot;Payee&amp;quot;).Value)%&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;%=(Recordset1.Fields.Item(&amp;quot;Description&amp;quot;).Value)%&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;%=(Recordset1.Fields.Item(&amp;quot;ClaimId_po&amp;quot;).Value)%&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;%=(Recordset1.Fields.Item(&amp;quot;Amount&amp;quot;).Value)%&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;%=(Recordset1.Fields.Item(&amp;quot;Action&amp;quot;).Value)%&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;%=(Recordset1.Fields.Item(&amp;quot;Notes&amp;quot;).Value)%&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;% &lt;br /&gt;&amp;nbsp; Repeat1__index=Repeat1__index+1&lt;br /&gt;&amp;nbsp; Repeat1__numRows=Repeat1__numRows-1&lt;br /&gt;&amp;nbsp; Recordset1.MoveNext()&lt;br /&gt;Wend&lt;br /&gt;%&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;Recordset1.Close()&lt;br /&gt;Set Recordset1 = Nothing&lt;br /&gt;%&amp;gt;&lt;/p&gt;
&lt;p&gt;-----------CODE---------------&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>