In Android we can use HTTP POST request with org.apache.http.client.HttpClient to post data to a URL. This sample project illustrate how we can post data to a URL and get the response.package com.sencide;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.util.ArrayList;import java.util.List;import org.apache.http.Htt
This tutorial explains how we can create simple Web Services using Visual Studio 2008 or Visual Studio 2010.If you are interested in creating web services in java, please follow my postCreate Web Service in Java Using Apache Axis2 and Eclipse1. Create the Web ServiceFirst create new project and select "New ASP.NET Web Service Application" and I'm giving the name "MyFirstWebService" ...
In this post I'm going to illustrate how we can access web service in Android using ksoap2-android project that provides a lightweight and efficient SOAP library for the Android platform.You can download the jar file from following link;http://ksoap2-android.googlecode.com/svn/m2-repo/com/google/code/ksoap2-android/ksoap2-android-assembly/2.5.8/ksoap2-android-assembly-2.5.8-jar-with-dependencies.jarHere is the sample code that illustrate SOAP web service call. I have access a live web service ConvertWeight
You may know that, JQuery is a JavaScript library that we can do smart things using small pease of code. This free and open source JavaScript Library has become the most famous JavaScript Library today because of its Lightweight, Cross-browser and CSS3 Compliant. Using JQuery we can do thing like Document Navigating, DOM Element Selecting, Creating Animations, Event Handling and ...
Microsoft SQL Server Management Studio provides integrated environment for accessing, configuring, managing, administering and developing all components of SQL Server. There you can see two authentication modes called "Windows Authentication" and "SQL Server Authentication". The Windows authentication mode only allows you to login/connect to SQL Server with Windows authentication.If you install the
I was able to add a nice multilevel dropdown menu to my blog. In this post I’m going to discuss how you also can add it to your blogger blog. Here I’m using pure CSS multilevel menu generated by Free CSS Drop Down Menu Generator.You can’t use the code directly in blogger without some modifications; I’ll describe ...
This tutorial discuss how you can enable (Internet Information Service) IIS in Windows 7 or Windows Vista. I have provided screen-shots so that you can easily understand.First go to control panel and select Programs.Then select Turn Windows features on or off.Then select Internet Information
Search Engine Optimization (SEO) TechniquesIf you search the above topic, in many articles you will see the same things like content is king, write unique content, get more back links etc. I was able to get significant traffic in to my blog within a 3, 4 weeks after starting it, because I used something really different than what you saw ...
In this post I’m going to describe about a practical use of my previous article JQuery AJAX. Here I’m going to discuss how to validate a form and how to add auto suggests to a form using JQuery and PHP.
Using Microsoft Office SharePoint Designer 2007, you can design workflows without writing custom code. Microsoft has provided an article on Create a Workflow which helps you to get started by explaining some key design considerations and providing a basic procedure, but the problem is there are only few limited actions available in SharePoint Designer 2007 to develop your custom workflows ...
Dependency Injection allows us to inject objects into a class, instead of constructing them internally. Unity is a dependency injection container that we can use for constructor, property, and method call injections. You can get good idea about dependency injection by reading answers to this stack-overflow question. This tutorial is an step-by-step guide with screen-shots where you can learn how ...
In this post I’m going to show you how to embed a picture to body of the message in Gmail without attaching. To get this work done you have to enable Image Inserting in Google Labs. Let’s see how we can enable this.First log in to your account and go to Settings as following picture;Then go to ...
In one of my previous post I discussed about Creating Android Databases. In this tutorial I’ll discuss simple way to create Android UI using Eclipse and DroidDraw tool which support drag-and-drop of widgets like buttons, labels, text boxes, etc. Displaying the user interface is done by Activity, the fundamental unit of an Android application. The setContentView() method of the Activity ...
In this post, I’ going to discuss how we can retrieve data from a SharePoint List using its Web Services. First to know about SharePoint Web Services please refer this. We can user List Web Service which provides methods for working with SharePoint Lists, Content Types, List Items, and Files to read a List. Here we are going to use ...
Let’s see how we can programmatically add a user to existing SharePoint user group . You can use the following method which has two string parameters, one for group name and other for user login name for get the above task done. public void addUserToGroup(string groupName, string userLoginName){ string strUrl = "http://mysite:5050/"; using (SPSite site = new SPSite(strUrl)) { using ...
In my previous posts on "Working With SharePoint List" I have discussed how we can Read, Add and Update SharePoint List. If you have to add new Item to a list which has lookup column, you have to follow a different procedure.If you look at the following figure, you can easily understand what I'm going to do. I'm going to ...
In one of my previous article I discussed how to create a SharePoint list programmatically in C#. There I didn’t discuss how we can add lookup field for our newly created list. Let’s see how, this is a sample code. public void createList() { // choose your site SPSite site = new SPSite("http://merdev-moss:5050"); SPWeb web = site.OpenWeb(); SPListCollection lists = ...
In this article I’m going to discuss how we can create a SharePoint list programmatically in c# and how we can add columns to the created list. Actually this is very simple task; this is a sample code. public void createList() { // choose your site SPSite site = new SPSite("http://merdev-moss:5050"); SPWeb web = site.OpenWeb(); SPListCollection lists = web.Lists; // ...
In my previous article I discussed about how to create user interfaces in Android. Here I’m going to show you how you can add event handler to that UI. To do that, first add these two lines between package and class declaration.import android.view.View;import android.widget.Button;Now replace your onCreate method using following code.import android.view.View;import android.widget.Button;public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.testview); B
This code sample will illustrate how we can create Excel file from a data table in c#.You will need to add DocumentFormat.OpenXml and WindowsBase dll to make it work.private static void WriteExcelFile(string outputPath, DataTable table){ using (SpreadsheetDocument document = SpreadsheetDocument.Create(fileToGenerate, SpreadsheetDocumentType.Workbook)) { WorkbookPart workbookPart = document.AddWorkbookPart(); workbookPart.Workbook = new Workbook(); WorksheetPart worksheetPart = workbookPart.AddNewPart<Wor