Cross- Side Scripting and SQL data reader

G

Guest

I am using sqlDataReader for Showing data from the Data base
But if the Data from sql is having tags like <script>alert()</script> then it shows an alert box while binding

Is there any way of suppressing it this ..... ???

regard
Vineet Batt
 
G

Guest

No..... this approach can be used if u are retrieving value and binding to the control like label

Here i am having sqlDataReader object................... which connects to Data in sql D/B

E.g

ListDataGrid.DataSource = sqlReaderObject
ListDataGrid.DataBind()

-Vineet Batt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top