473,387 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

my html code

hey all,
i'd like to take my html code and modify it programmatically and i was
wondering if someone could show me the easiest way to do this.

i wasn't sure if going thru the code line-by-line in a text file would
suffice or would it be better to read/update as an xml file.

what i want to do is match the character max length property in the database
to the property on the textboxes. also any ideas to do this is welcomed too.

thanks,
rodchar
Nov 16 '06 #1
3 884
unless you wrote very clean xhtml, you won't be able to read the html as
xml, you'll get parsing errors. google for a regex expression to help parse
html. you could have a program instantiate each page and look at the
controls collection to get the values you want.

-- bruce (sqlwork.com)

"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:83**********************************@microsof t.com...
hey all,
i'd like to take my html code and modify it programmatically and i was
wondering if someone could show me the easiest way to do this.

i wasn't sure if going thru the code line-by-line in a text file would
suffice or would it be better to read/update as an xml file.

what i want to do is match the character max length property in the
database
to the property on the textboxes. also any ideas to do this is welcomed
too.

thanks,
rodchar

Nov 16 '06 #2
great idea!! thanks for the help. rod.

"bruce barker (sqlwork.com)" wrote:
unless you wrote very clean xhtml, you won't be able to read the html as
xml, you'll get parsing errors. google for a regex expression to help parse
html. you could have a program instantiate each page and look at the
controls collection to get the values you want.

-- bruce (sqlwork.com)

"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:83**********************************@microsof t.com...
hey all,
i'd like to take my html code and modify it programmatically and i was
wondering if someone could show me the easiest way to do this.

i wasn't sure if going thru the code line-by-line in a text file would
suffice or would it be better to read/update as an xml file.

what i want to do is match the character max length property in the
database
to the property on the textboxes. also any ideas to do this is welcomed
too.

thanks,
rodchar


Nov 16 '06 #3
but would i be able to permanently set the MaxLength property?

"bruce barker (sqlwork.com)" wrote:
unless you wrote very clean xhtml, you won't be able to read the html as
xml, you'll get parsing errors. google for a regex expression to help parse
html. you could have a program instantiate each page and look at the
controls collection to get the values you want.

-- bruce (sqlwork.com)

"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:83**********************************@microsof t.com...
hey all,
i'd like to take my html code and modify it programmatically and i was
wondering if someone could show me the easiest way to do this.

i wasn't sure if going thru the code line-by-line in a text file would
suffice or would it be better to read/update as an xml file.

what i want to do is match the character max length property in the
database
to the property on the textboxes. also any ideas to do this is welcomed
too.

thanks,
rodchar


Nov 16 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

72
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools...
10
by: Andrew Poulos | last post by:
While this works on IE 6: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>aiff</title> <meta http-equiv="Content-Type"...
3
by: mca | last post by:
Hi everyone, I'm new to asp.net and i have a question about separating the html code from the programming code. i have an unknown numbers of entries in my table. I want to make a hyperlink...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
7
by: Xah Lee | last post by:
Summary: when encountering ex as a unit in css, FireFox (and iCab) did not take into account the font-family. Detail: http://xahlee.org/js/ff_pre_ex.html Xah xah@xahlee.org ∑...
26
by: webrod | last post by:
Hi, I have some php pages with a lot of HTML code. I am looking for a HTML validator tool (like TIDY). TIDY is not good enough with PHP tags (it removes a lot of php code). Do you have any...
10
by: paulie | last post by:
Hi, I have been experiencing an issue when trying to use AJAX to reload a DIV area using a timer of 2000ms, which contains a html page with another DIV and javascript. Scenario -------------...
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
11
Dormilich
by: Dormilich | last post by:
Lately I have seen so much awful HTML, that I like to show what a HTML document should look like, regarding the requirements from the W3C. the absolute minimum is defined as: or expressed in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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...
1
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...
0
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.