Friday, May 18, 2012

SOA documentation/downloads and samples

 Here is the link from which you can download, look at the official documentation as well as really good sample code and demos. This is a good starting point.



Thursday, May 17, 2012

Adding Maps Using the Maps Helper

Web Pages 2 includes additions to the ASP.NET Web Helpers Library, which is a package of add-ins for a Web Pages site. One of these is a mapping component provided by the Microsoft.Web.Helpers.Maps class. You can use the Maps class to generate maps based either on an address or on a set of longitude and latitude coordinates. The Maps class lets you call directly into popular map engines including Bing, Google, MapQuest, and Yahoo.

To use the new Maps class in your website, you must first install the version 2 of the Web Helpers Library. To do this, go to the instructions for installing the currently released version of the ASP.NET Web Helpers Library and install version 2.



http://www.asp.net/web-pages/overview/what's-new/top-features-in-web-pages-2#maphelper

Tuesday, May 15, 2012

LDAP Authentication in ASP.Net c#

in config file ..
  <authentication mode="Forms">
              <forms loginUrl="~/Account/LogOn" timeout="10"/>
        </authentication>                  



in code behind

 public  ValidateUser(string user, string pass)
        {
            bool validation;
            try
            {
                LdapConnection ldc = new LdapConnection(new LdapDirectoryIdentifier((string)null, false, false));
                NetworkCredential ncon = new NetworkCredential(user, pass, "DOMAINNAME");
                ldc.Credential = ncon;
                ldc.AuthType = AuthType.Negotiate;
                ldc.Bind(ncon); 
                validation = true;
            }
            catch (LdapException)
            {
                validation = false;
            }
            return validation;
        }

Friday, May 11, 2012

JD Edwards Defining a Hot Key in Your Application

To define a hot key, insert an ampersand before the letter that you want to set as the hot key in the Title property for the button that will have the hot key. You can set the definition from either the properties dialog or from the properties panel. The letter you define is then underlined in your application. Hot keys are governed by these rules:

  • You can define only one hot key for a button.

  • You cannot use the same hot key on more than one button in the same form or subform.

  • You cannot use a reserved hot key (any that is not in the list of application-defined hot keys).

  • You cannot insert more than one ampersand in the same button title.

  • You must check the Hot Key property for an exit definition only. Hot keys are enabled by default for push buttons.

    http://docs.oracle.com/cd/E17984_01/doc.898/e14706/hot_keys.htm#EOTFD00256

jd edwards Grid Control Events

To add columns to a grid control:
  1. Perform one of these tasks:
    • To add a data item to the grid from the BV associated with the form, double-click a data item in the Business View Columns Browser.
    • To add a data item to the grid that is not in the BV associated with the form, search for a data item in the Data Dictionary Browser, and then double-click it.
      Each time you double-click an item, Form Design Aid (FDA) adds it as a column to the grid control.
  2. Repeat step one until you have added all of the columns you need.
  3. Double-click the grid control.
  4. On Grid Properties, click the Columns tab and arrange the column order by selecting a column and then using the Up and Down buttons to shift its position in the list.
  5. Click the Sort Order tab and set the order in which the system will sort returned records by performing these steps:
    1. Select a data item in the Unsorted Columns list and click the right arrow. Repeat for each data item on which you want to sort.
      The data item moves to the Sorted Columns list.
    2. To toggle between displaying by ascending and descending order, click the data item in the Sorted Columns list.
      The letter A next to the data item indicates that the system will display records in ascending order. The letter D next to the data item indicates that the system will display records in descending order.
    3. Arrange the column sort order by choosing a column in the Sorted Columns list and then using the Up and Down buttons to shift its position in the list.
      http://docs.oracle.com/cd/E17984_01/doc.898/e14706/grid_controls.htm#g8d6ab57f7cedeaac_ef90c_10a77c8e3f7__7257

Monday, May 7, 2012

SQL Azure

SQL Azure provides a relational database management system for the Windows Azure platform, and is based on SQL Server technology. With a SQL Azure database, you can easily provision and deploy relational database solutions to the cloud, and take advantage of a distributed data center that provides enterprise-class availability, scalability, and security with the benefits of built-in data protection and self-healing.
 
 

Sunday, May 6, 2012

Create your own theam Windows 7 - your own photos

To use your own pictures

Find the pictures that you want to include in your slide show. All of the pictures must be located in the same folder.

Open Desktop Background by clicking the Start button  and clicking Control Panel. In the search box, type desktop background, and then click Change desktop background.

If the pictures that you want to use aren't in the list of desktop background pictures, click the Picture location list to view other categories, or click Browse to search your computer for the folder where the pictures are located.


Look for pictures in other locations on your computer.
Select the check box for each picture that you want to include in your slide show.

By default, all of the pictures in a folder are selected and will be part of the slide show. If you don't want all of the pictures in the folder to be included, do one of the following:

Clear the check box for each picture that you want to remove from the slide show.


Clear the check box to remove a picture from the slide show.
Press the Ctrl key, and then click each picture that you want to remove. Only the selected pictures will appear in the slide show.

To create a slide show of pictures on the desktop, you must select more than one picture. If only one picture is selected, the slide show ends and the selected picture becomes the desktop background.



Error: Date is in this Yr but Prior Mth The date being edited is in the current year but in a prior month.

How to fix following:-

Subject       : Error: Date is in this Yr but Prior Mth
CAUSE . . . .  The date being edited is in the current year but in a prior
               month.
RESOLUTION. .  This is an error if in the General Accounting Constants you
               do not allow PBCO (posted before cutoff) entries.  Change the
               date or change the General Accounting Constants to allow PBCO
               entries.
 
 
 
open the period and try to post again, but this method will change you prior period balance.

 

Friday, May 4, 2012

Toshiba satellite reinstall windows 7 Problem

one day my Toshiba satellite stopped working, I tried all the option to fix the boot problem , including advance, restore last known configuration , but failed. Toshiba has not provided any reinstall / recovery CD with system, So I asked my friend about recovery CD, he gave me Dell CD. I tried to re-install windows from that and got success. one interesting thing, when i reinstall it created backup of old files itself(great feature).so no loss of file.  
 

after that I got message my windows is not genuine , I found product key below my laptop and activated again.

thank God my 1 year old pc started working again. I reinstall all the old software.