Windows Online Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Saturday, 14 November 2009

Using Reflection to Get and Set values of Properties

Posted on 23:25 by Unknown

The assembly that is generated for .Net Framework has metadata that describes the structure of the assembly and its classes. By using reflection we can investigate the structure of classes and the data that assembly holds dynamically at runtime.

You can dynamically get/set values from/to properties of object. #

Get value

foreach (PropertyInfo info in myObject.GetType().GetProperties())
{
if (info.CanRead)
object o = info.GetValue(myObject, null);
}

Set value

object myValue = "Any_Value";
if (info.CanWrite)
this.info.SetValue(myObject, myValue, null);

It's very helpful and easy to use. Isn't is ?

Read More
Posted in .NET | No comments

Wednesday, 11 November 2009

SyncToy 2.1 Available for Download

Posted on 20:32 by Unknown

How many times have you tried to copy a huge number of files only to accidently hit space or escape cancelling the transfer and you don't want to re-start from scratch? Well there's a better way to sync files between directories and drives, SyncToy. You might remember this from the XP PowerToys days, the ease of use makes it a very popular download.

SyncToy 2.1 has just been released to the Microsoft Download center. SyncToy 2.1 is a free application that synchronizes files and folders between locations. Typical uses include sharing files, such as photos, with other computers and creating backup copies of files and folders.

SyncToy2.1 is powered by the latest synchronization engine from Microsoft Sync Framework 2.0 and provides better performance and robustness. The new features and improvements included in SyncToy 2.1 release are:
Better Performance: The speed of file copy operations is significantly increased across the board.
Improved Robustness: Much more resilient to transient network and file system errors, and better error reporting that pinpoints which file the sync failed on in case there’s a fatal error that stops the sync.

Folder pair configuration backup: Folder pair configuration is automatically backed up under %localappdata%\microsoft\synctoy\2.0. You can replace SyncTopDirPairs.bin with the backup copy to resolve the last saved configuration.

Bug Fixes:
o Fixed the data corruption issue when using SyncToy with NAS drives.
o Fixed the bug that prevented uploading files to SharePoint when using SyncToy 2.0.
o Fixed bugs that prevented delete changes from being synchronized when sync option was set to
“Echo”.

SyncToy 2.1 is now available for download from: http://www.microsoft.com/downloads/details.aspx?familyid=C26EFA36-98E0-4EE9-A7C5-98D0592D8C52&displaylang=en.
Read More
Posted in FileSync | No comments

Wednesday, 4 November 2009

Use Temp Table in SQL SERVER 2005 Reporting Services

Posted on 04:37 by Unknown
I was working on 2005 SSRS to generate a reprot which required a use of Temporary Tables in the dataset. But unfortunately SSRS 2005 doesn't support it. 2008 supports both Table Datatype and Temp Tables.

To resolve the issue we can use Table DataType. Below is the example:

DECLARE @TempTable TABLE (
ID INT,
DOJ DATETIME,
NameVarchar(100)
)

INSERT INTO @TempTable VALUES(1, GETDATE(), 'Ranjit');
INSERT INTO @TempTable VALUES(2, GETDATE(), 'Ranjitsingh');

SELECT * FROM @TempTable
This way you can resolve the Temp table issues by using Table Datatype.
Read More
Posted in SSRS | No comments

PostBack in ASP.Net showModalDialog opens a new window

Posted on 04:21 by Unknown

When working with Modal Dialog Windows in ASP.Net you have experience that postback opens up a new window. This behavior is by default.

I was using window.showModalDialog() to open a ASPX Page from the parent page using JavaScript. But whenever the postback happens in the modal window during a button click or dropdown value changes, it would spawn off a new window.

You can change the behaviour by just including below tag line in the <head> of the modal window (that is aspx page).
<base target="_self">

I hope this would help you resolving the problem.

Read More
Posted in .NET | No comments

Missing ASP.NET and ASP.NET Web Service Project Templates

Posted on 04:15 by Unknown

Missing ASP.NET and ASP.NET Web Service Project Templates?

You are at the right place to solve your problem. Just visit the below link and dlwonload the .msi file.
http://download.microsoft.com/download/9/0/6/906064ce-0bd1-4328-af40-49dca1aef87c/WebApplicationProjectSetup.msi

After instalation ASP.NET web aplication template and WebService appears in New Project Promt .

