Month: September 2011

Posted in Android Uncategorized

Alert Box in Android

protected void alertbox(String title, String mymessage) { new AlertDialog.Builder(this) .setMessage(mymessage) .setTitle(title) .setCancelable(true) .setNeutralButton(android.R.string.cancel, new DialogInterface.OnClickListener() { public…

Posted in Android Uncategorized

How to parse json string object in Android

First of all you have understand what is jsonObject and jsonObjectArray. ex. of jsonObject { “Validate”: “true”…

Posted in JavaScript Uncategorized

learn jquery

Posted in Android Uncategorized

Consume webservice in Android app

First of all give internet permission to app for that below steps. 1. Open “AndroidManifest.xml” file. 2….

Posted in Asp.Net Uncategorized

clear previous history in every textbox

Its a problem recently I am facing in my recent project. So my client told me you…

Posted in Crystal Report Uncategorized

Dynamically Add Header in Crystal Report

string amount = amountTextBox.Text; string titleString = ” Total Sanctions above “; List investmentList = new List();…

Posted in SQL Server Uncategorized

Get Last Day Of Month

—-Last Day of Previous Month SELECT DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE()),0)) LastDay_PreviousMonth —-Last Day of Current Month SELECT DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE())+1,0))…

Posted in SQL Server Uncategorized

Email From SQL in HTML format

declare @body1 nvarchar(MAX) set @body1 = N’ :: Report(1-06-2011 To 30-06-2011) :: ‘ + N’ First Name…

Posted in SQL Server Uncategorized

Use Uniqueidentifier in dynamic SQL in SQL Server 2008/2005

We used to use uniqueidentifier so many times in our database, since it is one of the…