.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to put a border around SPAN

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :ASP.Net

I have to show a text with an image under a SPAN tag, like:

<span id="spanTitlePanel">
  <asp:Panel  ID="SettingsTitlePanel" runat="server"  >                
     Settings:  <asp:ImageButton ID="btnSettingsPopup" runat="server" ImageUrl="~/images/expand_blue.jpg" />

Now, I want a border around "Setting ". How can I do it using CSS? Or, I need to put this under a DIV? If so, how can I make text and image come in one line with in the border?

View Complete Post

More Related Resource Links

Go International!: Let Your Apps Span the Globe with Windows Forms and Visual Studio .NET


How would an English speaker feel if his car's owner's manual was written in German or if the dash board markings were written in Japanese because the car was manufactured in that country? This is an experience common to computer users all over the world who don't speak English as their primary language, and it's becomming more important. The Microsoft .NET Framework not only makes it possible to build international applications, but many of the tools such as Visual Studio .NET make it quite easy. This article looks at internationalization with .NET and presents real tools you can use to make all of your Windows Forms applications global-ready.

Jason R. Bell

MSDN Magazine June 2002

Adding table to a page, but the format lost when I use clear border



I added a table to a page, by default, the table layout is the light border. So, I add my content and the vertical align seems to set to the top. But when I changed it to clear border, the content of the table will set vertical align to center. Is there a way to change this back to top align but with the clear border. I don't think I can do this by what is available in the ribbon. Please advice.

GROUP BY any time span


I've got a query which totals amounts by day from midnight to midnight. Easy to do, works fine. But what I would like is to group every day starting from 3am till the following day's 3am.

Is this possible?

Border at the end of page

hi all, at  the end of report i want to add border in that page. basically, i want to know that ,is it possible to get border at the end of page in ssrs report.  Thanx in advance, Sagar Joshi 

How to set the border for a WPF DataGrid Row which is currently having the focus

Hi, I want to set the border for a DataGrid Row which is currently having the focus. But not the seleced row because when the Multi selection is enabled for the datagrid then there is a chance that multiple rows can be selected. I need a solution in XAML Thanks in advance! Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This will help other members to find the solution easily.

How can I highlight entire horizontal row span of selcted WPF TreeView item in containng window?

I have created a TreeView inside a UserControl in my project. By default if one selects a TreeViewItem, then the entire row is highlighted but with in the tree, e.g.-----------------------|   + A123            ||      + B123         | |      + ///////        ||   + A234            |----------------------- Where "///////" is highlighted/selected TreeViewItem. What should I do to make the selection/highlighted area to span over entire window horizontally? e.g. ----------------------- |   + A123            | |      + B123         | |/////+//////////////| |   + A234            | -----------------------

Undetected span tag appeared...help

Here's my aspx code.<div id="header"> <h1><% Response.Write(SiteMap.Provider.CurrentNode.Title); %></h1> <div class="crumbs"> <div id="cs_control_534" class="cs_control CS_Element_LinkBar"> <a href="http://www.mysite.com/advancement/">Advancement</a>»<a href="http://mysite.com/books/">Books</a>» <asp:SiteMapPath ID="pathBreadcrumb" runat="server" PathSeparator="»" Font-Size="11px"></asp:SiteMapPath> </div> </div> </div> And here's my CSS "crumbs" class./*---Header----------------------------------------------------*/ #header { padding:0; margin:0; color:#FFF; background-repeat:repeat-x; } #header h1 { margin: 0; font-size: 2.0em; padding: 20px 15px; } .crumbs a { color: #006; padding:5px 5px 5px 5px; } .crumbs { padding:5px 25px 5px 15px; font-size:11px; margin:0; color: #000; background-repeat:repeat-x; } /*---layout specific-twoColumnLeft---------*/ .twoColumnLeft #header { margin:0 0 0 200px; } /*---layout specific-twoColumnRight--------*/ .twoColumnRight #header h1 { padding:0; display:none; height:120px; text

validate date/time span and alow only time input

