.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

More illusive code (an inline style I can't seem to find)

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :SharePoint
I just *thought* was done. The issue is with the tree view in a document center. So with the help of the IE Developer Tools, I've managed to narrowed it down to an inline style but it doesn't tell me where that inline style resides (unlike everything else listed).  The culprit is a font-size:1em. The code in the source is: <td><img src="/_layouts/images/tvblank.gif" alt="" /></td><td><a href="javascript:_spNavigateHierarchy(this,'TreeViewDataSource','30:ListNode:df253e52-42eb-498a-8fc9-7bfabf220bfb:bbd65828-90c9-4b75-b4a8-ac304d01744e:160e6be3-d556-4fb9-887e-c1204f716aab','\u002fit\u002fPMO\u002fIntranet\u002fDocuments',false,'ListNode')" title="Documents" id="ctl00_PlaceHolderLeftNavBar_WebTreeViewt0i" tabindex="-1"><img src="/_layouts/images/itdl.gif" alt="Documents" style="border-width:0;" /></a></td><td class="ms-navitem ctl00_PlaceHolderLeftNavBar_WebTreeView_2" style="white-space:nowrap;"><a class="ctl00_PlaceHolderLeftNavBar_WebTreeView_0 ms-navitem ctl00_PlaceHolderLeftNavBar_WebTreeView_1" href="javascript:_spNavigateHierarchy(this,'TreeViewDataSource','30:ListNode:df253e52-42eb-498a-8fc9-7bfabf220bfb:bbd65828-90c9-4b75-b4a8-ac304d01744e:160e6be3-d556-4fb9-887e-c1204f716aa

View Complete Post

More Related Resource Links

how to set break point at inline code

I set the element height value by using inline code 
<%# Eval("s") %>
where "s" is the variable declared in page load event. when i run the application it don't set the height. 
Is there any way, i can set break point into .aspx file. i mean how i can check if my Eval("s") get the value.  

Code Reviews: Find and Fix Vulnerabilities Before Your Application Ships


Code defects can be found using many approaches, but manual code reviews stand out in terms of precision and quality. We provide some best practices for planning and executing code reviews on your own team.

M. Chmielewski, N. Clift, S. Fonrobert, and T. Ostwald

MSDN Magazine November 2007

Toolbox: Find Bottlenecks, Code Similarities, and More


This month, find performance and memory bottlenecks, essential security reading, and more.

Scott Mitchell

MSDN Magazine July 2007

Are You in the Know?: Find Out What's New with Code Access Security in the .NET Framework 2.0


Unlike role-based security measures, code access security is not based on user identity. Instead, it is based on the identity of the code that is running, including information such as where the code came from. Here Mike Downen discusses the role of code access security (CAS) in .NET and outlines some key new features and changes in CAS for the .NET Framework 2.0.

Mike Downen

MSDN Magazine November 2005

Where can I find the code of the Twitter or Facebook or WebGrid helpers?


Just in general, where can I find the code to take a look at and learn from them? Or at least look at the functions available to me as I do get the feeling that the insufficient documentation at the moment reveals all.

Calling WCF Services From Silverlight Keeping The Code Inline in VB.NET

Hello,   I have a large amount of code that I'm trying to convert to a Silverlight 4 Application from a VB.NET Win Forms App.  All of the business logic code is written inline calling stored procedures on a database.  There is so much code that it's overhelming to be making asynchronous call after asynchronous call back to the WCF service.  The code is now all over the place since I'm having to chain methods all around after the WCF calls complete.    I don't really need these WCF calls to be done synchronously (since we don't want to block the main UI thread), but is there any good way in VB.NET to keep all the code in-line when calling a WCF service?  Is there some sort of wrapper that can be used to call the WCF methods or another way?  I know some of this is done easier in C#, but I'm having some issues with this being done in VB.NET.   Example In The VB.NET App I'm Converting:   Dim Customer As New Customer   If Customer.CheckIfCustomerExists(10) = True    'Calls the database, checks if Customer #10 exists        'Do Something   Else       Dim CustomerNum As Integer = Customer.InsertNewCustomer("Customer Name")       'Do Something    End If In Silverlight This Woul

Binding a property within a style - in code

So if I had a style as follows <Style TargetType={x:Type Button}> <Setter Property="Background" Value={Binding myproperty} /> </Style> How could I achieve this in code? So far I got Style x = new Style(); Setter a = new Setter(TextBox.Property, new Binding("myproperty")l but there seems to be something wrong with the way I set up the binding, how can I correct it? Thanks

How to Find out Windows service application path from Code ?

Dear frnds, Could you please help me to find out the path of  windows serivce exe ( application path ) from code?   Regards. Sajid P K  

Tryin to Code inline

Hi there...I am sitting with a problem where i have a checkbox inside of a dataGrid. Now when this checkbox is executed it needs to pass its Client ID to the Javascript Function. Now i know when using MasterPages like in this case your ID changes so you have to look at the ClientId. so what i'm trying to do is to use InlineCoding like this...<ItemTemplate >               <asp:CheckBox runat="server" AutoPostBack=false ID="chkReceived" OnClick="javascript:return response('<%= chkReceived.ClientID %>');">             </asp:CheckBox></ItemTemplate>Coding it like this also does not bring up the IntelleSese. That already tells me that there is a problem. So hopefully you can help me?but for some reason when i compile the code it comes out like this.<input id="_ctl0_ContentMain_grdDocApprovals__ctl2_chkReceived" type="checkbox" name="_ctl0:ContentMain:grdDocApprovals:_ctl2:chkReceived" onclick="javascript:return response('&lt;%= chkReceived.ClientID %>');" />Its not passing through the ClientId of the control but rather the Value of '&lt;%= chkReceived.ClientID %>at this stage all the Javascript function does is to

Changing Properties/Attributes of a Webpart in inline code block - Error 'System.Web.UI.WebControl

I'm trying this code below, but gettting error: System.Web.UI.WebControls.WebParts.WebPart' does not contain a definition for 'FilterValue1' I need to change the value of the FilterValue1 properties of a content Query WebPart with title = Applicant Files. Thanks in Advance!
protected override void OnLoad(EventArgs e) {  base.OnLoad(e); SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite SiteCollection = new SPSite("https://somesite/")) { SPWeb myWeb = SiteCollection.OpenWeb(); myWeb.AllowUnsafeUpdates = true; Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager mgr = null; mgr = myWeb.GetLimitedWebPartManager("default.aspx",System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared); foreach (System.Web.UI.WebControls.WebParts.WebPart myWebPart in mgr.WebParts) { if (myWebPart.Title == "Applicant Files") { myWebPart.FilterValue1 = "/13"; mgr.SaveChanges(myWebPart); break; } } } }); }

