i am newbie in C#. i would like to make a button to function as search button to search by name and search by date. When i key in data inside textbox1 for search by name ,then press search ,can get the data from database. Same case to textbox2 for search by date, then press search. Besides, i can use both textbox to search my database at the same time. Example ,i key in name n date together to find a book that i bought ,then press search button. Please help me. i am no idea how to start.
dummy C#
-1
Newbie Poster
Recommended Answers
Jump to Postthe examples above are vulnerable to sql injection. user can enter ' into textbox and can drop the database.
Jump to Posti posted an example as how to create parameters in secure way. this way it will be protected against injection.
WOW you are so centered in your self that you quote me and tell me sonthing else, I KNOW HOW TO DO IT IN A SECURE WAY, BUT ITS NOT …
Jump to PostBecuase when you teach a baby to talk you are not teaching him how to say "encyclopedia" from the begining you teaching him how to say "dad", "mom" and so on, when he learned that so you going and teach him how to say "cow", "cat" and after you teach …
Jump to PostHi dummy C#,
Of course when you enter in both of the text boxs values and press this button it will give the result like you have entered only in the first button, because look how you build your if statment...!
first you ask:if (txtTitle.Text …
Jump to Postdummy c#,
Wrap up source code with bb code tags. Read this article - How to use bb code tags?
All 30 Replies
serkan sendur
821
Postaholic
Banned
dummy C#
-1
Newbie Poster
serkan sendur
821
Postaholic
Banned
dummy C#
-1
Newbie Poster
IdanS
12
Junior Poster in Training
dummy C#
-1
Newbie Poster
IdanS
12
Junior Poster in Training
kvprajapati
1,826
Posting Genius
Team Colleague
serkan sendur
821
Postaholic
Banned
kvprajapati
commented:
I agree.
+4
IdanS
12
Junior Poster in Training
dummy C#
-1
Newbie Poster
serkan sendur
commented:
use code tags
-1
serkan sendur
821
Postaholic
Banned
serkan sendur
821
Postaholic
Banned
IdanS
12
Junior Poster in Training
IdanS
12
Junior Poster in Training
serkan sendur
821
Postaholic
Banned
IdanS
12
Junior Poster in Training
ddanbe
commented:
Good point. I can understand your anger, don't let it become a priority. Your English suffers from it.
+6
serkan sendur
821
Postaholic
Banned
IdanS
12
Junior Poster in Training
kvprajapati
commented:
Don't offend. I am not agree with you.
-1
serkan sendur
821
Postaholic
Banned
IdanS
12
Junior Poster in Training
serkan sendur
821
Postaholic
Banned
IdanS
12
Junior Poster in Training
dummy C#
-1
Newbie Poster
IdanS
12
Junior Poster in Training
dummy C#
-1
Newbie Poster
IdanS
12
Junior Poster in Training
kvprajapati
1,826
Posting Genius
Team Colleague
hijohncena
-1
Newbie Poster
kvprajapati
commented:
Go away
-1
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.