Ask a Question related to ASP.NET General, Design and Development.
-
Chris #1
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.
Chris Guest
-
JavaScript issue after exporting HTML from Fireworks
I have been using Fireworks MX 2004 to create a web page with pop-ups, slice it and export it to HTML. In Dreamweaver MX 2004 I would then add a... -
Possible Issue with HTML::TreeBuilder?
I am having a problem deleting a temporary attribute from a HTML node. The XML spec that I am using allows a user to declare a table similar to... -
Printing image issue
I upgraded from freehand 10 to mx and have a problem when printing a business card that was converted from version 10 to mx. All of the text looks... -
MX 2004 HTML Exporting Issue?
I've created a site in Fireworks MX, created the rollovers, export the HTML and images and then import "Fireworks HTML" into DW MX; looks great! ... -
Image issue
Which article are you referring to? Is it this one? http://www.dw-fw-beginners.com/tutorials/frwrks/bitmap_select.htm Cheers, Sam "jerush"... -
Bill Priess #2
Re: html image percentage issue
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: [url]http://www.opera.com/m2/[/url]
Bill Priess Guest
-
Chris #3
Re: html image percentage issue
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: [url]http://www.opera.com/m2/[/url]
Chris Guest
-
John Saunders #4
Re: html image percentage issue
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
[email]john.saunders@surfcontrol.com[/email]
"Chris" <chrisp@webpositive.com> wrote in message
news:1058997574.400832@sj-nntpcache-5...to> 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>> > 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: [url]http://www.opera.com/m2/[/url]
>
John Saunders Guest
-
Chris #5
Re: html image percentage issue
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??
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuihtmlcontrolshtmlimageclasswidthtop ic.asp[/url]
"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
> [email]john.saunders@surfcontrol.com[/email]
>
>
> "Chris" <chrisp@webpositive.com> wrote in message
> news:1058997574.400832@sj-nntpcache-5...> to> > 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> >> > > 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: [url]http://www.opera.com/m2/[/url]
> >Chris Guest
-
John Saunders #6
Re: html image percentage issue
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
[email]john.saunders@surfcontrol.com[/email]
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
John Saunders Guest
-
Chris #7
Re: html image percentage issue
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="<% = 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
> [email]john.saunders@surfcontrol.com[/email]
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
Chris Guest
-
John Saunders #8
Re: html image percentage issue
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
[email]john.saunders@surfcontrol.com[/email]
"Chris" <chrisp@webpositive.com> wrote in message
news:1059061676.370476@sj-nntpcache-3...but,> 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="<% = srcInfo %> width="<% =
> widthInfo %>%" height="6" runat="server">
>
> I still get the integer error. I'd rather not make this a static image> 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
> > [email]john.saunders@surfcontrol.com[/email]
> >
> > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> > Don't just participate in USENET...get rewarded for it!
>
John Saunders Guest



Reply With Quote

