CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 4/7/2006 6:24:50 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 32 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
Sunwapta
Asp.Net User
Background-image style in Designer4/7/2006 6:24:50 PM

0/0

Hello,

is it possible to render an inline style for a custom server control when overriding GetDesignTimeHtml method? I'm trying to render an image tag with background-image attribute in style. I get the hysical path to the file, but seems like VS.NET 2005 ignore the background-image.

My method looks like this:

public

override string GetDesignTimeHtml()

{

ImageButtonStaged obj = (ImageButtonStaged)this.Component;

string imageBgUrl = obj.ImageUrl;

string imageUrl = obj.TransparentImageUrl;

Unit width = obj.Width;

Unit height = obj.Height;

IWebApplication webApp = (IWebApplication)Component.Site.GetService(typeof(IWebApplication));

IProjectItem itemImage = webApp.GetProjectItemFromUrl(imageUrl);

IProjectItem itemImageBg = webApp.GetProjectItemFromUrl(imageUrl);

return string.Format("<img src=\"{0}\" width=\"{1}\" height=\"{2}\" style=\"border: 1px solid blue; background-mage: url(file://{3})\" />",

itemImage.PhysicalPath, width, height, itemImageBg.PhysicalPath);

}

else

{

//GetEmptyDesignTimeHtml();

return "<span>No Image!!!</span>";

}

}

PS: the blue border border does show.

Sunwapta
Asp.Net User
Re: Background-image style in Designer4/7/2006 8:46:24 PM

0/0

I'm such a fool fool...

1)inline style rule has a type "background-image" and not "background-mage"

2)IProjectItem itemImageBg = webApp.GetProjectItemFromUrl(imageUrl);  should be IProjectItem itemImageBg = webApp.GetProjectItemFromUrl(imageBgUrl); 

Worls great! Thanks VS team :)

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Web Design in a Nutshell: A Desktop Quick Reference Authors: Jennifer Niederst Robbins, Pages: 796, Published: 2006
Beginning CSS: Cascading Style Sheets for Web Design Authors: Richard York, Pages: 630, Published: 2007
Dreamweaver CS3 For Dummies Authors: Janine Warner, Pages: 434, Published: 2007
Learning Web Design: A Beginner's Guide to HTML, Graphics, and Beyond Authors: Jennifer Niederst, Jennifer Niederst Robbins, Pages: 454, Published: 2003
Cascading Style Sheets: The Definitive Guide Authors: Eric A. Meyer, Pages: 507, Published: 2004
Mastering Integrated HTML and CSS: Integrate HTML Or XHTML and Cascading Style Sheets for Best Results. Master Key Techniques and Improve Your Productivity Authors: Virginia DeBolt, Pages: 600, Published: 2007
The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP Authors: David Powers, Pages: 784, Published: 2007
Microsoft FrontPage 2002 Unleashed Authors: William R. Stanek, David Berry, Duane Hellums, Mark Ray, Jinjer Simon, Pages: 1184, Published: 2002
Dreamweaver CS3: The Missing Manual Authors: David Sawyer McFarland, Pages: 995, Published: 2007
HTML & XHTML: The Definitive Guide Authors: Chuck Musciano, Bill Kennedy, Pages: 654, Published: 2007

