Tagged Questions
2
votes
1answer
57 views
Avoid redundancy of HTML entities in .NET framework
I have to store various HTML named character references for the following purposes:
Escaping special characters myStringBuilder.Replace("À", WebHelper.Agrave)
...
1
vote
1answer
138 views
Is this a safe way to parse out HTML tag attributes?
I needed a super simple parser to get HTML attributes and their values. I didn’t want to load a big library or anything so I made this.
I realize I am making assumptions here, mainly:
Attribute ...
4
votes
1answer
94 views
In need of some aid in regards to making my code more efficient
I've created a form that gathers and submits information to SQL database via LINQ, and sends an email if all goes while saving the database and doing a redirect. Recently, it started submitting data ...
2
votes
1answer
346 views
Is there a method to add multiple properties to HtmlTextWriterStyle?
I am creating new elements for a webpage at run-time and I have code like this:
...
1
vote
0answers
1k views
DataTable 'adapter' To Html table generator
this is a project i am working on it generates an html table out of a query result.
(the result DataTable of an sql command via SP)
this section of the project ...
6
votes
2answers
290 views
Is this user input field secure?
I'm pretty new to asp and c# and I have a couple of concerns with the security of the code I have written (shown below). Basically all it does is allow you to enter a quantity before you add the item ...
2
votes
1answer
277 views
Fixing indentations in HTML files
I wrote this code (except the getting text from clipboard part) a while back, and I'm wondering if it could be written better? Can anyone help me improve this code?
This code basically takes HTML ...
1
vote
1answer
1k views
HTML Table of contents parser
I've written a table of contents parser for a FOSS wiki project I maintain in my spare time. The class takes a HTML string, injects anchor takes before each H1,H2 etc. and then generates the contents ...