Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Dataview Source link

  Asked By: Alisha    Date: Nov 07    Category: Sharepoint    Views: 1661

I have a dataview webpart, when a user clicks on a link then an item opens.
When the user closes the current item the user goes back to the library of the
item. Therefore I want to add the source to the page with the webpart, like


Everything works fine until you import the dataview webpart to another page in
the site(because the source link is not dynamic). So what i want is to make a
dynamic source URL so i can use the webpart in all pages without changing the
webpart everytime.

Is this possible? And how?



6 Answers Found

Answer #1    Answered By: Yahaira Shannon     Answered On: Nov 07

There's a few different ways that come to mind:

1) Use jscript to pull the browser URL and programmatically
generate the URL

2) Make the URL a parameter to the Data View so that it can be
easily changed in the web part properties

Answer #2    Answered By: Doris Leach     Answered On: Nov 07

A generic and reusable solution would be to make a page  that takes care of
pass this page itemid, listid and siteid in a query string and let it make the

Answer #3    Answered By: Sumitra 2004     Answered On: Nov 07

Ok, i think option 2 will be the best option for me.

I never worked with parameters in a dataview. Which kind of parameter do i need?
And how do i call an parameter ( For example $parameter?).

Answer #4    Answered By: Bhairavi Damle     Answered On: Nov 07

I think option 2 will work for me.

I never worked with parameters in a dataview. Which kind of parameter do i need
to use and how do i call the parameter in the dataview? (for example

Answer #5    Answered By: Leeann Hull     Answered On: Nov 07

There's a section on setting up and using parameters at

Answer #6    Answered By: Vaasu Radhakrishna     Answered On: Nov 07

I solved my problem!

I used an server variable "URL" and set it in my source  url:

Didn't find what you were looking for? Find more on Dataview Source link Or get search suggestion and latest updates.