Hi, I have 2 small questions: 1. How can I  make a filed for input only time without date? 2. I need to make a date/time validation in form like: if(time between begin_date_field  and end_date_field) is not in intersection (time between begin_date_field  and end_date_field) of any item in list) Can I make this validation only using VisualStudio2010 or is there a simpler way? ( I need this for small list for managing reservations of conference rooms )

Issue with Combobox - On selecting Item the combobox border becomes red why?

Hi, I have a combobox. <ComboBox DisplayMemberPath="Name" Name="CB" IsEnabled="{Binding ElementName=RB, Path=IsChecked}"<br/> SelectedValue="{Binding Path=Folders, Mode=TwoWay, UpdateSourceTrigger= PropertyChanged}" /> It has Selected value binding with ObservableCollection as public ObservableCollection<T> _folders; public ObservableCollection<T> Folders { get { return _folders; } set{ _folders = value; }} Combobox's IsEnabled property has binding with a Radio button checked value. PS: I don't have any validation here. The problem I am facing is when I select an Itam from Combobox its border becomes red , I don't understand why this is happening.

How to change background or border brush color of an element while it has template in xaml?

Dear all, I want to change some style property of one element in code behind while that element already had a data template in xaml. as an example this is a code for my window: <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300" Loaded="Window_Loaded"> <Window.Resources> <Style x:Key="ButtonStyle" TargetType="{x:Type Button}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <ControlTemplate.Resources> <Storyboard x:Key="OnMouseEnter1"> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1.1"/> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Story

WPF Border rendering offset when CornerRadius defined

I'm experiencing a strange rendering issue when running WPF based apps on my workstation. The any vertical drawn seems to be offset to the left by 1px. This is especially noticeable on elements that are wrapped by a <Border /> element with it's "CornerRadius" defined. Does anyone have any idea what's going on?   Running: Microsoft Visual Studio 2008Version 9.0.30729.1 SPMicrosoft .NET FrameworkVersion 3.5 SP1BTW this issue IS NOT seen in the designer. Same thing in Blend 3 :

div border issue


 Hiiiiii Coders,

I m using div to display data. Now the width of my div is 800px and also i m displaying bottom border of div to mark the separations between two consecutive divs.

the length of my div's bottom border is same to div's width(800px). But i want that border should be displayed in center of page and it's width should be 400px.

Is it poss?

How can i achieve this?

thanx and regards 

function or query to return continuous span of months $ years as rows in query



I am using SS2008.

There are many situations in which I need to return a table where the rows are EVERY calendar month between two dates, not just the months where there is data present.

Is there a function that would take a beginning and end date mmddyyyy which would do this?

For example if I wanted 1/2004 through 8/2010?




and so on to





Thanks in advance,




Filter DVWP with span tag value



I am trying to filter a DVWP based upon a span tag value. The span tag value is set in a document.ready function. Please show me how to send it the output of a DVWP. I tried to insert it where the $Rows variable is set in the DVWP, but could not do it without errors. Thank you for your help!

jquery - span text changed event


is there a jquery event that is fired when the text of a span element is changed? The change event does not apply to <span> elements. I see reference to "text changed", but $('#PriceCond').bind('textchange', function(event, prevText) { ... }) ; does not work either.



     <input type="button" id="TestButton" value="Test" />

     <span id="PriceCond"></span>

<script type="text/javascript">
  $(document).ready(function ()

    var clickFunc =
          function ()
            var s1 = $('#PriceCond').text();
            $('#PriceCond').text(s1 + 'x');

    var priceChangeFunc =
          function ()
            alert('in priceChangeFunc');





how to apply a css class on html span tag in javascript?



I'm trying to apply a css class on an html span tag in javascript, like below-

$('#company-info').css("class", "help");

But this line of code isn't working!

Can anyone let me know the right way of doing this?



Outside border of a window in Windows 7



I have a defaut window with WindowStyle="None" and in Windows 7 I get a pretty big border - this not happens in XP. How can I get the width of this border?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend