Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

Thursday, March 29, 2012

HTML in a variable

Im using asp on a win2k3 server. I would like to put a lot of html into 1 variable. I get an error when i try to do it my way.


'Here is an example of what I would like to do, kinda.
application="<html>
<head>
<title>Join</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="http://links.10026.com/?link=join.css" rel="stylesheet" type="text/css">
</head>"


'Here is the error.
Microsoft VBScript compilation error '800a0409'

Unterminated string constant

/cfcs/join/mail.asp, line 17

application="<html>
------^

I was wondering if anyone could suggest an effective method of doing this.you should replace the double quotes(") by a single quote(') and instead of adding new line for the variable value you can use <br
application="<html><br><head><br><title>Join</title><br><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'><br><link href='join.css' rel='stylesheet' type='text/css'><br></head></html>"

Hope this helps
Nitasha

------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
this isn't an asp forum

application = "<html>" & vbCrLf & "<head>" & vbCrLf & "<title>Join</title>" & vbCrLf & "<meta http-equiv=""Content-Type"" content=""text/html; charset=iso-8859-1"">" & _
vbCrLf & "<link href="http://links.10026.com/?link="join.css"" rel=""stylesheet"" type=""text/css"">" & vbCrLf & "</head>"
The new lines in the string are not understood by VB.

html image percentage issue

I am unable display an image by percent. No matter what method I try,
I receive the following error.

Input string was not in the correct format.

No matter what method I use, I cannot get this to show up in a percent
format. What am I missing here.

currentStatusImage.Src = "../builds/images/green.gif"
currentStatusImage.Width = "60%"

Thanks.currentStatusImage.Width is expecting a Unit, not a string, so you need to
do a Unit.Parse("60%") or a Unit.Percentage(60).

HTH,

Bill Priess

On 23 Jul 2003 13:29:33 -0700, Chris <chrisp@.webpositive.com> wrote:

> I am unable display an image by percent. No matter what method I try,
> I receive the following error.
> Input string was not in the correct format.
> No matter what method I use, I cannot get this to show up in a percent
> format. What am I missing here.
> currentStatusImage.Src = "../builds/images/green.gif"
> currentStatusImage.Width = "60%"
> Thanks.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
I get an error stating that unit cannot convert to an integer, on both of
those attempts.

"Bill Priess" <no.spam@.nospam.com> wrote in message
news:oprsr572hkcimqky@.localhost...
> currentStatusImage.Width is expecting a Unit, not a string, so you need to
> do a Unit.Parse("60%") or a Unit.Percentage(60).
> HTH,
> Bill Priess
> On 23 Jul 2003 13:29:33 -0700, Chris <chrisp@.webpositive.com> wrote:
> > I am unable display an image by percent. No matter what method I try,
> > I receive the following error.
> > Input string was not in the correct format.
> > No matter what method I use, I cannot get this to show up in a percent
> > format. What am I missing here.
> > currentStatusImage.Src = "../builds/images/green.gif"
> > currentStatusImage.Width = "60%"
> > Thanks.
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
From the documentation:

HtmlImage.Width Property

Gets or sets the width of the image.

Public Property Width As Integer

Property Value

The width of the image.

--
John Saunders
Internet Engineer
john.saunders@.surfcontrol.com

"Chris" <chrisp@.webpositive.com> wrote in message
news:1058997574.400832@.sj-nntpcache-5...
> I get an error stating that unit cannot convert to an integer, on both of
> those attempts.
>
> "Bill Priess" <no.spam@.nospam.com> wrote in message
> news:oprsr572hkcimqky@.localhost...
> > currentStatusImage.Width is expecting a Unit, not a string, so you need
to
> > do a Unit.Parse("60%") or a Unit.Percentage(60).
> > HTH,
> > Bill Priess
> > On 23 Jul 2003 13:29:33 -0700, Chris <chrisp@.webpositive.com> wrote:
> > > I am unable display an image by percent. No matter what method I try,
> > > I receive the following error.
> > > > Input string was not in the correct format.
> > > > No matter what method I use, I cannot get this to show up in a percent
> > > format. What am I missing here.
> > > > currentStatusImage.Src = "../builds/images/green.gif"
> > > currentStatusImage.Width = "60%"
> > > > Thanks.
> > > --
> > Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
It does, the sdk also states that you can also set the value as a
percentage. The problem is that it doesn't give an example or any
detail to that.

"By default, the Width property is expressed in pixels, but it can
also be expressed as a percentage of the window size." - straight from
the windows sdk, and that's all it has to say about it. But how??

http://msdn.microsoft.com/library/d...idthtop ic.asp

"John Saunders" <john.saunders@.surfcontrol.com> wrote in message news:<Ouy$DqWUDHA.2308@.TK2MSFTNGP12.phx.gbl>...
> From the documentation:
> HtmlImage.Width Property
> Gets or sets the width of the image.
> Public Property Width As Integer
> Property Value
> The width of the image.
> --
> John Saunders
> Internet Engineer
> john.saunders@.surfcontrol.com
>
> "Chris" <chrisp@.webpositive.com> wrote in message
> news:1058997574.400832@.sj-nntpcache-5...
> > I get an error stating that unit cannot convert to an integer, on both of
> > those attempts.
> > "Bill Priess" <no.spam@.nospam.com> wrote in message
> > news:oprsr572hkcimqky@.localhost...
> > > currentStatusImage.Width is expecting a Unit, not a string, so you need
> to
> > > do a Unit.Parse("60%") or a Unit.Percentage(60).
> > > > HTH,
> > > > Bill Priess
> > > > On 23 Jul 2003 13:29:33 -0700, Chris <chrisp@.webpositive.com> wrote:
> > > > > I am unable display an image by percent. No matter what method I try,
> > > > I receive the following error.
> > > > > > Input string was not in the correct format.
> > > > > > No matter what method I use, I cannot get this to show up in a percent
> > > > format. What am I missing here.
> > > > > > currentStatusImage.Src = "../builds/images/green.gif"
> > > > currentStatusImage.Width = "60%"
> > > > > > Thanks.
> > > > > > > > --
> > > Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
It seems you've found a documentation error.

An integer is an integer, not a Unit. You can't use percentage in an
HtmlImage.

John Saunders
john.saunders@.surfcontrol.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
It seems you've found a documentation error.

An integer is an integer, not a Unit. You can't use percentage in an
HtmlImage.

John Saunders
john.saunders@.surfcontrol.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Any ideas on how to get around this. In addition to this being an issue,
when I attempt to do the following ( going back to my asp classic way of
thinking ) :

<img border="0" id="currentStatusImage" src="http://pics.10026.com/?src=<% = srcInfo %> width="<% =
widthInfo %>%" height="6" runat="server"
I still get the integer error. I'd rather not make this a static image but,
the list of ideas grows smaller. Thanks.

"John Saunders" <john.saunders@.surfcontrol.com> wrote in message
news:e5PAL8dUDHA.1484@.TK2MSFTNGP12.phx.gbl...
> It seems you've found a documentation error.
> An integer is an integer, not a Unit. You can't use percentage in an
> HtmlImage.
> John Saunders
> john.saunders@.surfcontrol.com
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
You're still getting the error because you've still got the control marked
as runat="server", which means it's an HtmlImage, which means that the Width
property is an integer.

Do you really need the image to be a server control?

And why not use style="WIDTH:100%" :

currentStatusImage.Style["WIDTH"] = "100%"

--
John Saunders
Internet Engineer
john.saunders@.surfcontrol.com

"Chris" <chrisp@.webpositive.com> wrote in message
news:1059061676.370476@.sj-nntpcache-3...
> Any ideas on how to get around this. In addition to this being an issue,
> when I attempt to do the following ( going back to my asp classic way of
> thinking ) :
> <img border="0" id="currentStatusImage" src="http://pics.10026.com/?src=<% = srcInfo %> width="<% =
> widthInfo %>%" height="6" runat="server">
> I still get the integer error. I'd rather not make this a static image
but,
> the list of ideas grows smaller. Thanks.
>
> "John Saunders" <john.saunders@.surfcontrol.com> wrote in message
> news:e5PAL8dUDHA.1484@.TK2MSFTNGP12.phx.gbl...
> > It seems you've found a documentation error.
> > An integer is an integer, not a Unit. You can't use percentage in an
> > HtmlImage.
> > John Saunders
> > john.saunders@.surfcontrol.com
> > *** Sent via Developersdex http://www.developersdex.com ***
> > Don't just participate in USENET...get rewarded for it!

HTML Frames Problem - Urgent

Hi Guysi have a small issue with my frames on a page . Error details as followsI have two frames , on my left frame i have menu with links ,All where working fine untill few of my users started to getting this error , when ever they click the menu link , the Left menu disappears and only the right page ( page which requested from left menu) get loaded ...its still working fine in my system , we tried reinstalling the IE too .So any one has any ideas abt this ... please let me know ,

Thanks

P.Ramprathap

Hi there,

With the info you have given it is a bit hard to know what could be the problem, so some more information would be good.

Is the page just a static html page with the two frames and the links in the menu just hardcoded in there or is it an aspx page with a dynamic menu or something like that?

How long has it been working before this problem appeared?

Has it worked before for the users who now have a problem?

What browser does the users with the problem use and have they recently upgraded (to IE 7 or something like that)?

/Ola


hi

its aspx page with two frameset inside , its working fine in my system , and other collegues , this happens especially with one user , Its been hard to convince the user that its the browser issue .

In this specific case when ever the user clicks the Left frame ( which contain the menu) the browser navigates to the desired page but not within the frame instead the menu frame gets dissapear and the page loads as a seprate page ....

need to figure out the IE settings which restircts the the frame ..

the user uses IE....

does it makes thinks clear for you ...?


If possible... You may want to re-think using frames with ASP.Net. You may be able to achieve the same results through master pages...

Frames are pretty much evil any way you cut it, but you might want to check the IIS logs and see if the menu is being re-requested and not appearing or if it might be a problem with browser caching.

And yes, there are ways to have this same design effect in a dynamic page withjout frames. Master pages would be a great use here.

Jeff


Its an Enterprise application running across our global customer for past 2-3 years , changing it to masterpage will be diffcult task in getting the approvalSad

Monday, March 26, 2012

HTML Extension for ASP.NET 2.0

I am trying to map ASP.NET execution to the ".html" extension. And I am
encountering a strange error. I'm looking for help configuring my
".html" pages to execute as ".aspx" pages.

I have added the IIS file extension mapping, I have also added the
following to the Web.Config file:

<compilation>
<buildProviders>
<add extension=".html"
type="System.Web.Compilation.PageBuildProvider"
appliesTo="Web" />
</buildProviders>
</compilation>
<httpHandlers>
<add path="*.html"
verb="*"
type="System.Web.UI.PageHandlerFactory"
validate="True" />
</httpHandlers
In my .html pages I receive a context error (example: "'Context' is not
a member of 'Default4'"), yet my page is wired up just like any other
normal aspx page, which do not receive any error.

Example file names: Default4.html, Default4.html.vb

Please help!

Thanks.I just setup an application just as you've described and it works just fine
for me. I'm using Beta2. Perhaps there's something else going on?

-Brock
DevelopMentor
http://staff.develop.com/ballen

> I am trying to map ASP.NET execution to the ".html" extension. And I
> am encountering a strange error. I'm looking for help configuring my
> ".html" pages to execute as ".aspx" pages.
> I have added the IIS file extension mapping, I have also added the
> following to the Web.Config file:
> <compilation>
> <buildProviders>
> <add extension=".html"
> type="System.Web.Compilation.PageBuildProvider"
> appliesTo="Web" />
> </buildProviders>
> </compilation>
> <httpHandlers>
> <add path="*.html"
> verb="*"
> type="System.Web.UI.PageHandlerFactory"
> validate="True" />
> </httpHandlers>
> In my .html pages I receive a context error (example: "'Context' is
> not a member of 'Default4'"), yet my page is wired up just like any
> other normal aspx page, which do not receive any error.
> Example file names: Default4.html, Default4.html.vb
> Please help!
> Thanks.
Interesting. I am also using Beta2. How are you running your pages? Do
they have to be precompiled, or can I run them uncompiled as usual?
I ran w/o precompile using Cassini (the built-in development webserver).

-Brock
DevelopMentor
http://staff.develop.com/ballen

> Interesting. I am also using Beta2. How are you running your pages? Do
> they have to be precompiled, or can I run them uncompiled as usual?
It looks like the "appliesTo" and "validate"
properties have been deprecated.

Try :

<compilation>
<buildProviders>
<add extension=".html"
type="System.Web.Compilation.PageBuildProvider"
/>
</buildProviders>
</compilation>
<httpHandlers>
<add path="*.html"
verb="*"
type="System.Web.UI.PageHandlerFactory"
/>
</httpHandlers
And , of course, add the file type in the "configuration" option
for the application in the Internet Service Manager.

That's the way I set up my custom extension ".juan"

Check it out :

http://asp.net.do/test/version.juan

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================

"guppywon" <guppywon@.chriswelch.com> wrote in message
news:1121797270.911809.132060@.g14g2000cwa.googlegr oups.com...
>I am trying to map ASP.NET execution to the ".html" extension. And I am
> encountering a strange error. I'm looking for help configuring my
> ".html" pages to execute as ".aspx" pages.
> I have added the IIS file extension mapping, I have also added the
> following to the Web.Config file:
> <compilation>
> <buildProviders>
> <add extension=".html"
> type="System.Web.Compilation.PageBuildProvider"
> appliesTo="Web" />
> </buildProviders>
> </compilation>
> <httpHandlers>
> <add path="*.html"
> verb="*"
> type="System.Web.UI.PageHandlerFactory"
> validate="True" />
> </httpHandlers>
> In my .html pages I receive a context error (example: "'Context' is not
> a member of 'Default4'"), yet my page is wired up just like any other
> normal aspx page, which do not receive any error.
> Example file names: Default4.html, Default4.html.vb
> Please help!
> Thanks.
The context error I am receiving is in Visual Studio 2005, and I am
trying to run the site using IIS. Do I need to do anything within
Visual Studio to support .html, or are my pages going to be
second-class citizens as with VS2003?
I don't understand your problem.

If your problem is that you want to create Html pages, go to the
File menu, then New, File, and select the HTML Page template.

Simply adding the "L" to the default .HTM filename lets you
build HTML pages and you'll have standard HTML objects
at your disposal which you can include in your HTML page.

Any HTML object which you insert will have a set of properties
which you can define in the Visual Studio Property box.

If you want to write JavaScript, you can do that, too,
although there's no additional help for that.

So, support for HTML files *is* there.

If your problem is that you want HTML files processed by
the ASP.NET engine, you *can* do that as I showed you.

I don't know of any way for Visual Studio to recognize custom
file extensions so that Intellisense, etc., work when a custom
extension is loaded ( Is that what you consider the problem to be ?).

You might workaround that by writing your code in an aspx file,
and renaming the file to the html extension when it's working.

If you setup the html extension per the instructions I sent you,
the pages *will* run, since your clients won't be using VS.NET
to run your pages, but their browsers.

Bottom line: VS.NET is behaving as it should, as I see it.

If you differ, please explain what you
would like VS.NET to do with HTML files.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================

"guppywon" <guppywon@.chriswelch.com> wrote in message
news:1121864039.504071.306260@.f14g2000cwb.googlegr oups.com...
> The context error I am receiving is in Visual Studio 2005, and I am
> trying to run the site using IIS. Do I need to do anything within
> Visual Studio to support .html, or are my pages going to be
> second-class citizens as with VS2003?
I don't have the rest of this thread, but I seem to recall that you said
you made the mappings in IIS for .html files to the ASP.NET ISAPI (make sure
it's the 2.0 version).

Just to see if everything's ok, I'd suggest starting from scratch. Make a
FileSystem project (that was you don't have IIS to worry about) and make
a simple .aspx and then switch it all over to .html and see if that works.
I'm thinking that you'll have to take these little steps to isolate the problem.

-Brock
DevelopMentor
http://staff.develop.com/ballen

> The context error I am receiving is in Visual Studio 2005, and I am
> trying to run the site using IIS. Do I need to do anything within
> Visual Studio to support .html, or are my pages going to be
> second-class citizens as with VS2003?
I was finally able to get it to work. I accidently misconfigured IIS,
and simply had to fix the mistake.

html error, not supported by active schema

Hi I downloaded some free eworld.ui .NET controls, added the control to the
toolbox and then added the reference to the dll. The problem is that in HTM
L
the properties of the downloaded control, calendar control are
(red)underlined and puting the cursor over the line displays the message,
this active schema does not support the element TextboxLabelStyle, for
example.
The calender control seems to be operating correctly.
Thanks.
--
Paul G
Software engineer.You can simply ignore that message!
It just says the HTML schema you are using has not TextboxLabelStyle.
It is because a line like this in your aspx page:
meta content="http://schemas.microsoft.com/intellisense/ie5"
Saber S.
http://maghalat.com (Persian)
"Paul" <Paul@.discussions.microsoft.com> wrote in message
news:D7721818-DAB6-4626-881F-7BBC05E73CE8@.microsoft.com...
> Hi I downloaded some free eworld.ui .NET controls, added the control to
> the
> toolbox and then added the reference to the dll. The problem is that in
> HTML
> the properties of the downloaded control, calendar control are
> (red)underlined and puting the cursor over the line displays the message,
> this active schema does not support the element TextboxLabelStyle, for
> example.
> The calender control seems to be operating correctly.
> Thanks.
> --
> Paul G
> Software engineer.
ok thanks for the information.
"Saber" wrote:

> You can simply ignore that message!
> It just says the HTML schema you are using has not TextboxLabelStyle.
> It is because a line like this in your aspx page:
> meta content="http://schemas.microsoft.com/intellisense/ie5"
> --
> Saber S.
> http://maghalat.com (Persian)
> "Paul" <Paul@.discussions.microsoft.com> wrote in message
> news:D7721818-DAB6-4626-881F-7BBC05E73CE8@.microsoft.com...
>
>
Try adding this meta tag to the header:
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
Visual Studio usually puts it in for you when you use it to create a
web forms page.
will give it a try, thanks for the information.
"Liz Patton" wrote:

> Try adding this meta tag to the header:
>
> <meta name="vs_targetSchema"
> content="http://schemas.microsoft.com/intellisense/ie5">
>
> Visual Studio usually puts it in for you when you use it to create a
> web forms page.
>

html error, not supported by active schema

Hi I downloaded some free eworld.ui .NET controls, added the control to the
toolbox and then added the reference to the dll. The problem is that in HTML
the properties of the downloaded control, calendar control are
(red)underlined and puting the cursor over the line displays the message,
this active schema does not support the element TextboxLabelStyle, for
example.
The calender control seems to be operating correctly.
Thanks.
--
Paul G
Software engineer.You can simply ignore that message!
It just says the HTML schema you are using has not TextboxLabelStyle.
It is because a line like this in your aspx page:

meta content="http://schemas.microsoft.com/intellisense/ie5"

--
Saber S.
http://maghalat.com (Persian)

"Paul" <Paul@.discussions.microsoft.com> wrote in message
news:D7721818-DAB6-4626-881F-7BBC05E73CE8@.microsoft.com...
> Hi I downloaded some free eworld.ui .NET controls, added the control to
> the
> toolbox and then added the reference to the dll. The problem is that in
> HTML
> the properties of the downloaded control, calendar control are
> (red)underlined and puting the cursor over the line displays the message,
> this active schema does not support the element TextboxLabelStyle, for
> example.
> The calender control seems to be operating correctly.
> Thanks.
> --
> Paul G
> Software engineer.
will give it a try, thanks for the information.

"Liz Patton" wrote:

> Try adding this meta tag to the header:
>
> <meta name="vs_targetSchema"
> content="http://schemas.microsoft.com/intellisense/ie5">
>
> Visual Studio usually puts it in for you when you use it to create a
> web forms page.

html error

i have a freetextbox that is a htmleditor , but when i want to send my html to server an error raise.
for example i want to send this line

hello

this error raises :
A potentially dangerous Request.Form value was detected from the client (ftbCaption="<STRONG>hello</STRON...")

how can i pervent this error?check out the FTB forums
http://www.freetextbox.com/forums/ShowPost.aspx?PostID=496

short anwser = put this line in your page directive:
ValidateRequest=false

that worked for me