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


Post New Web Links

Weird behaviour of XSLT webpart

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :SharePoint
 

Hello,

I've setup an XSLT list view webpart to show data from an external list. I needed to set it up programmatically, so I also provided a link to a XSL file hosted on the same server.

In that XSL, I've provided a custom link to an entity action. Now the weird thing is: when I paste in the XSL between <Xsl></Xsl> in the web part page; that link works. When the exact same XSL is loaded from the hosted version though, SharePoint seems to replace the link by a default "show item" action.

What's causing this and how can I prevent it from doing this???


MCTS in Web Application Development in .NET 2.0


View Complete Post


More Related Resource Links

xslt in dataview webpart

  
Hi, Can anybody tell me plz , the difference between <xsl:param  ........./>,<xsl:with-param  ........./>,<xsl:variable........./>? I feel both param and variable are same   Thanks

Cannot access parent site list from subsite in XSLt List View webpart in sharepoint designer 2010

  
Hi    We are using sharepoint 2010  for internet facing sites for our big client in healthcare domain .  I am using XSLT list view webpart in sharepoint designer 2010 for retrieving contents from sharepoint list & displaying it by using XSLT List view webpart in publishing sites. We are having lot of list in rootsite collection, If i am creating pages by using XSLt list view webpart in root site collection I can access the list,View and Display in Pages by XSLT List view webpart. Now the requirement is i have to access the list in roosite collection(parent site) from subsites.  In Sharepoint designer 2010, while i am inserting XSLT list view webpart, i could not find datasource to access the list that exist in rootsite collection(Parent site) from subsite. Below is the the code i am using for accessing the list& view from parent site & creating the pages in parent site by using xslt list view webpart,now i wants to access parent site list from subsite by using XSLT list view webpat in subsite pages.  Pls let me know what i have to change in the code level <WebPartPages:XsltListViewWebPart runat="server" Description="The list for the conditions details" ListDisplayName="" PartOrder="2" Default="FALSE" HelpLink="" AllowRemove="True" IsVisible="True" All

How to get the webpart title in XSLT list view webpart

  
Hi, How to get the Webpart Title or ID in XSLT on list based webpart. I saw the couple of articles getting the Title and ID in CQWP. But my scenario is XSLT list view webpart. Thanks in advance Regards, Madhu

Cannot access parent site list from subsite in XSLt List View webpart in sharepoint designer 2010

  
Hi    We are using sharepoint 2010  for internet facing sites for our big client in healthcare domain .  I am using XSLT list view webpart in sharepoint designer 2010 for retrieving contents from sharepoint list & displaying it by using XSLT List view webpart in publishing sites. We are having lot of list in rootsite collection, If i am creating pages by using XSLt list view webpart in root site collection I can access the list,View and Display in Pages by XSLT List view webpart. Now the requirement is i have to access the list in roosite collection(parent site) from subsites.  In Sharepoint designer 2010, while i am inserting XSLT list view webpart, i could not find datasource to access the list that exist in rootsite collection(Parent site) from subsite. Below is the the code i am using for accessing the list& view from parent site & creating the pages in parent site by using xslt list view webpart,now i wants to access parent site list from subsite by using XSLT list view webpat in subsite pages.  Pls let me know what i have to change in the code level <WebPartPages:XsltListViewWebPart runat="server" Description="The list for the conditions details" ListDisplayName="" PartOrder="2" Default="FALSE" HelpLink="" AllowRemove="True" IsVisible="True" All

Support paging in custom xslt and apply it to Listview webpart

  
Hi Gurus, I have a listview webpart. I want to apply a custom xslt to it. I am able to apply a custom xslt to the listview webpart, however I am not able to find a xslt code to support "paging" in the xslt for the webpart. Please bail me out. Thanks in Advance Regards, Bokes

Weird behaviour of Gridview with textbox with autopostback OnTextChanged and AJAX CalendarExtender

  
I ran in to some strange behaviour of Gridview with textbox with autopostback OnTextChanged and AJAX CalendarExtender. This gridview is in an updatepanel with scriptmanager. When my gridview is filled with data, it keeps running my OnTextChanged  function and therefor makes my application terribly slow. I need to have the autopostback and ontextchanged function to recalculate stuff in my gridview. Does anybody know of this problem and if so does anybody found a workarround ?

Really weird MessageBox behaviour

  
I encountered some really weird behaviour with a MessageBox. As mine was a big complex app I thought it could be some complex problem, so I created a really simple app to test the problem, and it is still there. I really do not unstand this behaviour...can anybody explain it to me!

The simple app that demonstrates the problem is shown below. It is just an empty form with a single timer. The timer event handler invokes a message box. Now I would expect the message box to have modal behaviour, and thus block any further event callbacks until the dialog is closed. But it didn't, each time the handler is called, a new MessageBox was shown...that's why I added the if(TimerTicks<5) condition ;-)

So at that point I assumed that MessageBox is behaving in a non modal manner for some reason, creating new instances without waiting for button press before returning, and set a breakpoint following the show call to test this (i.e. a breakpoint on 'object foo=res').

What I found was that this line gets called **after** a dilaog button is pressed, despite the fact that the timer event handler continues to be called at each interval timeout. Whatsmore it gets called every time a dialog is closed, independently from the regular execution of the handler.

The only way

Deploying XSLT list view webpart

  

Hi All,

 

I have developed a XSLT list view web part and want to move it "Test and Beta".

Can someone help me on how can I deploy the XSLT list view web part along with the list.

 

Thanks

Julie


Cannot access parent site list from subsite using XSLt List View webpart in sharepoint designer 201

  

