Click here to Skip to main content
16,004,836 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiondatagridview-Win Form Pin
venkat_kts29-Nov-09 16:32
venkat_kts29-Nov-09 16:32 
AnswerWrong Forum Pin
dan!sh 29-Nov-09 16:39
professional dan!sh 29-Nov-09 16:39 
AnswerRe: datagridview-Win Form [modified] Pin
sashidhar29-Nov-09 17:12
sashidhar29-Nov-09 17:12 
GeneralRe: datagridview-Win Form Pin
dan!sh 29-Nov-09 17:45
professional dan!sh 29-Nov-09 17:45 
Questionsearch query first letter lookup Pin
Bev Robins29-Nov-09 0:33
Bev Robins29-Nov-09 0:33 
AnswerRe: search query first letter lookup Pin
N a v a n e e t h29-Nov-09 16:31
N a v a n e e t h29-Nov-09 16:31 
GeneralRe: search query first letter lookup Pin
Bev Robins30-Nov-09 2:04
Bev Robins30-Nov-09 2:04 
GeneralRe: search query first letter lookup Pin
David Mujica30-Nov-09 3:40
David Mujica30-Nov-09 3:40 
I don't think you need the double quotes logic. You are already building the string like this, '%mysearchstuff%'. Take out the Replace function call.

The problem you may have is if the user enters single or double quotes in the search criteria, then your dynamic SQL would syntactilly fail. Strip single and double quotes out first before building your SQL or use a parameterized query and you won't have to worry about anything.

Cheers,
David
QuestionAuthorize filter with Roles? Pin
wardy_boy197228-Nov-09 12:08
wardy_boy197228-Nov-09 12:08 
QuestionOutput aspx from ashx Pin
Matt Cavanagh28-Nov-09 11:56
Matt Cavanagh28-Nov-09 11:56 
AnswerRe: Output aspx from ashx Pin
Matt Cavanagh28-Nov-09 21:41
Matt Cavanagh28-Nov-09 21:41 
Questionshow and hide gridview cells controls [modified] Pin
angle5728-Nov-09 0:31
angle5728-Nov-09 0:31 
AnswerRe: show and hide gridview cells controls Pin
Not Active28-Nov-09 4:47
mentorNot Active28-Nov-09 4:47 
AnswerRe: show and hide gridview cells controls Pin
April Fans1-Dec-09 22:40
April Fans1-Dec-09 22:40 
GeneralRe: show and hide gridview cells controls Pin
angle573-Dec-09 1:05
angle573-Dec-09 1:05 
Questiontransfer a key value from a page to a popup page "on selected index change" of a gridview. Pin
saurabh8april28-Nov-09 0:03
saurabh8april28-Nov-09 0:03 
AnswerRe: transfer a key value from a page to a popup page "on selected index change" of a gridview. Pin
Not Active28-Nov-09 4:46
mentorNot Active28-Nov-09 4:46 
AnswerRe: transfer a key value from a page to a popup page "on selected index change" of a gridview. Pin
carlecomm2-Dec-09 22:49
carlecomm2-Dec-09 22:49 
GeneralRe: transfer a key value from a page to a popup page "on selected index change" of a gridview. Pin
saurabh8april7-Dec-09 0:47
saurabh8april7-Dec-09 0:47 
QuestionTrying to implement an old chat application into MVC Pin
wardy_boy197227-Nov-09 23:44
wardy_boy197227-Nov-09 23:44 
AnswerRe: Trying to implement an old chat application into MVC Pin
Not Active28-Nov-09 4:43
mentorNot Active28-Nov-09 4:43 
Questionhow to cretae web page more efficiant Pin
fak.kumar27-Nov-09 19:05
fak.kumar27-Nov-09 19:05 
AnswerRe: how to cretae web page more efficiant Pin
sashidhar27-Nov-09 19:48
sashidhar27-Nov-09 19:48 
Questioncreating an asp.net discussion web site Pin
Thilina.madush27-Nov-09 17:14
Thilina.madush27-Nov-09 17:14 
AnswerRe: creating an asp.net discussion web site Pin
Kannan Ar27-Nov-09 17:25
professionalKannan Ar27-Nov-09 17:25 

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.