Web:
63 Impressive Website Background-Images: Trends, Resources and ... Background images are one of those visual elements that when designed properly, can create an amazing atmosphere and convey the style the designer has ...
Stopdesign | Using Background-Image to Replace Text Nor would we likely be able to continue using such elementary style rules. Otherwise, every div we use would contain our “Hello world!” background image ...
Background image styles — Plone CMS: Open Source Content Management Adding a background image and locking the width of the design. ... a new theme for Plone: a real-world example (Plone 2.1, 2.5) → Background image styles ...
Background-image style in Designer - ASP.NET Forums Background-image style in Designer. Last post 04-07-2006 4:46 PM by Sunwapta. 1 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Backgrounds and CSS - Background Colors, Background Images, Watermarks With CSS you can put an image behind elements on your page using the background- image style property:. background-image : url(bgimage.gif); ...
HerdBoy Web Design - Adding a Background Image to Your Joomla Articles In this tutorial we are going to show you how to add a background image to an ... applying different backgrounds and styles to articles that you choose. ...
How to Style a Background Image with CSS | eHow.com How to Style a Background Image with CSS. The CSS background-image property can add style, color and design elements to an entire web page or to a small ...
Cascading Style Sheets, level 1 modularity: A style sheet designer can combine several (partial) style sheets to reduce ...... One can set a background color and/or a background image. ...
Mandarin Design: Cascading Style Sheets CSS Mandarin Web Design sample of CSS style sheet use. ... Change the background to an image. You can continue to type and see how it looks when your image ...
Bucaro TecHelp Web Design : Cascading Style Sheets Quick Reference ... to Design a Web Site and Make Money on the Web ... Set a Background Image for a Webpage ...

Videos:
Tutorial 1 - Remove a picture background in 5 seconds Put down the photoshop. Watch me remove the background out of an image in less than 5 seconds using only Adobe InDesign. This is the first of many tu...
how to change your youtube channel background image for better quality open:http://www.youtube.com/watch?v=dfGVRxWBqiE ========please read the description=== 1.go to google,yahoo etc. 2.search for the ...
MEDAVOG COUTURE Madonna background music to medavog's vintage couture collection Francisco Medavog showing some of his vintage designer pieces, with images from his Saks Fith Avenue mannequins and Celebrating Couture fashion show ...
How To Make A Custom YouTube Channel Background This is how to add a picture, or make one, and put it as your YouTube background... I would recommend using Mozilla Firefox!!! If you do not have it...
Photoshop Magic Eraser Tool In this tutorial Marcus Smith of Smith Media Solutions will show you how to remove an entire background within an image with the Magic Eraser Tool an...
How to get your own Image as your Background on Youtube WATCH IN HIGHer QUALITY: http://youtube.com/watch?v=3epbT60ehdg&fmt=18 My Good Friend Who makes all my graphics, logos, backgrounds...ect. http://ww...
Samsung Soul Samsung Electronics today announced the launch of 'Soul', Samsung's new flagship product for 2008 during Mobile World Congress in Barcelona. Samsung...
Design Coding The Poetic Prophet (AKA The SEO Rapper) is back with another marketing rap. This time he describes how web standards and proper design can affect the...
Background Design - Adobe Photoshop Me designing a pretty quick background. Watch closely if you wanna learn.
how to get background images on youtube this i a video about ow you get backround images on youtube. first you go to google images and type in an image that you want. then you go up to the ...




Search This Site:










vs.net 2005 copy web ftp command via proxy server

asp.net 2.0 quickstarts - webparts don't work!

create user wizard : password policy

vs template

server error in '/' application.

urgent!!! problem with wse 3.0 when invoke a web service in wse 2.0

vs2005 and paypal

trace after variables in vs 2005

asp.net 1.1 on vs 2005

datetimepicker

surce formating problem

can't reverse engineer classes to visio

open any template in the design view of formview, it takes long time to load all the controls

notes for pages

how to start up visual c++...

first-chance exception at 0x7c812a5b in aspnet_wp.exe.any idea?

web.config and visual studio 2005 publish

help????????

how to test the performance of my website ?

where are moblie asp.net projects? (vs2005 prof)

how to make solution explorer handle web forms with non-aspx extensions correctly

databinding issues

sql 2005 ctp question

express vs m.visual studio.net 2005

generate local resource question

vs 2005 ocx support

laptop for vs 2005?

class diagram - refactor/fields question

what account do i need?

problem with sourcesafe 2005 and solution explorer.

  Privacy | Contact Us
All Times Are GMT