Click here to Skip to main content
15,921,531 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: any way to export gridview to pdf? Pin
Vasudevan Deepak Kumar27-Jan-08 17:57
Vasudevan Deepak Kumar27-Jan-08 17:57 
Questionhow to detect session in javascript? Pin
hardyyanto27-Jan-08 2:19
hardyyanto27-Jan-08 2:19 
AnswerRe: how to detect session in javascript? Pin
pmarfleet27-Jan-08 5:40
pmarfleet27-Jan-08 5:40 
JokeRe: how to detect session in javascript? Pin
Vasudevan Deepak Kumar27-Jan-08 18:02
Vasudevan Deepak Kumar27-Jan-08 18:02 
AnswerRe: how to detect session in javascript? Pin
kuwl_mark27-Jan-08 22:17
kuwl_mark27-Jan-08 22:17 
QuestionHow can i iterate through and modify the data in databround rows of a 3.5 ListView similar to a Gridview Pin
vortex6930693027-Jan-08 0:28
vortex6930693027-Jan-08 0:28 
AnswerRe: How can i iterate through and modify the data in databround rows of a 3.5 ListView similar to a Gridview Pin
pmarfleet27-Jan-08 2:13
pmarfleet27-Jan-08 2:13 
GeneralRe: How can i iterate through and modify the data in databround rows of a 3.5 ListView similar to a Gridview Pin
vortex6930693027-Jan-08 7:44
vortex6930693027-Jan-08 7:44 
How can it be bad practice, my function disallows any sql injection attacks by pure nature by removing "'"'s. Observe:

<system.componentmodel.dataobjectmethodattribute _<br="" mode="hold"> (System.ComponentModel.DataObjectMethodType.Insert, True)> _
Public Function SQLencode(ByVal txt As String, Optional ByVal brEncode As Boolean = False) As String
If txt <> "" Then
Dim mySQL As String
mySQL = Replace(txt, "'", "")
If brEncode = True Then
mySQL = Replace(mySQL, vbCrLf, "
")
End If

SQLencode = mySQL
Else
SQLencode = ""
End If

End Function 'SQLencode

<system.componentmodel.dataobjectmethodattribute _<br="" mode="hold"> (System.ComponentModel.DataObjectMethodType.Insert, True)> _
Public Function SQLdecode(ByVal txt As String, Optional ByVal brToVbCrlf As Boolean = False) As String
If txt <> "" Then
Dim mySQL As String
mySQL = Replace(txt, "", "'")
If brToVbCrlf = True Then
mySQL = Replace(mySQL, "
", vbCrLf)
End If

SQLdecode = mySQL
Else
SQLdecode = ""
End If

End Function 'SQLdecode

Now do you think it's bad practice?


GeneralRe: How can i iterate through and modify the data in databround rows of a 3.5 ListView similar to a Gridview Pin
pmarfleet27-Jan-08 8:47
pmarfleet27-Jan-08 8:47 
GeneralDoubt about wesite accessing Pin
sjs4u26-Jan-08 23:10
sjs4u26-Jan-08 23:10 
GeneralRe: Doubt about wesite accessing Pin
pmarfleet27-Jan-08 2:09
pmarfleet27-Jan-08 2:09 
GeneralRe: Doubt about wesite accessing Pin
sjs4u27-Jan-08 4:38
sjs4u27-Jan-08 4:38 
GeneralRe: Doubt about wesite accessing Pin
pmarfleet27-Jan-08 5:38
pmarfleet27-Jan-08 5:38 
GeneralRe: Doubt about wesite accessing Pin
Vasudevan Deepak Kumar27-Jan-08 18:01
Vasudevan Deepak Kumar27-Jan-08 18:01 
GeneralRe: Doubt about wesite accessing Pin
Tad McClellan27-Jan-08 8:24
professionalTad McClellan27-Jan-08 8:24 
QuestionProblem adding additional nested gridviews to a form Pin
bamagrad26-Jan-08 4:27
bamagrad26-Jan-08 4:27 
Generalshowing some of whole data in a drop down list Pin
Member 471741225-Jan-08 21:54
Member 471741225-Jan-08 21:54 
GeneralRe: showing some of whole data in a drop down list Pin
pmarfleet25-Jan-08 22:05
pmarfleet25-Jan-08 22:05 
GeneralAutomatic alert to other users Pin
Vipin.d25-Jan-08 21:52
Vipin.d25-Jan-08 21:52 
GeneralRe: Automatic alert to other users Pin
Abhijit Jana25-Jan-08 23:31
professionalAbhijit Jana25-Jan-08 23:31 
GeneralRe: Automatic alert to other users Pin
Guffa26-Jan-08 10:17
Guffa26-Jan-08 10:17 
GeneralRe: Automatic alert to other users Pin
Guffa26-Jan-08 10:11
Guffa26-Jan-08 10:11 
Generalebook link Pin
Sonia Gupta25-Jan-08 21:36
Sonia Gupta25-Jan-08 21:36 
GeneralRe: ebook link Pin
Abhijit Jana25-Jan-08 22:59
professionalAbhijit Jana25-Jan-08 22:59 
GeneralRe: ebook link Pin
Paul Conrad26-Jan-08 6:30
professionalPaul Conrad26-Jan-08 6:30 

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.