Isn't it simple solution?
Read More
Posted in .NET | No comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • "Titan" Microsoft CRM 4.0
    Currently the "Titan" Microsoft CRM 4.0 is in CTP. New version of Microsoft Dynamics CRM delivers the power of choice to customers...
  • Writing the Plug-in Constructor
    The Microsoft Dynamics CRM platform has special support for a plug-in constructor that accepts two string parameters. If you write a constru...
  • Declare Global Access Level functions in MS CRM Form.
    Global functions in MS CRM Form. The way CRM adds the javascript to the page, any function defined in the onload event will only have a loca...
  • Crystal Report 4.6 - Error 20540; Missing or out of date Export DLL
    I was happen to install Crystal Report 4.6. for one of my project. As soon as I call the Crystal Report via VB 6.0 Code, i got the below err...
  • Debugging a Plug-in
    The following steps describe how to debug a plug-in. 1. Deploy the plug-in assembly. Copy the assembly to the standard plug-in folder on the...
  • Microsoft Dynamics CRM SDK Version 4.0.9 Released
    Download this new version of the SDK or view it on MSDN . This release provides continuing support for the on-premise user and new informat...
  • Create CustomerOpportunityRole Record
    This is a very simple code, when you wants to create a CustomerOpportunityRole. try { // Create the class customeropportunityrole oppRole = ...
  • Passing / Sharing Data Between Plug-ins
    The message pipeline model provides for a PropertyBag of custom data values in the execution context that is passed through the pipeline and...
  • Callout vs. Workflow
    You might find yourself wondering when you should use a pre- or post-callout versus when you should use a workflow rule. As you would expect...
  • To download all mother board driver CD
    http://driverpool.blogspot.com

Categories

  • .NET
  • .NET String Methods
  • Adapters
  • Aggregate Functions
  • All Elements
  • Associated Records
  • Azure
  • BizTalk Adapter
  • Callouts
  • Child Pipeline
  • Crm 2011
  • Crm 2011 Beta
  • Crm 2011 Beta - Ribbons
  • Crm 2011 Beta Installation
  • CRM Online 2011
  • Customizations
  • Database
  • Debug
  • Deployment Service
  • Dynamic Entity
  • Email
  • FetchXml
  • FileSync
  • Form Assistant
  • Hide Button
  • IIS
  • Integration
  • Internet Connectivity
  • ISV
  • Java Script
  • Lead Capture
  • MS CRM
  • MS CRM 2011 RC
  • MS CRM 4 Roll Ups
  • MS CRM 5 Features
  • MS CRM Accelerators
  • MS CRM Entity Schema
  • MS CRM Global Variable and Functions
  • MS CRM Templates
  • Pivot Tables
  • Plugin Constructor
  • Plugins
  • Reports
  • s
  • Save Record
  • SDK
  • Sharepoint
  • Sharepoint 2010
  • Sharing Data Between Plug-ins
  • Social Networking
  • SSRS
  • Tabs
  • Tracing
  • Videos
  • Visual Studio 6
  • VPC
  • WampServer
  • Windows Service
  • Windows XP
  • Workflows
  • xRM

Blog Archive

  • ►  2013 (4)
    • ►  September (4)
  • ►  2012 (8)
    • ►  September (1)
    • ►  July (7)
  • ►  2011 (12)
    • ►  July (1)
    • ►  March (1)
    • ►  February (2)
    • ►  January (8)
  • ►  2010 (27)
    • ►  December (1)
    • ►  October (3)
    • ►  September (10)
    • ►  August (2)
    • ►  July (5)
    • ►  June (5)
    • ►  February (1)
  • ▼  2009 (41)
    • ►  December (1)
    • ▼  November (5)
      • Using Reflection to Get and Set values of Properties
      • SyncToy 2.1 Available for Download
      • Use Temp Table in SQL SERVER 2005 Reporting Services
      • PostBack in ASP.Net showModalDialog opens a new wi...
      • Missing ASP.NET and ASP.NET Web Service Project Te...
    • ►  August (3)
    • ►  July (2)
    • ►  June (3)
    • ►  May (9)
    • ►  April (2)
    • ►  March (5)
    • ►  February (7)
    • ►  January (4)
  • ►  2008 (33)
    • ►  December (7)
    • ►  November (3)
    • ►  October (1)
    • ►  September (7)
    • ►  August (4)
    • ►  July (1)
    • ►  February (4)
    • ►  January (6)
  • ►  2007 (11)
    • ►  October (3)
    • ►  September (1)
    • ►  August (3)
    • ►  July (4)
Powered by Blogger.

About Me

Unknown
View my complete profile