I completed my project work . , but only one problem is Sql injection. For this project I used asp.net platform with c#.
I need to compare each letters in the textbox value., if thre has any letters like <,>,.,!,<!,create ,etc..then the the error message should display.
For that i wrote
lablel1.visible=true; // lbale1=" Invalid Charrecter"
// regular statements
When Run the program with this code there is an error like "cannot implicitly convert type'int' to 'bool'
can u find any mistake in this code?????
weather the string comparison syntax is wrong???
weather there has any other coding for string comparison in asp.net with c#??
please help me............