Thursday, March 29, 2012
html gets deleted
the last few forms that I have created have been very
long and after I save the form - parts of the html get
deleted and I lose the objects at the bottom of the
page. the code however is still in the code behind
module. has anyone experienced this type of behavior?Bob,
Does this help?
324440 FIX: Data Loss When You Change Views in WebForm Designer
You didn't say what version of VS.NET. This is for 2002.
Jim Cheshire [MSFT]
Developer Support
ASP.NET
jamesche@.online.microsoft.com
This post is provided as-is with no warranties and confers no rights.
-------
>Content-Class: urn:content-classes:message
>From: "bob" <compbob_2000@.hotmail.com>
>Sender: "bob" <compbob_2000@.hotmail.com>
>Subject: html gets deleted
>Date: Mon, 27 Oct 2003 13:23:35 -0800
>Lines: 6
>Message-ID: <044701c39cd0$94ad1e90$a301280a@.phx.gbl>
>MIME-Version: 1.0
>Content-Type: text/plain;
>charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Thread-Index: AcOc0JSqjfELt55HSwGM+sLqEOvXIw==
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>Path: cpmsftngxa06.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:186835
>NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>I'm using visual studio and working on some webforms.
>the last few forms that I have created have been very
>long and after I save the form - parts of the html get
>deleted and I lose the objects at the bottom of the
>page. the code however is still in the code behind
>module. has anyone experienced this type of behavior?
Saturday, March 24, 2012
HTML document.body.scrollTop question
I created a complex ASPX page, nested inside a master page and Ajax
UpdatePanel. In one of my Javascript function I need to capture mouse
position. I use alert(document.body.scrollTop) to test scroll bar position.
Even though I have a long scroll bar and already to end of the page, when I
call this function, I always get "0" as document.body.scrollTop.
Meanwhile I created a very simple HTML page with a lot of <br> to test, it
works fine. I tried both IE6 and IE7, no luck at all.
My question is under what situation document.body.scrollTop always returns 0
in IE?
--
Regards
HardyAfter some tries, if I remove
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Then it works fine! Any idea how can I make it work with XHTML 1.0?
--
Regards
Hardy
"Hardy Wang" wrote:
> Hi all,
> I created a complex ASPX page, nested inside a master page and Ajax
> UpdatePanel. In one of my Javascript function I need to capture mouse
> position. I use alert(document.body.scrollTop) to test scroll bar position
.
> Even though I have a long scroll bar and already to end of the page, when
I
> call this function, I always get "0" as document.body.scrollTop.
> Meanwhile I created a very simple HTML page with a lot of <br> to test, it
> works fine. I tried both IE6 and IE7, no luck at all.
> My question is under what situation document.body.scrollTop always returns
0
> in IE?
> --
> Regards
> Hardy
use w3c syntax:
document.documentElement.scrollTop
-- bruce (sqlwork.com)
Hardy Wang wrote:
> After some tries, if I remove
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> Then it works fine! Any idea how can I make it work with XHTML 1.0?
HTML document.body.scrollTop question
I created a complex ASPX page, nested inside a master page and Ajax
UpdatePanel. In one of my Javascript function I need to capture mouse
position. I use alert(document.body.scrollTop) to test scroll bar position.
Even though I have a long scroll bar and already to end of the page, when I
call this function, I always get "0" as document.body.scrollTop.
Meanwhile I created a very simple HTML page with a lot of <brto test, it
works fine. I tried both IE6 and IE7, no luck at all.
My question is under what situation document.body.scrollTop always returns 0
in IE?
--
Regards
HardyAfter some tries, if I remove
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Then it works fine! Any idea how can I make it work with XHTML 1.0?
--
Regards
Hardy
"Hardy Wang" wrote:
Quote:
Originally Posted by
Hi all,
I created a complex ASPX page, nested inside a master page and Ajax
UpdatePanel. In one of my Javascript function I need to capture mouse
position. I use alert(document.body.scrollTop) to test scroll bar position.
Even though I have a long scroll bar and already to end of the page, when I
call this function, I always get "0" as document.body.scrollTop.
>
Meanwhile I created a very simple HTML page with a lot of <brto test, it
works fine. I tried both IE6 and IE7, no luck at all.
>
My question is under what situation document.body.scrollTop always returns 0
in IE?
--
Regards
Hardy
use w3c syntax:
document.documentElement.scrollTop
-- bruce (sqlwork.com)
Hardy Wang wrote:
Quote:
Originally Posted by
After some tries, if I remove
>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
Then it works fine! Any idea how can I make it work with XHTML 1.0?
Wednesday, March 21, 2012
HTML Clean up
The idea was to save formatted html for each news article directly to the database, which is then displayed on the article table.
this idea worked fine, but unfortunatly people are using dreamweaver, ms word, and the like to create this html.
Needless to say, nearly 25,000 articles in my database by now, the article table alone grew to about 650MB (80% of the database!).
So I'm going to create a new component for them to create articles.
but, while doing so, I was wondering if there is something one can do, to loop through the database and "clean up" the html or something?
Worse case scenario, i will just leave the existing articles as is, and new articles will have simple html, with a single stylesheet for all articles.
Just would have like to clean up existing articles. That messy htlm, and huge record are crippling the search functionality.You will need to know what sort of 'extra' features these web editors add. You can then use a regex search to go through all the records and remove them (without removing the innertext). You could use SQL for this by directly manipulating the database.
Don't forget to try it on a backup first.