Click here to Skip to main content
15,867,771 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am writing a cond in c# for searching from databse
CSS
string movie = Request.QueryString["key"];

C#
var  Text =from st in obj.movie_details
                        select st.label

now in Text all the names of movie i want to put them in to array
C#
int y= Text.Count();
            string[] u =new string[y];

now ho can i put ol the database values which is now in Text varible in to array u
after putting all the values in array u i want to compare ol the values with movie varieble
this movie contains the name of movie name which i want to search
now in compare i want to apply naive search algo for dt i can apply search patern and search at least for 2 latters
and ol the two latters which matched i want to show them on web page
Posted
Updated 3-Oct-13 21:08pm
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900