Showing posts with label save. Show all posts
Showing posts with label save. Show all posts

Thursday, March 29, 2012

html gets deleted

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?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 encoding

I want to save an html tag in web.config,
I know it would work if i encode it by replaceing "<" to "<"
How about double quote charater ( " )?
The below line is giving errors because of it.
<add key="myHTML" value="<img src="http://pics.10026.com/?src=host.jpg">""/>
Please help
MirajDon't use ", it will work with '.
"Miraj Haq" wrote:

> I want to save an html tag in web.config,
> I know it would work if i encode it by replaceing "<" to "<"
> How about double quote charater ( " )?
> The below line is giving errors because of it.
> <add key="myHTML" value="<img src="http://pics.10026.com/?src=host.jpg">""/>
> Please help
> Miraj
>
>
> I want to save an html tag in web.config,
> I know it would work if i encode it by replaceing "<" to "<"
> How about double quote charater ( " )?
Escape it as " as per the XML specification. So, you'd have:
<add key="myHTML" value="<img src="http://pics.10026.com/?src=host.jpg">" />
[not sure why you had a pair of double quotes at the very end...]

html encoding

I want to save an html tag in web.config,

I know it would work if i encode it by replaceing "<" to "<"

How about double quote charater ( " )?

The below line is giving errors because of it.

<add key="myHTML" value="<img src="http://pics.10026.com/?src=host.jpg">""/
Please help

MirajDon't use ", it will work with '.

"Miraj Haq" wrote:

> I want to save an html tag in web.config,
> I know it would work if i encode it by replaceing "<" to "<"
> How about double quote charater ( " )?
> The below line is giving errors because of it.
> <add key="myHTML" value="<img src="http://pics.10026.com/?src=host.jpg">""/>
> Please help
> Miraj
>
> I want to save an html tag in web.config,
> I know it would work if i encode it by replaceing "<" to "<"
> How about double quote charater ( " )?

Escape it as " as per the XML specification. So, you'd have:

<add key="myHTML" value="<img src="host.jpg">" /
[not sure why you had a pair of double quotes at the very end...]

Wednesday, March 21, 2012

HTML Clean up

this system was created by the previous developer.
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.

HTML Changing

Hello All,

I'm expereincing a strange problem using Visual Studio. In HTML view I have the following two lines of code. Every time I save the page the two "/" disappear. from the HTML. This then causes an error message when the page loads. I have tried various settings on the option tab to stop this from occuring but none seem to work.


<meta name="keywords" content="keys" ID="Keywords" runat="server"/>
<meta name="description" content="description" ID="Description" runat="server"/>
Which version of VS?