.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

Undetected span tag appeared...help

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :ASP.Net
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

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

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?

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            | -----------------------

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 )

"Server Application Unavailable" message appeared?

Hi there,I visited the admin area of my web application this morning and a message appeared saying "Server Application Unavailable" and that I needed to check the event log for more information.I was just wondering if there was any reason this might have appeared? I solved it by restarting the application pool but I can't figure out why this appeared.Thanks.

What to do if particular site definition should be appeared at particular subsite level only?


What to do if particular site definition should  be  appeared at  particular subsite level only?


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?



How to put a border around SPAN


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?

asp:LoginStatus control with nested ?



Is it possible to place a nested span inside

an <asp:LoginStatus /> control? 

So instead of just...

<a id="LoginStatus1" href="javascript:__doPostBack('LoginStatus1$ctl00','')">

you would have...

<a id="LoginStatus1" href="javascript:__doPostBack('LoginStatus1$ctl00','')">
<span class="myCustomSpan">Logout</span></a>

asp:button with a span in it.


I would like to have this:

Is this something than could be done through custom control?

<asp:button runat="server"><span></span></asp:button>

I am thinking that <asp:button runat="server" span="something"> is possible with custom control, but not what I want. Help is appreciated how to do this. Thanks.

How to query SSAS cube based on a time span?



sorry, I'm new to SSAS. something i couldn't figure out, plase help me.

I have a fact table: Log   and a dimision table: Time

in the Time table, all the record are in date format detailed to hour. such as 2010-06-01 23:00:00

and in the log table, each log record has a time column.

Now I want to query based on two time parameters other program passed me.

e.g. , I want to know how many log records between 2010-01-01 02:00:00 and 2010-10-27 12:00:00.

but when i do the query, the problem is on the time spot '2010-01-01 02:00:00', maybe no log record avaliable.

so the query return nothing! The following is my query.

select NON EMPTY{[Log].[Subject].children} on 1,
NON EMPTY{[Measures].[Quantity]} on 0
 ( SELECT ( STRTOMEMBER('[Time].[Date].&[2010-05-01T23:00:00]') : STRTOMEMBER('[Time].[Date].&[2010-05-24T23:00:00]') ) on 0
   from [Db TMIC])

if Time.Date has no member of 2010-05-05 23:00:00, I got nothing!


I also tried use filter to get the nearest value, but still don't work.

select {[Measures].[Quantity]} on 0,

Filter([Time].[Date], [Time].[Date].CurrentMember < '2010-05-05T23:00:00') on 1
from [Db TMIC]


Can any one help how to solve the problem? To query based on two time values.

Tablix On Multiple Pages not span across pages equaly


I have a reports with some controls on top of the page and then a tablix, if I have 10 rows or more, whole tablix repeated and span across pages but row can be span across two pages (end of one and begining of another) 
How can I span this tablix on multiple pages without any row expanded across two adjacent pages

checkboxlist item renders as when the item is disabled


Hi All,

I spent about whole day today try to fix this bloody problem, this is my scenario:

I am having a checkboxlist control (dont ask me why use this control coz i am just fixing the other ppl's issue), the items in the checkboxlist are loaded from the header of a gridview, one of the items in the checkboxlist needs to be disabled, and once a button been clicked on the page, an ajax modal popup extender opens up and the checkboxlist item will appear there with one or more items need to be disabled.

Note: I do use master page and content page on my web application.

It all works as expected, but as most of you knew, this approach is not w3c validated since w3c doesn't allow this <span disabled = "disabled">, and w3c compliance is one of my requrement.

to my best knowledge, i googled and tried nearly everything i can find but still without any luck.

and this is the code in the Page_Load event and i believe might work but need to be tweaked:


            string jsName = "DisableScript";
            Type jsType = this.GetType();
            ClientScriptManager csm = Page.ClientScript;
            if (!csm.IsStartupScriptRegistered(jsType, jsName))
                StringBuilder sb = new StringBuilder();
                sb.Append("<script type=text
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