So far so good, it has been wonderful journey of learning SharePoint. With every end of day I learn something new and wants to share that with my readers. So here I am again showing you one more aspect of SharePoint programming. In my earlier post I had written about, Programming SharePoint Lists, in which I showed all the CRUD operations that can be done on SharePoint List. Here I shall be talking about the document libraries. Well they are also one type of the list , but the vast difference be...
Linq ( Language Integrated Query) provide you command over manipulating data. Using Linq we can write the query expression in code. With the use of Linq we can manipulate any object which is implemented by the IEnumerable T interface, XML, Dataset or relational database....
I recently have done with some tasks on FileSystemWatcher class which is under System.IO namespace. This class is not a new one, but looks very interesting that without any customized service from our side, it's capable of listening to your files system and will report to you regarding any changes happening to your local drives. Another reason why I am publishing this article is that I faced with a cross thread issue during execution. But I tackled that using delegate. This also will be fruitfu...
Cocoa-Touch ships with an super-useful class that will help you search through your lists of objects just like they were coming from a database. The class is called NSPredicate which also works with Core Data. This is very powerful stuff, especially what you are working with data intensive applications....
The FlowLayoutPanel control supports the Anchor and Dock properties in its child controls. To anchor and dock child controls in a FlowLayoutPanel control
1.
Create a FlowLayoutPanel control on your form. 2.
Set the Width of the FlowLayoutPanel control to 300, and set its FlowDirection to TopDown. 3.
Create two Button controls, and place them in the FlowLayoutPanel control. 4.
If you want to create a completely custom control to use on a Windows Form, you should inherit from the Control class. While inheriting from the Control class requires that you perform more planning and implementation, it also provides you with the largest range of options. When inheriting from Control, you inherit the very basic functionality that makes controls work. The functionality inherent in the Control class handles user input through the keyboard and mouse, defines the bounds and size o...
HTML server controls are of two slightly different types. The HTML elements most commonly used in forms are available as individual HTML server controls, such as HtmlInputText, HtmlInputButton, HtmlTable, and so on. These HTML server controls expose their own, control-specific properties that map directly to HTML attributes. However, any HTML element can be converted to a control. In that case, the element becomes an HtmlGenericControl with base class properties such as TagName, Visible, and Inn...
Setting a control's properties defines its appearance and behavior. This topic addresses how to set control properties at design time using Visual Web Developer....
Adding HTML server controls is like adding any HTML element, except that you convert the element to a control so that you can work with it in server code....
#If you are in a visual designer, switch to source-editing view. #Type the element representing the control into the .aspx file. The exact syntax you use depends on the control you are adding, but in general the following applies: * Controls must include the attribute runat="server". * Set the control's ID attribute unless the control is part of a complex control and will be repeated (as in GridView, FormView, DetailsView, Repeater, or DataList controls)....
At times it is more practical to create a control at run time than at design time. For example, imagine a search results page in which you want to display results in a table. Because you do not know how many items will be returned, you want to dynamically generate one table row for each returned item....
Caching a page can dramatically increase the performance of a Web application. However, in some cases you need most of the page to be cached and some fragments within the page to be dynamic. For example, if you create a page of news stories that is entirely static for set periods of time, you can set the entire page to be cached. If you wanted to include a rotating ad banner that changed on every page request, then the part of the page containing the advertisement needs to be dynamic....