Click here to Skip to main content
15,894,460 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Regarding "forgot password" query Pin
Amit Spadez12-Nov-09 0:00
professionalAmit Spadez12-Nov-09 0:00 
GeneralRe: Regarding "forgot password" query Pin
FEMDEV12-Nov-09 3:53
FEMDEV12-Nov-09 3:53 
QuestionLINQ Pin
Amit Patel198511-Nov-09 23:02
Amit Patel198511-Nov-09 23:02 
AnswerRe: LINQ Pin
Eduard Keilholz11-Nov-09 23:37
Eduard Keilholz11-Nov-09 23:37 
AnswerRe: LINQ Pin
Shameel12-Nov-09 6:48
professionalShameel12-Nov-09 6:48 
QuestionLooking for solution / article for multi parameters search engine Pin
elidotnet11-Nov-09 21:40
elidotnet11-Nov-09 21:40 
AnswerRe: Looking for solution / article for multi parameters search engine Pin
Christian Graus11-Nov-09 22:12
protectorChristian Graus11-Nov-09 22:12 
GeneralRe: Looking for solution / article for multi parameters search engine Pin
elidotnet11-Nov-09 22:34
elidotnet11-Nov-09 22:34 
Yes, i have some books but none of them explain how to build search engine....if you talk about the select parameters, i think i know what to write

ALTER PROCEDURE dbo.advancedSearching
	@indexKindword varchar(250) = NULL,
	@indexKindword2 varchar(250) = NULL,
	@indexKindword3 varchar(250) = NULL
	
AS
BEGIN
	SELECT [companiesIndex].indexCatID, [companiesIndex].compantName, [companiesIndex].companyAddress, [companiesIndex].companyState, [companiesIndex].companyCity, [companiesIndex].companyPhone, [companiesIndex].companyFax, [companiesIndex].companyWebsite, [companiesIndex].keyWords
FROM companiesIndex
WHERE ([companiesIndex].cat LIKE '%' + @indexKindword + '%' OR [companiesIndex].cat IS NULL
AND [companiesIndex].companyState LIKE '%' + @indexKindword2 + '%' OR [companiesIndex].companyState IS NULL
AND [companiesIndex].companyCity LIKE '%' + @indexKindword3 + '%' OR [companiesIndex].companyCity IS NULL)
ORDER BY [compantName] 
END
	RETURN


but i dont know how to handle the results in the aspx.cs page (i know how to handle one parameter search)

protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["searchString"] != null)
        {
            DisplaySearchResults(Request.QueryString["searchString"]);
            Label50.Text = Repeater1.Items.Count.ToString();
        }
    }
    public void DisplaySearchResults(string strSearch)
    {
        SqlConnection newconn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["ASPNETDBConnectionString"].ConnectionString);
        SqlCommand cmd = new SqlCommand("spSearchByString", newconn);
        cmd.CommandType = CommandType.StoredProcedure;
        cmd.Parameters.AddWithValue("@SearchString", strSearch);
        newconn.Open();

        Repeater1.DataSource = cmd.ExecuteReader();
        Repeater1.DataBind();

        newconn.Close();
        newconn.Dispose();
    }


How you translate this page to get 3 parameters?
AnswerRe: Looking for solution / article for multi parameters search engine Pin
Abhishek Sur11-Nov-09 22:22
professionalAbhishek Sur11-Nov-09 22:22 
AnswerRe: Looking for solution / article for multi parameters search engine Pin
Abhishek Sur11-Nov-09 22:29
professionalAbhishek Sur11-Nov-09 22:29 
QuestionCrystal Reports showing blank page after few hours in Asp.net Pin
hammadahsan11-Nov-09 20:55
hammadahsan11-Nov-09 20:55 
AnswerRe: Crystal Reports showing blank page after few hours in Asp.net Pin
sashidhar11-Nov-09 21:46
sashidhar11-Nov-09 21:46 
GeneralRe: Crystal Reports showing blank page after few hours in Asp.net Pin
hammadahsan11-Nov-09 22:04
hammadahsan11-Nov-09 22:04 
AnswerRe: Crystal Reports showing blank page after few hours in Asp.net Pin
Abhishek Sur11-Nov-09 22:07
professionalAbhishek Sur11-Nov-09 22:07 
AnswerRe: Crystal Reports showing blank page after few hours in Asp.net Pin
Shameel12-Nov-09 6:53
professionalShameel12-Nov-09 6:53 
QuestionStrange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 20:41
professionalVimalsoft(Pty) Ltd11-Nov-09 20:41 
AnswerRe: Strange Issues on ASP.NET App Pin
Christian Graus11-Nov-09 21:02
protectorChristian Graus11-Nov-09 21:02 
GeneralRe: Strange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 21:08
professionalVimalsoft(Pty) Ltd11-Nov-09 21:08 
GeneralRe: Strange Issues on ASP.NET App Pin
Christian Graus11-Nov-09 21:11
protectorChristian Graus11-Nov-09 21:11 
GeneralRe: Strange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 22:35
professionalVimalsoft(Pty) Ltd11-Nov-09 22:35 
GeneralRe: Strange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 23:40
professionalVimalsoft(Pty) Ltd11-Nov-09 23:40 
AnswerRe: Strange Issues on ASP.NET App Pin
Abhishek Sur11-Nov-09 22:39
professionalAbhishek Sur11-Nov-09 22:39 
GeneralRe: Strange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 22:50
professionalVimalsoft(Pty) Ltd11-Nov-09 22:50 
GeneralRe: Strange Issues on ASP.NET App Pin
Vimalsoft(Pty) Ltd11-Nov-09 23:41
professionalVimalsoft(Pty) Ltd11-Nov-09 23:41 
GeneralRe: Strange Issues on ASP.NET App Pin
Abhishek Sur11-Nov-09 23:51
professionalAbhishek Sur11-Nov-09 23:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.