Tagged Questions
2
votes
1answer
40 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:
var dynDiv = new System.Web.UI.HtmlControls.HtmlGenericControl("Div") {ID = "dynDiv"};
...
1
vote
0answers
50 views
Optimize HTML Document Function
bool sucess = false;
var htmlDocument = new HtmlDocument();
while (!sucess)
{
try
{
var httpWebRequest = (HttpWebRequest) WebRequest.Create(aUrl);
...
1
vote
0answers
430 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 is the one that will generate the ...
6
votes
2answers
220 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
189 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
852 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 ...