Hi
   We are using sharepoint 2010  for internet facing sites for our big client in healthcare domain .  I am using XSLT list view webpart in sharepoint designer 2010 for retrieving contents from sharepoint list & displaying it by using XSLT List view webpart in publishing sites.

We are having lot of list in rootsite collection, If i am creating pages by using XSLt list view webpart in root site collection I can access the list,View and Display in Pages by XSLT List view webpart.


Now the requirement is i have to access the list in roosite collection(parent site) from subsites.  In Sharepoint designer 2010, while i am inserting XSLT list view webpart, i could not find datasource to access the list that exist in rootsite collection(Parent site) from subsite.

Below is the the code i am using for accessing the list& view from parent site & creating the pages in parent site by using xslt list view webpart,now i wants to access parent site list from subsite by using XSLT list view webpat in subsite pages. 

Pls let me know what i have to change in the code level


<WebPartPages:XsltListViewWebPart runat="server" Description="The list for the conditions details" ListDisplayName="" PartOrder="2" Default="FALSE" HelpLink="" AllowR

Display rating control in xslt list view webpart without table header

  

Hi,

In the same code, pasted above if I want to display rating control using xslt list view webpart what I need to write.

I have created few xslt list view webparts for my site but I am not able to display rating control using xslt. I am writing something like this

<xsl:apply-templates select="$Fields[@Name='AverageRating']" mode="PrintField">
              <xsl:with-param name="thisNode" select="."/>
              <xsl:with-param name="Position" select="$Position"/>
            </xsl:apply-templates>

But for this I think i need to include some parameter or any particular template. Using the above type of code in xslt this is not working. I do not want to display table header row. Please guide me on this.


-Prashant

Strange behaviour taxonomy filter in content query webpart on anonymous website

  

We are experiencing strange behaviour on a publishing facing website implemented in SharePoint 2010.

The story
We use a (default) Content Query Webpart to show related information in relation with the current page. The filter is using a field value (UserFieldValue) of the current page and filters other pages which have the same tags. The fields, on the current page and the related pages, are taxonomy field. Everything works fine!

We published the pages, looked at the website as an anonymous user and everything was still going smoothly. We went home, slepts an hour of 6, waked up. Proudly checked our beatifull new website :). Ahhhhh, what is this.. all content query webpart with the filters on the taxonomy field returned exactly nil.

We logged in to our website, checked if the pages where published, and well, they are... Just published them again. And everything looked fine again.... but not for long. Exactly the next day (... app pool recycle ...) the same problem ...

Logged in again to our website, logged out...  problem solved.... till the next apppool recycle.

My conclusion
Until the firrst authenticated visit to the page the taxonomy filter on the content query webpart silenty fails.

Resolution
As a "temporary" workarround we have created a sc

Unable to retain Global XSLT parameter value on Listview webpart when paging

  

Hi,

Hi Gurus,

 

We are working on SharePoint 2010.

 

We implemented Pagination for a listview webpart, on which our custom xslt is applied. We achieved it by applying a pagination xslt to the webpart.

 

However, we want to filter the listitems appearing in the listview webpart using a pagesfilter webpart(our custom developed webpart for filtering values from the list) on the same page.

We enabled the “Enable Asynchronous Update” property of the listview webpart for pagination.

 

Bug/weird behaviour in HttpWebRequest corner case

  
If a response to a HttpWebRequest is "HTTP/1.1 204 No Content" AND (breaking the
standard) content is served, there will be no error. The next HttpWebRequest, 
provided it goes to the very same server will throw a 
"The server committed a protocol violation. Section=ResponseStatusLine"-exception
even though the request and response is valid.

This is not the case if the response is "HTTP/1.0" instead of "HTTP/1.1" and will
of course not happen if no content is provided.

It is my opinion that if an excpetion should be thrown, it should be done during the first response.


Here is an example (the first url-response is flaky, the second one is good, yet the second one failes):

static void Main(string[] args)
        {
            WebRequest.Create("http://static.hsorbo.no/messupnet.php").GetResponse().Close();
            WebRequest.Create("http://static.hsorbo.no/idamips.png").GetResponse().Close();
        }



Line Break Problem in XSLT

  

Hi All,

I want to add line break in the xslt but it not working.

Below is the code for adding the line break.

</P> <P>
&lt;xsl:variable name="Collection7"&gt;</P> <P>&nbsp; &lt;xsl:value-of select="$13932"/&gt;&lt;xsl:text&gt;&amp;#xa;&lt;/xsl:text&gt;</P> <P>&nbsp; &lt;xsl:value-of select="$31042"/&gt;&lt;xsl:text&gt;&amp;#xa;&lt;/xsl:text&gt;</P> <P>&lt;/xsl:variable&gt;</P> <P>&lt;td&gt;&lt;xsl:value-of select="$Collection7"/&gt;&lt;/td&gt; </P> <P>&lt;/code]</P> <P>I have tried the below code as well:</P> <P>&lt;xsl:variable name="newline"&gt;
&lt;xsl:text&gt;
&lt;/xsl:text&gt;
&lt;/xsl:variable&gt;</P> <P>or</P> <P>&lt;xsl:variable name="break"&gt;&amp;lt;br&amp;gt;&lt;/xsl:variable&gt;</P> <P>or </P> <P>addign &lt;br/&gt;</P> <P>then also it not adding the line break.</P> <P>But If I write code like below then it is adding the line break and it works fine.</P> <P>

active directory exception unusual behaviour

  

Hi 
i have a small problem
i want user names from active directory for an auto completer type of service
the method is always throwing an exception 
-------
"searcher.FindAll()' threw an exception of type 'System.DirectoryServices.DirectoryServicesCOMException' System.DirectoryServices.SearchResultCollection 
Categories: 
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