Geeks With Blogs
Md. Rakibul Alam Tanvi
I have two SPList Customer(Columns: “Title”, “MobileNo”) and Order(Columns: “Title”, “CustomerName” Lookup with customer Title). And I write following code. . SPList cList = spWeb.Lists.TryGetList("Cus... SPList oList = spWeb.Lists.TryGetList("Ord... DataTable cTable = cList.Items.GetDataTable(); DataTable oTable = oList.Items.GetDataTable(); ......

Create a list name “HitCounterList” (add ListItem: Url,VistedDate,User,ClientIP) in your site and apply following code in page load. SPSecurity.RunWithElevatedP... { SPWeb spWeb = SPContext.Current.Site.Root... if (spWeb.CurrentUser != null) { spWeb.AllowUnsafeUpdates = true; hitCounterList = myWeb.Lists.TryGetList(“Hit... ......

1. Bind data from SharePoint list to data grid. 2. Add a button in template field of data grid <asp:GridView ID="gvFeedBack" runat="server" Width="100%" AutoGenerateColumns="False" EnableModelValidation="True" Font-Names="Axiata Book" Font-Size="11px" ShowFooter="True"> <Columns> <asp:BoundField DataField="ID" HeaderText="ID" /> <asp:BoundField ......

I have an Event Receiver that sends an email when an item is updated to a listpublic override void ItemUpdated(SPItemEventProp... properties) { base.ItemUpdated(properties); string subject = string.Empty; string from = string.Empty; string to = string.Empty; string bodyText = string.Empty; string cc = string.Empty; if (properties.ListTitle != "Feedback") ......

To hide "Recently Modified" from Quick Launch find the place holder "PlaceHolderLeftActions" from your master page and make Visible false.<asp:ContentPlaceH... id="PlaceHolderLeftActions" runat="server" Visible="false"> </asp:ContentPlaceHolder... ......

Open your master page (v4 or custom master) with SharePoint Designer. Add following css class in your (Also can apply in custom css file) .s4-specialNavLinkList{disp... !important;} ......

Most of case we use CAML Query in sharepoint to filter splist data for custom development. But some time it’s difficult to filter list data using CAML query. So, we can use LINQ in our development practice. SPWeb spWeb = new SPSite(SPContext.Current.We... //Get list SPList list = spWeb.Lists.TryGetList("MyL... //Apply linq in list item ......

Copyright © Md. Rakibul Alam Tanvi | Powered by: GeeksWithBlogs.net