Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8473025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:14:08+00:00 2026-06-10T17:14:08+00:00

given an aspx file, I want to parse its controls. I saw other posts

  • 0

given an aspx file, I want to parse its controls. I saw other posts on the same topics, but it doesn’t really fit my needs.

Example:

<Ctl:Label id="MyLabel" runat="server" Font-Bold="True">Text of My label</Ctl:Label>

I want to retrieve these informations (the form does not matter, provided that the information are separated):

Tag = "Ctl"
Type = "Label"
id = "MyLabel"
runat = "server"
Font-Bold = "True"
Content = "Text of My label"

This post is close to what I want, but it does not allow me to retrieve “Text of My label” for example.

Note: I don’t need to put this information in a xml file, but why not.

Any idea? Thanks.

EDIT: I need to parse a lot of aspx pages with a desktop program written in C#, not with asp.net.

EDIT 2: Why? Because I have a lot of asp.net pages, that contain server controls that I maintain. I need to retrieve information about in which pages I can find these controls, and most information about them (name, id, what inner controls they eventually have, etc., to say only that), but just focus on the main question, then I will handle the rest.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:14:09+00:00Added an answer on June 10, 2026 at 5:14 pm

    You may be able to parse the files using the HTML Agility Pack, and then locate the controls by element name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got an .aspx file in which I want to have a file uploader
since we give connection in aspx.cs file we want to give connection in web
i want to find the mime-type for a given file extension on an IIS
Given remote page: http://example.com/paged_list.aspx which uses a Javascript function call to display several pages
Given that the web application doesn't have su privileges, I'd like to execute a
Given a certain date, I want to set the value of a cell with
I don't want to rely on the file extension. I don't care to know
I have been referring to the following page: http://msdn.microsoft.com/en-us/library/ms178129.aspx I simply want to bulk
I'm finding it really difficult to properly link a .lib file to my C++
There are similar posts here. I just want to clarify something. I implemented this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.