kamagra how much to take

SPListItem.URL Funky Return Fiesta

Man, I have never seen this before, but doing a simple SPListItem.URL and returning the URL returns a funky ass value. It looks like hex or some crap, like this:

http://localhost/lists/MyList/6_.000

What the hell is that? Shouldn’t the SPListItem.Url property return the actual URL to the item?

To get around this, you have to tailor your code a little bit differently.

  1. SPList list = site.Lists.GetList("MyList");
  2.  
  3. SPListItem item = list.Items[id];
  4.  
  5. list.Forms[PAGETYPE.PAGE_DISPLAYFORM].Url + "?ID=" + item.ID

Now you will actual retrieve the correct path to the DispForm.aspx page.

Wierd, eh? :)

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>