asp.net - SELECT WHERE in asp web forms -


I have a lot of problems with ASP web form, currently I try to get data from a database and data It is based on what the user enters into a text box of a form.

I have found so far that at the moment it will select data from the database if I have prepared the last bit about it, but as soon as I try to filter it by saying it That should declare scalar convertible @ 1. I'm killing my head against a brick wall at this time

}

  & lt; form method = "find"> gt; & gt; table & gt; & lt; tr & gt; & lt; Td> Enter employee ID & lt; / Td> & Lt; Td> & Lt; Input class = "id" name = "searchId" type = "text" /> gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> Date from date & lt; / Td> & Lt; Td> & Lt; Input name = "search df" style = "cursor: text" value = "">> gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> Enter date & lt; / Td> & Lt; Td> & Lt; Input name = "search dt" style = "cursor: text" value = "">> gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> & Lt; Input type = "submit" value = "filter" & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; / Table & gt; & Lt; / Form & gt; @If (! Request String ["searchId"]. IsEmpty ()) {& lt; Table class = "data-table" & gt; & Lt; TR & gt; & Lt; Th & gt; Company name & lt; / Th & gt; & Lt; Th & gt; First name & lt; / Th & gt; & Lt; Th & gt; Last name & lt; / Th & gt; & Lt; Th & gt; Details & lt; / Th & gt; & Lt; Th & gt; Lead source code & lt; / Th & gt; & Lt; / TR & gt; @FrenchTech (DB 1. Choose different lines in Syria (CMD)) {& lt; Tr & gt; & Lt; TD & gt; & Lt; Input class = "tdtext" read-only = "read only" type = "text" value = "@ row.CompanyName" & gt; & Lt; / TD & gt; & Lt; Td> & Lt; Input class = "tdtext" readonly = "readonly" type = "text" value = "@ row.FirstName" & gt; & Lt; / Td> & Lt; Td> & Lt; Input class = "tdtext" readonly = "readonly" type = "text" value = "@ row.LastName" & gt; & Lt; / Td> & Lt; TD & gt; & Lt; Text area class = "tdtextbox" read-only = "read-only" & gt; @ Row.Description & lt; / Text field & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; Input read-only = "read-only" class = "tdtext" type = "text" value = "@ row.LeadSourceCode" & gt; & Lt; / TD & gt; & Lt; / TR & gt; } & Lt; / Table & gt; }  

Try changing @ 1 in the selection @ 0

< P> The first object was passed in DB1. The selection of serial (CMD, Search1) is mapped to @ @, not @ @


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -