Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > can set up an image as the listbox's background

Reply
Thread Tools

can set up an image as the listbox's background

 
 
haiwen
Guest
Posts: n/a
 
      08-15-2003
hello, everyone:

I am try to set up an image background for the ListBox Web
control.
but no matter I use style="BACKGROUND-IMAGE:url
http://myserver/Project1/back.jpg)" at design time or
add code:
ListBox1.Style.Add("BACKGROUND-IMAGE",
"url(http://myserver/Project1/back.jpg)")

Both of them do not work anyway. Could anyone know how to
set up the image as listbox's background.

I do appreciate your help.

haiwen

 
Reply With Quote
 
 
 
 
Lewis Wang [MSFT]
Guest
Posts: n/a
 
      08-18-2003
Hi Haiwen,

Thanks for your posting. I am checking this issue, and will get back to you
with my findings.

Best regards,
Lewis

This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
| Content-Class: urn:content-classes:message
| From: "haiwen" <(E-Mail Removed)>
| Sender: "haiwen" <(E-Mail Removed)>
| Subject: can set up an image as the listbox's background
| Date: Fri, 15 Aug 2003 07:34:52 -0700
| Lines: 17
| Message-ID: <005d01c3633a$63c6c5d0$(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNjOmPG/r29YIl6RYuptZHLZXoIiw==
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontro ls
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontro ls:13972
| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontro ls
|
| hello, everyone:
|
| I am try to set up an image background for the ListBox Web
| control.
| but no matter I use style="BACKGROUND-IMAGE:url
| http://myserver/Project1/back.jpg)" at design time or
| add code:
| ListBox1.Style.Add("BACKGROUND-IMAGE",
| "url(http://myserver/Project1/back.jpg)")
|
| Both of them do not work anyway. Could anyone know how to
| set up the image as listbox's background.
|
| I do appreciate your help.
|
| haiwen
|
|

 
Reply With Quote
 
 
 
 
Lewis Wang [MSFT]
Guest
Posts: n/a
 
      08-20-2003

Hi haiwen,

Some controls like button, textbox have the backgroundImage style, but
listbox(select element) does not have this style.

You may check the following link for more information:

<http://msdn.microsoft.com/library/de...uthor/dhtml/re
ference/objects/select.asp>


Hope this helps.

Best regards,
Lewis

--------------------
| X-Tomcat-ID: 229528433
| References: <005d01c3633a$63c6c5d0$(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: http://www.velocityreviews.com/forums/(E-Mail Removed) (Lewis Wang [MSFT])
| Organization: Microsoft
| Date: Mon, 18 Aug 2003 11:57:05 GMT
| Subject: RE: can set up an image as the listbox's background
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontro ls
| Message-ID: <PoCJc$(E-Mail Removed)>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontro ls
| Lines: 40
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontro ls:14005
| NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182
|
| Hi Haiwen,
|
| Thanks for your posting. I am checking this issue, and will get back to
you
| with my findings.
|
| Best regards,
| Lewis
|
| This posting is provided "AS IS" with no warranties, and confers no
rights.
|
|
|
| --------------------
| | Content-Class: urn:content-classes:message
| | From: "haiwen" <(E-Mail Removed)>
| | Sender: "haiwen" <(E-Mail Removed)>
| | Subject: can set up an image as the listbox's background
| | Date: Fri, 15 Aug 2003 07:34:52 -0700
| | Lines: 17
| | Message-ID: <005d01c3633a$63c6c5d0$(E-Mail Removed)>
| | MIME-Version: 1.0
| | Content-Type: text/plain;
| | charset="iso-8859-1"
| | Content-Transfer-Encoding: 7bit
| | X-Newsreader: Microsoft CDO for Windows 2000
| | X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| | Thread-Index: AcNjOmPG/r29YIl6RYuptZHLZXoIiw==
| | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontro ls
| | Path: cpmsftngxa06.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.framework.aspnet.webcontro ls:13972
| | NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontro ls
| |
| | hello, everyone:
| |
| | I am try to set up an image background for the ListBox Web
| | control.
| | but no matter I use style="BACKGROUND-IMAGE:url
| | http://myserver/Project1/back.jpg)" at design time or
| | add code:
| | ListBox1.Style.Add("BACKGROUND-IMAGE",
| | "url(http://myserver/Project1/back.jpg)")
| |
| | Both of them do not work anyway. Could anyone know how to
| | set up the image as listbox's background.
| |
| | I do appreciate your help.
| |
| | haiwen
| |
| |
|
|

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DIV background-repeat background-image? For shadow effect jc ASP .Net 3 03-19-2008 04:19 PM
DIV background-repeat background-image for shadowing effect jc HTML 1 03-19-2008 02:16 PM
changing a background image to a background colour? Dj Frenzy Javascript 3 02-10-2004 08:08 PM
way to set background image static and it doesnt load after each postback? Bogosian ASP .Net 4 01-07-2004 03:54 PM
'skin' or set background image for component? Robert Mark Bram Java 1 10-24-2003 04:16 AM



Advertisments