find control in datalist by javascript(Not by Code Behind CS Page or ItemDatabound)


Hello all,

I am facing a problem with javascript.Following is the scenario:

I am working on survey application......

I have taken a datalist in which the question in survey are bound in a label control

now user can change color of the question using color picker

color picker have a popup which is closed when user selects a color and

the color of question will be updated as popup closes

So i have to find label control(in which i bound questions)

in datalist by javascript only (not by Cs page or by itemdatabound event because of color picker popup i can not use cs page)

and update the color of label selected by color picker

I googled and found following code but it show null value

var lbl = document.getElementById('<%= Page.Master.FindControl("ContentPlaceHolder1").FindControl("dList").FindControl("lblQuestion") %>');

when I saw the page source following id is generated for label

and so on


gridview find invisible row from code behind


hi all,

let me explain completly. I designed an gridview, header template i added one textbox and button if the user enter something on Txtbox and click button then based on input i show corresponding rows only, all other rowss will be hidded using Javascript like below

tblOrders.rows[CurrRow].style.display = 'none';

now im doing something on the Gridview_RowCommand event at this time the gridview got refreshed so that the hiden rows are visible, but i dont want to show the hidden(invisible) rows while rowcommand event fired. so, is there any way to solve this issue?

experts please help me to resolve this...........!

Where to find code samples for Microsoft® SQL Server® 2008 Analysis Services Step by Step



I got this book  Microsoft® SQL Server® 2008 Analysis Services Step by Step by Scott Cameron, Hitachi Consulting from our tech Library , however the companion CD is missing. Can anybody share the CD / practice code examples with me please? The book is only useful if I get to practice the code alongside reading the theory!



How to Find Manager using Visual Studio Code



On Sharepoint Designer (I'm using Sharepoint 2010) I can use "Find Manager" when developing workflow. How to produce similar result using coding in Visual Studio 2010? I read something about User Information List, but cannot found any relation to "manager".

Thanks and Regards,


Find version of DLL from .NET code


Hi All,

How to find version of DLL from .NET code?





Negative Lookbehind assertion to find all the strings from source code of particular pattern

I wrote a regular expression to match all the double quoted strings in the source code but excluding those which are initializers to const declaration.

My expression was 

The first group is const declaration of string type. Second is used to match double quoted strings capable of handling escape sequences.


If i simple run a match using second group, all the strings are matched. But if i use the entire expression, it provides me all the characters between the end double quote of last string and first double quote of next string.

Please help.


keyword search - anyone got code or know where I can find it, tips ?


I need to search some records for one or more keywords ( user entered) and then display them in order of matching i.e. at the top all 3 keywords, at the bottom, just one keyword found.

Before I do this.... has anyone done it before ?

I was going to go through each sql record and search for the words, presume that best way ?

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