Click here to Skip to main content
15,906,766 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Keeping track of online users . Pin
Paul Conrad28-Oct-07 17:00
professionalPaul Conrad28-Oct-07 17:00 
GeneralRe: Keeping track of online users . Pin
devboycpp29-Oct-07 4:47
devboycpp29-Oct-07 4:47 
GeneralRe: Keeping track of online users . Pin
Paul Conrad29-Oct-07 13:00
professionalPaul Conrad29-Oct-07 13:00 
QuestionBubble Tooltip for a Label(asp.net) [modified] Pin
PeriyasamyRamachandran27-Oct-07 4:21
PeriyasamyRamachandran27-Oct-07 4:21 
QuestionBitmap on page Pin
sabrown10027-Oct-07 2:30
sabrown10027-Oct-07 2:30 
AnswerRe: Bitmap on page Pin
Guffa27-Oct-07 6:37
Guffa27-Oct-07 6:37 
QuestionPrevent Cross-Site Scripting Pin
dataminers27-Oct-07 2:24
dataminers27-Oct-07 2:24 
AnswerRe: Prevent Cross-Site Scripting Pin
Dominic Pettifer27-Oct-07 11:49
Dominic Pettifer27-Oct-07 11:49 
Yes.

But you ought to process HTML on the way out as it's getting displayed on screen rather than store it in the database in HTML encoded format. This ensures the database stores the data in a platform neutral format, also because some ASP.NET controls perform their own HTML encoding (such as the ToolTip property, or Text property for TextBox controls), and you'll end up encoding the encoding and the user will see &lt; on the screen instead of <

Use Server.HtmlEncode(outputString), but don't do this for control properties that already do their own encoding for above reason.



Dominic Pettifer

Blog: www.dominicpettifer.co.uk

Questionproblem related to RadioButtonList Pin
RajeevKumarSharma27-Oct-07 1:49
RajeevKumarSharma27-Oct-07 1:49 
AnswerRe: problem related to RadioButtonList Pin
Imran Khan Pathan27-Oct-07 1:56
Imran Khan Pathan27-Oct-07 1:56 
GeneralRe: problem related to RadioButtonList Pin
RajeevKumarSharma27-Oct-07 2:13
RajeevKumarSharma27-Oct-07 2:13 
QuestionRe: problem related to RadioButtonList Pin
Karthic M27-Oct-07 2:36
Karthic M27-Oct-07 2:36 
AnswerRe: problem related to RadioButtonList Pin
Imran Khan Pathan27-Oct-07 2:43
Imran Khan Pathan27-Oct-07 2:43 
GeneralRe: problem related to RadioButtonList Pin
Karthic M27-Oct-07 2:49
Karthic M27-Oct-07 2:49 
QuestionRe: problem related to RadioButtonList Pin
Karthic M27-Oct-07 2:51
Karthic M27-Oct-07 2:51 
QuestionEmbed Object Pin
Kurian_Kurian27-Oct-07 1:42
Kurian_Kurian27-Oct-07 1:42 
QuestionAbout Video Clippings Pin
Pandiarajan R T27-Oct-07 1:33
Pandiarajan R T27-Oct-07 1:33 
AnswerRe: About Video Clippings Pin
Karthic M27-Oct-07 1:43
Karthic M27-Oct-07 1:43 
QuestionHow to upload image Pin
Padma N27-Oct-07 1:33
Padma N27-Oct-07 1:33 
AnswerRe: How to upload image Pin
Abhijit Jana27-Oct-07 1:38
professionalAbhijit Jana27-Oct-07 1:38 
Questionbutton in the content place holder Pin
Sonia Gupta27-Oct-07 1:06
Sonia Gupta27-Oct-07 1:06 
AnswerRe: button in the content place holder [modified] Pin
Imran Khan Pathan27-Oct-07 1:12
Imran Khan Pathan27-Oct-07 1:12 
GeneralRe: button in the content place holder Pin
Sonia Gupta27-Oct-07 1:26
Sonia Gupta27-Oct-07 1:26 
AnswerRe: button in the content place holder Pin
Abhijit Jana27-Oct-07 1:13
professionalAbhijit Jana27-Oct-07 1:13 
GeneralRe: button in the content place holder Pin
Sonia Gupta27-Oct-07 1:23
Sonia Gupta27-Oct-07 1:23 

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.