With URL rewriting, you can create search engine friendly URL's such as /products/cars/bmw.aspx. To accomplish this url to transform to products.aspx?category=cars&type=bmw, you need URL rewriting. There is an easy open source rewriter, which you can find
here.
Have fun!
f8a0518d-b65b-423c-9e84-fa2351210951|0|.0
The AssetUrlSelector provides a nice browse button which make's yout Sharepoint live a little easier. With this button you can browse to the pages or images in Sharepoint. The code which creates this button is not so hard. First you need to reference the correct assembly:
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
Next, you can use the AssetSelector in the code, note the clientID which is not the asp.net ID but the ID as it appears in the html:
<asp:TextBox runat="server" ID="txtUrl" Width="250px" />
<SharePoint:AssetUrlSelector runat="server" ID="assetSelector" AssetUrlClientID="ctl00$PlaceHolderMain$LinkManagementControl$txtUrl" AssetUrlTextBoxVisible="false" />
Have fun!
c8ea30bc-e9d7-466f-913b-34d30d1762db|4|3.0
It's an easy job to perform simple database actions with LINQ 2 SQL. You need to create a DBML object of your database and the rest is peanuts:
Update a single item in the database:
int recordId = xx;
string recordProperty = "test";
using (DatabaseDataContext db = new DatabaseDataContext())
{
DatabaseItem item = db.DatabaseItems.Single(n => n.Id == recordId);
item.Property = recordProperty;
db.SubmitChanges();
}
Delete a single item from the database:
int recordId = xx;
using (DatabaseDataContext db = new DatabaseDataContext())
{
DatabaseItem item = db.DatabaseItems.Single(n => n.Id == recordId);
db.NavigationItems.DeleteOnSubmit(item);
db.SubmitChanges();
}
a0c3dae8-fb34-4be9-a315-3f925f5cc5e7|0|.0
If you want to retrieve an SPListItem and all you have is the unique identifier, there a great blog article about this. You can find it
here.
a14dd66c-c760-4095-92a8-f0f63d5130b7|0|.0