Sharepoint 2010 Forum

 
Home » Forum » Sharepoint 2010       Ask a questionRSS Feeds

Issue in husing dataview webpart

  Asked By: Gobinda Phukan         Date: Jan 16, 2011      Category: Sharepoint 2010      Views: 175
 

I need your urgent help. I am working with on a dataview webpart. Expected
functionality is to be able to retrieve the id of the current page, when the
page loads up.

Banging my head aganist the wall at the moment. I would appreciate your help.

Tagged:          

 

3 Answers Found

 
Answer #1       Answered By: Kacy Bright          Answered On: Jan 16, 2011       

If I had to guess, I would say he's looking for the ID for the web part
page that the DVWP resides upon. Presumably for some way to identify active
content with a page library, maybe?

 
Answer #2       Answered By: Amisha Bhansali          Answered On: Jan 16, 2011       

the page id (id column) in the pages library.

 
Answer #3       Answered By: Juana Daugherty          Answered On: Jan 16, 2011       

If you've added a DVWP to a DispForm or EditForm and are looking for the ID of
the list item, it's pretty straightforward:

1. Hover over the DVWP and click the chevron that appears,
2. Click Web Part Parameters,
3. Add a parameter with a source of QueryString and field of ID

Now, you'll have a ParameterBinding and an xsl:param that will provide you with
the ID of the list item.

If you meant something else, either from the URL or elsewhere, reply with more
detail and we can help you figure it out. If you need to post code somewhere,
try SPOverflow or EUSP's Stump the Panel; then post the link back here in the
group.

 
Didn't find what you were looking for? Find more on Issue in husing dataview webpart Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].