1
Answer

multiple search

sohrab khan

sohrab khan

8y
250
1
Dear all,
i have 2 texboxes by the name of province and district for searching.when i write it province it filter girdview i want to further filter with district ,the district filter independent it does not see the province textbox .   my application must filter both critiria .
 
thanks in advance. 

Attachment: multiple.rar

Answers (1)
0
Nitin Sontakke

Nitin Sontakke

NA 11.7k 2.2k 8y

Just mentioning "but notworking" unfortunatelydoesn't explain much about what is happening.

Please give more info, what you are getting, if you are getting error, please give details.

Anythingthat would help us help you better.
0
Joginder Banger

Joginder Banger

NA 10k 490.7k 8y
Hi Simon,
if you want get time difference only that why pass parameters. You can easily with like.
string timespent1 = "SELECT DATEDIFF(minute ,departureTime,entryTime) AS timespent FROM mambo where plateno = '" + TextBox1.Text + "'";
SqlCommand comman = new SqlCommand(timespent1, conn);
conn.open();
string ReturnValue = comman.ExecuteScalar();
check your data in ReturnValue.