Hi,
How would one parse aspx pages? Is there an aspx parser available? I
need to access the individual controls in an aspx page and parse them.
thanks,
Arun 5 6357
<ar******@gmail.comwrote in message
news:83**********************************@s9g2000p rm.googlegroups.com...
How would one parse aspx pages? Is there an aspx parser available? I
need to access the individual controls in an aspx page and parse them.
Please provide more information about what exactly you mean by "parse" in
this context...
Web controls (e.g. <asp:Button /etc) are used by ASP.NET to render HTML -
they don't exist in the streamed data because ASP.NET has converted them to
HTML markup.
What are you actually trying to find out and where are you trying to find it
out? Server-side before the page is rendered, client-side after the page is
renedered, or maybe somewhere in between...?
--
Mark Rae
ASP.NET MVP http://www.markrae.net ar******@gmail.com explained :
Hi,
How would one parse aspx pages? Is there an aspx parser available? I
need to access the individual controls in an aspx page and parse them.
thanks,
Arun
Do you know about the ParseControl() and LoadControl() methods?
If they are not what you are looking for, then you need to explain more
....
Hans Kesting
On Nov 17, 8:10*pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.netwrote:
<aruna...@gmail.comwrote in message
news:83**********************************@s9g2000p rm.googlegroups.com...
How would one parse aspx pages? Is there an aspx parser available? I
need to access the individual controls in an aspx page and parse them.
Please provide more information about what exactly you mean by "parse" in
this context...
Web controls (e.g. <asp:Button /etc) are used by ASP.NET to render HTML-
they don't exist in the streamed data because ASP.NET has converted them to
HTML markup.
What are you actually trying to find out and where are you trying to findit
out? Server-side before the page is rendered, client-side after the page is
renedered, or maybe somewhere in between...?
--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
I want to parse them before the page is rendered. I need to generate
a custom script for every input control (textbox, listboxes etc) in an
aspx page. That is why I need to know what input web controls exist in
a given aspx page.
Hope it is clear,
thanks,
Arun
On Nov 17, 8:24*pm, Hans Kesting <news.han...@spamgourmet.comwrote:
aruna...@gmail.com explained :
Hi,
*How would one parse aspx pages? Is there an aspx parser available? I
need to access the individual controls in an aspx page and parse them.
thanks,
Arun
Do you know about the ParseControl() and LoadControl() methods?
If they are not what you are looking for, then you need to explain more
...
Hans Kesting
Hi,
I need to generate a custom script for every input control (textbox,
listboxes etc) in an aspx page. That is why I need to know what input
web controls exist in a given aspx page. I would be writing C# code to
parse the aspx file to get this info.
Hope it is clear,
thanks,
Arun ar******@gmail.com wrote on 17-11-2008 :
On Nov 17, 8:24*pm, Hans Kesting <news.han...@spamgourmet.comwrote:
>aruna...@gmail.com explained :
>>Hi, *How would one parse aspx pages? Is there an aspx parser available? I need to access the individual controls in an aspx page and parse them. thanks, Arun
Do you know about the ParseControl() and LoadControl() methods? If they are not what you are looking for, then you need to explain more ...
Hans Kesting
Hi,
I need to generate a custom script for every input control (textbox,
listboxes etc) in an aspx page. That is why I need to know what input
web controls exist in a given aspx page. I would be writing C# code to
parse the aspx file to get this info.
Hope it is clear,
thanks,
Arun
Why not recursively walk though the Controls collection, find all input
controls and act on them? You should do this somewhere before the
"Render" event.
You could also use ParseControl to let asp.net parse the aspx file (and
then loop though all controls yourself), but I'm not sure all the
client-side IDs will be the same as in the "real" page (which is what
you would need).
Hans Kesting This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Gerrit Holl |
last post by:
Posted with permission from the author.
I have some comments on this PEP, see the (coming) followup to this message.
PEP: 321
Title: Date/Time Parsing and Formatting
Version: $Revision: 1.3 $...
|
by: Cigdem |
last post by:
Hello,
I am trying to parse the XML files that the user selects(XML files are
on anoher OS400 system called "wkdis3"). But i am permenantly getting
that error:
Directory0: \\wkdis3\ROOT\home...
|
by: Christoph Bisping |
last post by:
Hello!
Maybe someone is able to give me a little hint on this:
I've written a vb.net app which is mainly an interpreter for specialized
CAD/CAM files.
These files mainly contain simple movement...
|
by: ILCSP |
last post by:
Hi, I just started learning Visual Basic (VB.NET 03) and I need to do
this small program that will read a text file we get from another
company that has survey data, parse it and flatten it out and...
|
by: Jean-Marie Vaneskahian |
last post by:
Reading - Parsing Records From An LDAP LDIF File In .Net?
I am in need of a .Net class that will allow for the parsing of a LDAP
LDIF file. An LDIF file is the standard format for representing...
|
by: Neil.Smith |
last post by:
I can't seem to find any references to this, but here goes:
In there anyway to parse an html/aspx file within an asp.net
application to gather a collection of controls in the file. For
instance...
|
by: toton |
last post by:
Hi,
I have some ascii files, which are having some formatted text. I want
to read some section only from the total file.
For that what I am doing is indexing the sections (denoted by .START
in...
|
by: =?Utf-8?B?RGFuYQ==?= |
last post by:
I am re-posting this message after registering my posting alias.
When I specify an end tag for the clear element of namespaces in my
web.config file, the parser error "Unrecognized element 'add'"...
|
by: GazK |
last post by:
I have been using an xml parsing script to parse a number of rss feeds
and return relevant results to a database. The script has worked well
for a couple of years, despite having very crude...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |