Blog

My blog serves as a way for me to post solutions to problems I solve at work or during the long hours of freelance work.


How to Get Website URL With Inline ASP.NET

by Ezekiel 15. January 2010 06:17

 

Use this to get the websites URL only.

<%= Request.Url.AbsoluteUri.Replace(Request.Url.AbsolutePath, String.Empty) %>

 

Return -

URL: http://www.ezekielonline.com/Portfolio.aspx

Gets Only: http://www.ezekielonline.com

 

How to use -

<a rel="#voverlay" href="videos/engine/swf/player.swf?url=<%= Request.Url.AbsoluteUri.Replace(Request.Url.AbsolutePath, String.Empty) %>/videos/videos.flv">

    <img src="images/video.jpg" width="369" height="278" align="left" alt="" />

</a>

 

So this will get the URL only.  You can use through out the development process. dev, stage, live.

Tags: , ,

ASP.NET

Fixed Position Background Image Using CSS

by Ezekiel 26. November 2009 05:17

 

CSS -

body
{
    background: #fff url('images/imagename.jpg') 0px 0px no-repeat-y fixed;
    font-family: arial, sans-serif
}

.wrapper {
    background: #fff url('images/imagename.jpg') 0 0 no-repeat fixed;
}

 

HTML -

<body>

    <div class="wrapper">


    </div>

</body>

Tags: , ,

CSS | HTML

Wrap Text Around Image Using CSS

by Ezekiel 22. October 2009 10:54

 

HTML -

<asp:Image ID="Image1" runat="server" CssClass="featuredPic" />
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text


CSS -

.featuredPic{
 border: double rgb(183,183,183);
 border-width: 1px;
 padding-left: 2px;
 padding-right: 2px;
 padding-top: 2px;
 padding-bottom: 2px;
 margin-right: 11px;
 float: left;
}

 

Tags: ,

CSS | HTML

RecentPosts