7 items found in the HTML Category

Using the HtmlAgilityPack to parse HTML in ASP.NET

Thursday, April 30, 2015 1:26 PM

HTML General HTML5

Hardly a week goes by without someone asking a question in the ASP.NET forums about parsing HTML for one purpose or another. Mostly, the questions are couched in terms of 'finding values' or similar, prompting responses from the community that recommend one regular expression pattern or another, treating HTML as a string of text with no structure or rules. In fact, HTML is a structured document format with a set of very clearly defined rules, which means that it can easily be parsed given the right tool. My favourite tool for parsing HTML is the HtmlAgilityPack.

Click to read more about Using the HtmlAgilityPack to parse HTML in ASP.NET ...

Viewed 2211 times

0 Comments for this item

HTML Helpers For Forms In Razor Web Pages

Sunday, December 25, 2011 11:27 AM

HTML ASP.NET Web Pages WebMatrix Razor

A nugget that has remained partially hidden from view within the Web Pages framework is the HtmlHelper class. Parts of this class peek out in the template sites provided in WebMatrix where validation is performed and related messages displayed, but a vast range of methods designed for rendering form inputs are often overlooked in tutorials, blog articles and books (mine included). This article provides an overview of Web Pages HTML Helpers, and digs into one or two in more detail.

Click to read more about HTML Helpers For Forms In Razor Web Pages ...

Viewed 133030 times

11 Comments for this item

How to make an ASP.NET Table row highlight and become clickable

Sunday, May 6, 2007 8:38 PM

C# ASP.NET 2.0 Javascript HTML

For those people who like to output their data to an asp:Table, highlighting the entire row and making it clickable can make it obvious to the user that some action is expected from them. This emulates the behaviour that can be found in some desktop applications. All that's needed for this is a bit of javascript, and the use of AddAttributes() for the table rows.

Click to read more about How to make an ASP.NET Table row highlight and become clickable ...

Viewed 84715 times

4 Comments for this item

How to center the content of a web page

Saturday, May 5, 2007 8:48 PM

HTML CSS

This question gets asked very often in the forums and newsgroups, and is very easy once you know how.

Click to read more about How to center the content of a web page ...

Viewed 25606 times

4 Comments for this item

How to force a scrollbar for centered web pages

Saturday, May 5, 2007 8:45 PM

HTML CSS

If you have centered web pages, there can be times where the depth of content doesn't reach the bottom of the window browser, so no scroll bar appears. Navigating between long and short pages can give the appearance of the centered content "jumping" from side to side.

Click to read more about How to force a scrollbar for centered web pages ...

Viewed 7318 times

0 Comments for this item

Include contents of an html page in an aspx page

Saturday, May 5, 2007 8:44 PM

ASP.NET 2.0 HTML

If you are creating a new ASP.NET application, but have a huge collection of existing content in html files, one option is to move all the content into a database and generate pages dynamically. However, migration to a database can be a time-consuming task depending on the volume of content. So wouldn't it be easier to somehow import the relevant parts of the existing html pages into your aspx page?

Click to read more about Include contents of an html page in an aspx page ...

Viewed 61447 times

3 Comments for this item

How to retain carriage returns or line breaks in an ASP.NET web page

Friday, April 6, 2007 7:55 PM

C# ASP.NET 2.0 HTML

Many newcomers to web development cannot get their head around why the carriage returns they made in their data on input from a textarea, or from a text file, Excel spreadsheet etc. do not appear when the web page renders.

Click to read more about How to retain carriage returns or line breaks in an ASP.NET web page ...

Viewed 129609 times

24 Comments for this item

Recent Comments

Manoj Kulkarni 7/7/2015 12:53 PM
In response to Reading Excel Files Without Saving To Disk In ASP.NET
Nice article. Thank you...

osiris 7/6/2015 6:18 PM
In response to iTextSharp - Adding Text with Chunks, Phrases and Paragraphs
Great tutorial, thank you guys...

Fred Solbakken 7/6/2015 1:30 PM
In response to The Difference Between @Helpers and @Functions In WebMatrix
Is it possible to call e.g. @Functions.IsBeforeToday("2010/3/22") directly from a jQuery AJAX like...

ben 7/5/2015 11:23 AM
In response to Web Pages - Efficient Paging Without The WebGrid
as usual, your page of resources saves the day yet again... is there a donate button? im happy to u...

Preson Reddy 7/5/2015 2:40 AM
In response to Migrating From Razor Web Pages To ASP.NET MVC 5 - Model Binding And Forms
hi i just saw ur post on the order form its really helping me with my campus project i was just how...

Nacho 7/3/2015 2:32 PM
In response to Handling JSON Arrays returned from ASP.NET Web Services with jQuery
Thank you, works great and very well explained....

Gayan 7/3/2015 6:20 AM
In response to 7 C# 6.0 Features That Every ASP.NET Developer Should Know About
Great Article thanks...

Semil 7/1/2015 7:03 AM
In response to iTextSharp - Drawing shapes and Graphics
I have created a rectangle using above methode. Now I want to add a text in the center of this How I...

Satyabrata Mohapatra 6/30/2015 6:12 PM
In response to Reading Excel Files Without Saving To Disk In ASP.NET
Ahh.....this is awesome. Happy to see after a long time you wrote a article on web form :D...

Marty 6/30/2015 7:16 AM
In response to Posting Data With jQuery AJAX In ASP.NET Razor Web Pages
Mike, you're the Man! Another great article. So incredibly helpful. I'm definitely going to buy your...