Datapager and Gridview

Why datapager with gridview
DataListView already supports datpager in asp.net 3.5 and everything you want you can get from the datalistview. Still why to use datapager with gridview. Gridview doesnot supports datapager bydefault. You have to extend gridview implementing IPageableContainer.
If you are migrating from old asp.net 2.0 to asp.net 3.5 and you have used gridview in [...]


DataPager

What is Datapager:
Datapager is asp.net 3.5 control and can be used as paging navigation with others databound controls in asp.net.
Which controls are supported by Datapager:
Datapager supports following components
1. ListView
2. Any Extended databound controls which implements ipageableitemcontainer.
How to use:
DataPager is an independent control that can be placed anywhere on the page. Set the PagedControlId property of [...]


DataPager PagerTemplate

Datapager example
DataPager is a independent paging control in asp.net 3.5 which can be used with any databound controls which implments  IPageableContainer interface.
DataPager properties:
PageSize : Size of the rows in a sinlge page to be displayed.
QueryStringField: Query string name which is suffied on the url to control paging
PagedControlId: Id of the databound control to which paging has to [...]


How to use skin files on asp.net

Steps to create skin files and use on asp.net
1. Go to solution explorer  and right click on the website node.
2. Choose “Add ASP.NET folder” and click  ”Theme”.
3. You will see new folder under the App_Themes folder. You will place all the files for that theme on this folder.
4. Create skin files and dump all css [...]


Creating Mobile Web Applications

These days more and more people have handheld computers, cellular phones with Internet browsers, or messaging devices of some sort? Mobile computing is becoming more and more popular. Mobile users these days can even purchase goods, pay bills from their mobile phones. Asp.net allows you to create web applications that can run on mobile [...]


Deepload on nettier

Nettier architecture supports deapload feature.
Here how you can deepload data on code behind.

TList<TABLENAME> entities=Data.DataRepository.TABLENAMEProvider.GetByUserId(UserId);
Data.DataRepository.TABLENAMEProvider.DeepLoad(entities, true, Data.DeepLoadType.IncludeChildren, typeof(OBJECTTODEEPLOAD));
grdGridView.DataSource = entities;
grdGridView.DataBind();

Bind the data like this on the aspx page.

<asp:TemplateField HeaderText=”Header info for propery”  >

<ItemTemplate>

<%# Eval(“FKColumnNameSource.PropertyName”) %>

</ItemTemplate>

</asp:TemplateField>


Sending Email

Configure the web.config file

<mailSettings >
<smtp from=”nratdot4prodotcom”>
<network host=”smtp.dot4pro.com” />
</smtp>
</mailSettings>

Send the mail
Create an instance of SmtpClient object and send mail.

MailMessage message = new MailMessage();
message.From = new MailAddress(“senderatdot4pro.com”);
message.To.Add(new MailAddress(“recipient1atdot4pro.com”));
message.To.Add(new MailAddress(“recipient2atdot4pro.com”));
message.To.Add(new MailAddress(“first1atgmaildotcom”));
message.CC.Add(new MailAddress(“sendtoatgmaildotcom”));
message.Subject = “This is my subject”;
message.Body = “This is the body. can be html body”;
SmtpClient client = new SmtpClient();
client.Send(message);

Hope this helps to [...]


DataPager and ListView

Introduction to DataPager:
Datapager is a new control found on asp.net 3.5.   In the asp.net 2.0 Gridview control has built-in its paging functionalities embedded within the control.  Datapager control is a separate control on asp.net 3.5 to implement paging functionalities for asp.net databound controls.    The DataPager class is used to page data [...]


Exploring new features of ListView

List view is a data bound control new on .net framework 3.5.  In addition to display data on various styles it also supports add,edit,delete and paging functionality.
Requirements:

Visual studio 2008 or Visual web developer 2008

Dotnet framework 3.5

In this article you will be exploring the new features of ListView and Data pager controls of asp.net 3.5.

Open the [...]


Effective Caching techniques

Caching is the technique provided within the asp.net framework to optimize the performance of the web applications with less effort and time.
Your application can be optimized upto 80% more faster with only 20% effort for any type of your asp.net application.
What actually does the Caching:
Caching actually stores the frequently used data on the memory so [...]


Share to Facebook Share to Twitter Stumble It Share on Tumblr Digg More...