Sunday, September 23, 2012
Wednesday, August 15, 2012
Quotes
Notes:
People cry, not because they’re weak. It’s because they’ve
been strong for too long.
If
you don’t believe in miracles perhaps you’ve forgotten you are one
Always
remember you are braver than you believe stronger than you seen smarter than
you think and twice as beautiful as you’re ever imagined.
All a girl wants is for one guy to
prove to her that they are not all the same.
Apologizing does not always
mean you are wrong, it just means that your value your relationships
more than your ego.
I think I need a hug
Don’t take people
for granted. No matter how much
they love you, people get tired eventually.
The best gift you could ever
give someone is your time because you’re
giving them something
that you’ll never get back.
What doesn’t kill you, makes you
stronger.
If someone
wants to be a part of your life, they’ll make an
effort to be in it. So don’t bother reserving a
space in your heart for someone
who doesn’t make an effort to stay.
Tuesday, August 14, 2012
Webpart vs. Visual Webpart in SharePoint 2010
Using Visual Web Parts vs. Traditional Web Parts in SharePoint 2010
Learn about the advantages of using Visual Web Parts and traditional Web Parts in SharePoint
Read and Display SharePoint List Data in Gridview Control
I have developed a custom web part which reads data from SharePoint List and display in a GridView control by Visual Studio 2010.
In this scenario, I have a list name "Employee" with 4 collumns named
Title, Birthday, Male, Position.
Add the following code to the .ascx file
ID="grid" runat="server" AutoGenerateColumns="false">
Add the following code to the .ascx file
Add the following code to the .cs file:
protected void Page_Load(object sender, EventArgs e)
{
SPWeb web = SPContext.Current.Web;
SPList list = web.Lists["Employee"];
SPListItemCollection items = list.Items;
grid.DataSource = items.GetDataTable();
grid.DataBind();
}
Add the web part to the Sharepoint page, we have the following result
Hope this helps!
Monday, August 13, 2012
Subscribe to:
Posts (Atom)