Friday, February 27, 2009

ASP.NET AJAX 3.5 Example

`In this example I am Using AJAX to show how you can display data using AJAX.

This will work very fast and you will see there is not page reload is occurring

Create a Web Application and modify Default.aspx html content
I am adding Script manager control and a Update Panel control, Under Update panel control add 2 labels and 2 dropdownlist control and gridview like below

Once Modify Default.aspx, open Default.aspx.cs and modify the Page_Load and add following code.

Now we will add code to fetch the Orders by particular Employee, for that we need write code in DropDownList1_SelectedIndexChanged event, please add following code

Now we will fetch the order details of selected order number for that we need to add the following code in DropDownList2_SelectedIndexChanged event

Now we are ready with over code, just build, run and test

Hope this help you.

Thursday, February 26, 2009

SQL Server Compact 3.5 Sync Services

SQL Server Compact 3.5 Sync Services is introduced in SQL CF 3.5 which is very useful in storing offline data in our application and synchronising the same with server as and when required, previous to SQL CE 3.5 we used do this operation using Merge application however we were not having much flexibility with merge applications.

When you ported your application on any mobile device or compact device which will have limited network connectivity, you can use this SQL Server Compact Sync services to store your data offline in your application and as and when your get the Connectivity you can sync data with server database, this Sync services has all the in-built facilities to Sync your data properly

Wednesday, February 25, 2009

Counting Characters in Word Document Using VB.NET

Following function is used to count the number of character in a Word document, parameters are file name and optional include number of lines also.
















Cheers,
SatishKumar J
Microsoft MVP(ASP.NET)

.NET Developers blog

Hi All,

Welcome to my blog here I will be blogging all about .NET.

Thanks for visiting, visit again.

SatishKumar J
Microsoft Most Valuable Professional (ASP.NET)