0

I need to programmatically parse and transform ASP.NET webform pages. It's a requirement that I have =(.

Anyone know any tools or frameworks?

Update:

I just need to modify ASPX pages (not rendered HTML code).

There are no inline c# code.

4
  • I need more details than that. Commented Aug 3, 2010 at 19:52
  • The ASPX page? or the HTML page that's generated? And transform them into what? Commented Aug 3, 2010 at 19:52
  • Not an answer, but a thought that may apply if your circumstances are just right: I use UserControls a lot because they provide designer support, are parsed by the .NET runtime, and can be created manually with LoadControl(). Commented Aug 3, 2010 at 19:54
  • Do you need to do something like "find & replace" on all web forms before transforming it to HTML? Commented Aug 3, 2010 at 20:14

1 Answer 1

1

If you are parsing the resulting pages of an ASP.Net webform, meaning just HTML, then I'd go for Html Agility Pack and using XSLT for the transformation.

If you need to parse the actual .aspx server side code before it's rendered, then please include more information about what you need to do.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.