Posts

Showing posts from August, 2012

JavaScript Detect Device in ASP.net

JavaScript  Detect Device in ASP.net Simple put the JavaScript in your default page and see the result in your different browser . Redirect Mobile Devices <script type="text/javascript"> <!-- if (screen.width <= 699) { document.location = "mobile.html"; } //--> </script> "mobile.html" would be replaced with the location of wherever your mobile version resides. This technique could be adapted to load an alternate stylesheet as well. For iPhones/iPods Specifically <script language=javascript> <!-- if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {    location.replace("http://localhost/iphone.html"); } --> </script> Enjoy script....

How to Display Page Wise Total Amount & Grand Total Amount in Last page SSRS & RDLC Report

Image
How to   Display  Page Wise Total Amount And  Grand Total Amount in Last page SSRS & RDLC Report Step 1 Go to Project Menu >> Add Page Footer After click on the Add Footer Menu footer automatically add in the report. See Figure 1 Figure 1 Step 2 Add new TextBox for display page wise total and edit expression of TextBox . See Figure 2 Figure 2 Add this expression for page total TextBox =Sum(ReportItems!TotalAmount.Value) Step 3 Add new TextBox for display Grand Total in Last Page of RDLC report and edit expression of TextBox . See  Figure 3 Figure 3 =IIF( Globals.PageNumber =Globals.TotalPages,Sum(Fields!TotalAmount.Value, "DataSet1"),  "") Step 4 Run the application and test the reports Thanks Smruti

Create Job Schedule On Web using ASP.net

Create Job Schedule On Web using ASP.net Step 1 Create Global.asax file in your application. Step 2 Copy below code and paste in Global.asax file . Code  <script runat="server">     void Application_Start(object sender, EventArgs e)      {         System.Timers.Timer timScheduledTask = new System.Timers.Timer();         // Timer interval is set in miliseconds,         // In this case, we'll run a task every minute         timScheduledTask.Interval = 60 * 1000;         timScheduledTask.Enabled = true;         // Add handler for Elapsed event         timScheduledTask.Elapsed +=         new System.Timers. ElapsedEventHandler( timScheduledTask_Elapsed);         timScheduledTask.Stop();         timScheduledTask.Start();                                        }     void timScheduledTask_Elapsed( object sender, System.Timers.ElapsedEventArgs e)     {         // Execute some task         //GoalReminder

Cogons 10.1 Installation and Configuration

Image
Cogons 10.1 Installation and Configuration

What is API ?

What is API ? Abbreviation of application program interface, a set of routines, protocols, and tools for building software applications. A good API makes it easier to develop a program by providing all the building blocks. A programmer then puts the blocks together. Most operating environments, such as MS-Windows, provide an API so that programmers can write applications consistent with the operating environment. Although APIs are designed for programmers, they are ultimately good for users because they guarantee that all programs using a common API will have similar interfaces. This makes it easier for users to learn new programs. Now a day most of organization provide the API for retrieve information from their global database. So social network sites provide the API for retrive friend list,news feed,current activities etc. Example Facebook API,Tweeter API,Linked in API etc. Other organization also provide their API for retrieve valuable data from the global database. Ex -

Programming in Objective-C

Image
Programming in Objective-C In this chapter, we dive right in and show you how to write your first Objective-C program. You won’t work with objects just yet; that’s the topic of the next chapter. We want you to understand the steps involved in keying in a program and compiling and running it. To begin, let’s pick a rather simple example: a program that displays the phrase “Programming is fun!” on your screen. Without further ado, Program 2.1 shows an Objective-C program to accomplish this task. Program 2.1 // First program example #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { @autoreleasepool { NSLog (@"Programming is fun!"); } return 0; } Compiling and Running Programs Before we go into a detailed explanation of this program, we need to cover the steps involved in compiling and running it. You can both compile and run your program using Xcode, or you can use the Clang Objective-C compiler in a Terminal window. Let’s go

Introduction to IBM Cognos Business Intelligence

Introduction to IBM Cognos Business Intelligence Organizations are pressured constantly to understand and react quickly toinformation. With a capable and efficient business intelligence solution, all levelsof an organization can receive information how, when, and where they need it tomake faster and better aligned decisions.Many organizations often satisfy this complexity and these diverse demands witha number of point solutions. With IBM Cognos Business Intelligence (BI)solutions, you can satisfy needs throughout the user community and ensure that everyone can work and collaborate from a consistent set of data. In addition, IT is simplified with fewer components to deploy, manage, and maintain. In this chapter, we introduce IBM Business Analytics and IBM Cognos BI and discuss the following topics: IBM Business Analytics Introduction to IBM Cognos BI 1.1 IBM Business Analytics IBM Business Analytics includes the following products: IBM Cognos BI IBM Financial Perform

Sql Server Database Management.

Image
Today I am going to give you the tips and tricks on Sql Server Database Management. This is a common problem for Database developer when they are working on different database servers connected on a single machine. It is very difficult to identify on which server u r connected or executing on which server. SSMS (Sql Server Management Studio ) gives  gives u the facility to easily identify on which server u r currently working on. Follow the Simple Steps Below..

Create Pivot Table In C#

Image
Step 1 Create Class file as Pivot.cs  and copy the below text and save in your file . using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; /// <summary> /// Pivots the data /// </summary> public class Pivot {     private DataTable _SourceTable = new DataTable();     private IEnumerable<DataRow> _Source = new List<DataRow>(); public Pivot(DataTable SourceTable) {         _SourceTable = SourceTable;         _Source = SourceTable.Rows.Cast<DataRow>(); }     /// <summary>     /// Pivots the DataTable based on provided RowField, DataField, Aggregate Function and ColumnFields.//     /// </summary>     /// <param name="rowField">The column name of the Source Table which you want to spread into rows</param>     /// <param name="dataField">The column name of the Source Table which you want to spread into Data Part</param>    

Get Pay Pal ID Token Step By Step

1. Click the My Account tab. 2. Click Profile at the top of the page. 3. On the right under Selling Preferences click on Website Payment Preferences. 4. Under Auto Return for Website Payments click "on" 5. After Return URL put http://masterindotnet.blogspot.in/ 6. Under Payment Data Transfer (Optional) click "on" 7. Scroll to the bottom of the page and click Save. 8. Copy the Identity Token (everything after the word "Token:" in the new window), and paste it into your Mall PayPal Information.