Click here to Skip to main content
15,890,995 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP.NET Session State Pin
Socheat.Net28-Jan-09 15:52
Socheat.Net28-Jan-09 15:52 
GeneralRe: ASP.NET Session State Pin
Abhijit Jana28-Jan-09 16:02
professionalAbhijit Jana28-Jan-09 16:02 
QuestionDisplaying entire on contents of multiline textbox Pin
krup7528-Jan-09 13:05
krup7528-Jan-09 13:05 
AnswerRe: Displaying entire on contents of multiline textbox Pin
N a v a n e e t h28-Jan-09 14:42
N a v a n e e t h28-Jan-09 14:42 
GeneralRe: Displaying entire on contents of multiline textbox Pin
krup7528-Jan-09 15:01
krup7528-Jan-09 15:01 
GeneralRe: Displaying entire on contents of multiline textbox Pin
N a v a n e e t h28-Jan-09 15:12
N a v a n e e t h28-Jan-09 15:12 
GeneralRe: Displaying entire on contents of multiline textbox Pin
krup7528-Jan-09 15:55
krup7528-Jan-09 15:55 
Questiondata inserting problem into sql having single quote in it through asp form Pin
sana1728-Jan-09 10:18
sana1728-Jan-09 10:18 
Asalamoalekum All,

i am working with ASP.NET... i have a from with textbox and a button
when user press button the text of textbox is inserted into a sql table

the insert query behind button is:

string insert = "insert into myDB.dbo.Messages (text) values('"+textbox1.text+"')";


IF MY TEXTBOX CONTAINS COMBINATION OF ANY CHARACTERS (except single quote as aspostophe) there is no problem, it works properly but IF MY TEXTBOX contains any single quote.. for Example:
textbox1 text is :- its HER'S matter dont disturb her

here it encounters an exception that unclosed single quotation...

how i could avoid this... because single quote is very common, user needs to use thisss!

(if single double quotation mark(") is used there is no problem)

please tell me the solution.

thanks,
regards,
SANA AHMAD

$@N@

AnswerRe: data inserting problem into sql having single quote in it through asp form Pin
ToddHileHoffer28-Jan-09 10:38
ToddHileHoffer28-Jan-09 10:38 
GeneralRe: data inserting problem into sql having single quote in it through asp form Pin
sana1728-Jan-09 22:07
sana1728-Jan-09 22:07 
AnswerRe: data inserting problem into sql having single quote in it through asp form Pin
N a v a n e e t h28-Jan-09 14:44
N a v a n e e t h28-Jan-09 14:44 
GeneralRe: data inserting problem into sql having single quote in it through asp form Pin
sana1728-Jan-09 22:06
sana1728-Jan-09 22:06 
QuestionCircula Button Pin
ziwez028-Jan-09 7:10
ziwez028-Jan-09 7:10 
Questionasp.net ajax accordion recursive method Pin
kuyucakli28-Jan-09 6:30
kuyucakli28-Jan-09 6:30 
Questionmulti thread in web service Pin
raquidd2228-Jan-09 4:49
raquidd2228-Jan-09 4:49 
AnswerRe: multi thread in web service Pin
Colin Angus Mackay28-Jan-09 14:46
Colin Angus Mackay28-Jan-09 14:46 
QuestionHow to allow a user and deny all others Pin
Le centriste28-Jan-09 4:11
Le centriste28-Jan-09 4:11 
AnswerRe: How to allow a user and deny all others Pin
SeMartens28-Jan-09 4:39
SeMartens28-Jan-09 4:39 
GeneralRe: How to allow a user and deny all others Pin
Le centriste28-Jan-09 4:47
Le centriste28-Jan-09 4:47 
AnswerSOLVED Pin
Le centriste28-Jan-09 4:52
Le centriste28-Jan-09 4:52 
QuestionASP.Net Development Server Issues [modified] Pin
Jacquers28-Jan-09 2:26
Jacquers28-Jan-09 2:26 
QuestionBuild Error Pin
ais0728-Jan-09 2:13
ais0728-Jan-09 2:13 
AnswerRe: Build Error Pin
mr_muskurahat28-Jan-09 3:52
mr_muskurahat28-Jan-09 3:52 
Questioncalling remote webservices from sharepoint using javascript Pin
gottimukkala28-Jan-09 0:47
gottimukkala28-Jan-09 0:47 
Questionemail not getting to destination address Pin
tomertro28-Jan-09 0:27
tomertro28-Jan-09 0:27 

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.