ebay trading api
eBay Trading API:
'via Blog this'
Popular Posts
-
Kendo UI applying SUM in footer template kendo ui - KendoUI: Grid Summary values in Footer - Stack Overflow : ", footerTemplate:...
-
MVC grid example ASP.NET MVC Flexigrid sample - CodeProject : 'via Blog this'
-
A possible way of handling distributed transaction for multiple contexts without alleviation to MSDTC??? c# - Entity Framework - Using Trans...
Friday, November 30, 2012
Saturday, November 24, 2012
Developer's Guide: .NET - Blogger — Google Developers
Blogger ie Google BlogPost api using .net
Guide: .NET - Blogger — Google Developers:
'via Blog this'
Guide: .NET - Blogger — Google Developers:
'via Blog this'
Monday, November 19, 2012
Sunday, November 18, 2012
Saturday, November 17, 2012
javascript - parse json string - Stack Overflow
Parsing Json with Jquery and Javascript
javascript - parse json string - Stack Overflow:
'via Blog this'
javascript - parse json string - Stack Overflow:
'via Blog this'
Friday, November 16, 2012
Easy way to create query string
Not sure why this class is not publicly available?? You have to access it using the HTTPUtility.ParaseQueryString. The cool thing is that it returns encoded URL...
This prints:
Name=Rahman+Mahmoodi&Location=Sydney+Australia
Code Snippet
- var col = System.Web.HttpUtility.ParseQueryString(string.Empty);
- col.Add("Name", "rahman mahmoodi");
- col.Add("Location", "Sydney Australia");
- MessageBox.Show(col.ToString());
Show Your Data on Google Map using C# and JavaScript - CodeProject
a way of showing google map and dynamically creating the javascript file
Show Your Data on Google Map using C# and JavaScript - CodeProject:
'via Blog this'
Show Your Data on Google Map using C# and JavaScript - CodeProject:
'via Blog this'
Wednesday, November 14, 2012
JSON C# Class Generator - Home
An open source utility that converts the Json to C# classes....
JSON C# Class Generator - Home:
'via Blog this'
JSON C# Class Generator - Home:
'via Blog this'
json2csharp - generate c# classes from json
Excellent Json to C# converter.... eg! once the Json result is returned from the service we can use this website to convert the Json result to C# classes!!! This is absolutely Great!
json2csharp - generate c# classes from json:
'via Blog this'
json2csharp - generate c# classes from json:
'via Blog this'
Tuesday, November 13, 2012
.NET processing JSON Feed - Stack Overflow
Serialising the Json result using datacontractjsonserializer
.NET processing JSON Feed - Stack Overflow:
'via Blog this'
.NET processing JSON Feed - Stack Overflow:
'via Blog this'
.NET processing JSON Feed - Stack Overflow
Serialising the Json result using datacontractjsonserializer
.NET processing JSON Feed - Stack Overflow:
'via Blog this'
.NET processing JSON Feed - Stack Overflow:
'via Blog this'
Monday, November 12, 2012
The Google Geocoding API - Google Maps API Web Services — Google Developers
Google GeoCoding home page -> eg to get the latitude or longitude based on formatted address
The Google Geocoding API - Google Maps API Web Services — Google Developers:
'via Blog this'
The Google Geocoding API - Google Maps API Web Services — Google Developers:
'via Blog this'
Thursday, October 25, 2012
Saturday, October 20, 2012
T4MVC - Documentation
another way to avoid magic strings inside MVC views and controllers...
sounds cool
T4MVC - Documentation:
'via Blog this'
sounds cool
T4MVC - Documentation:
'via Blog this'
Saturday, October 6, 2012
Telerik Extensions For ASP.NET MVC - Free version
Free version of the Telerik MVC controls before moving to Kendo UI.
Telerik Extensions For ASP.NET MVC:
'via Blog this'
Telerik Extensions For ASP.NET MVC:
'via Blog this'
Telerik Extensions For ASP.NET MVC - Free version
Free version of the Telerik MVC controls before moving to Kendo UI.
Telerik Extensions For ASP.NET MVC:
'via Blog this'
Telerik Extensions For ASP.NET MVC:
'via Blog this'
Saturday, September 29, 2012
Monday, September 24, 2012
Transport Security with Certificate Authentication
Example of web.config using SSL and Certificates in client and service
Transport Security with Certificate Authentication: "Certificate"
'via Blog this'
Transport Security with Certificate Authentication: "Certificate"
'via Blog this'
Saturday, September 22, 2012
Transport Security with Certificate Authentication
Configuration for using Certificate in both Client and Service using SSL and 509 Certificate -> ClientCridentialType = Certificate
Transport Security with Certificate Authentication:
'via Blog this'
Transport Security with Certificate Authentication:
'via Blog this'
Seven simple steps to enable HTTPS on WCF WsHttp bindings - CodeProject
Configuration for HTTPs -> SSL
Seven simple steps to enable HTTPS on WCF WsHttp bindings - CodeProject: "behaviorConfiguration"
'via Blog this'
Seven simple steps to enable HTTPS on WCF WsHttp bindings - CodeProject: "behaviorConfiguration"
'via Blog this'
The following config file worked perfectly fine for me for hosting the WCF under HTTPs and certificates:
Code Snippet
- <system.serviceModel>
- <services>
- <service name="WCF.IIS.Deployment.ServiceApplication.MathService" behaviorConfiguration="MathServiceBehaviour">
- <endpoint address="" binding="basicHttpBinding" bindingConfiguration="SecurityByTransport" contract="WCF.IIS.Deployment.ServiceApplication.IMathService">
- </endpoint>
- <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
- <host>
- <baseAddresses>
- <add baseAddress="https://localhost/WCF.IIS.Deployment.Services/" />
- </baseAddresses>
- </host>
- </service>
- </services>
- <bindings>
- <basicHttpBinding>
- <binding name="SecurityByTransport">
- <security mode="Transport">
- <transport clientCredentialType="None" />
- </security>
- </binding>
- </basicHttpBinding>
- </bindings>
- <behaviors>
- <serviceBehaviors>
- <behavior name="MathServiceBehaviour">
- <serviceMetadata httpsGetEnabled="true" />
- <serviceDebug includeExceptionDetailInFaults="false" />
- </behavior>
- </serviceBehaviors>
- </behaviors>
- </system.serviceModel>
Friday, September 21, 2012
How to: Create and Install Temporary Certificates in WCF for Transport Security During Development
Different method of WCF binding and security mechanism - MSDN
How to: Create and Install Temporary Certificates in WCF for Transport Security During Development:
'via Blog this'
How to: Create and Install Temporary Certificates in WCF for Transport Security During Development:
'via Blog this'
Thursday, September 20, 2012
Hosting WCF 4.0 Service on IIS 7.5 with SSL
Hosting WCF in IIS using HTTPs and SSL ...
Hosting WCF 4.0 Service on IIS 7.5 with SSL:
'via Blog this'
Hosting WCF 4.0 Service on IIS 7.5 with SSL:
'via Blog this'
Implementing Transport Message Security with WCF 4.0 and VS 2010 RC
Creating a certificate and installing it in IIS -> Part 1
Implementing Transport Message Security with WCF 4.0 and VS 2010 RC:
'via Blog this'
Implementing Transport Message Security with WCF 4.0 and VS 2010 RC:
'via Blog this'
Sunday, September 16, 2012
Monday, September 10, 2012
HOW TO: Build a complex search using SearchFilter and SearchFilterCollection in EWS Managed API 1.0 - Akash Blogging...... - Site Home - MSDN Blogs
Searching and filtering through EWS Managed API
HOW TO: Build a complex search using SearchFilter and SearchFilterCollection in EWS Managed API 1.0 - Akash Blogging...... - Site Home - MSDN Blogs:
'via Blog this'
HOW TO: Build a complex search using SearchFilter and SearchFilterCollection in EWS Managed API 1.0 - Akash Blogging...... - Site Home - MSDN Blogs:
'via Blog this'
Friday, September 7, 2012
Sunday, September 2, 2012
WCF Error Handling and Fault Conversion - CodeProject
WCF Custom error handling using IErrorHandler ....
WCF Error Handling and Fault Conversion - CodeProject:
'via Blog this'
WCF Error Handling and Fault Conversion - CodeProject:
'via Blog this'
Cheat Sheet - .NET Framework Exceptions
.Net Exceptions Cheat sheet. Using GacUtil to create the list ... Cool
Cheat Sheet - .NET Framework Exceptions:
'via Blog this'
Cheat Sheet - .NET Framework Exceptions:
'via Blog this'
Friday, August 31, 2012
Hello World With Agatha
A WCF framework that supports the Request and Response scenario with base classes and all other great stuff....
Hello World With Agatha:
'via Blog this'
Hello World With Agatha:
'via Blog this'
Thursday, August 30, 2012
Tuesday, August 28, 2012
Model Binding To A List
Submitting multiple (multiline) to controller from view - MVC
here is the trick ->
Model Binding To A List: "Non-Sequential Indices"
'via Blog this'
here is the trick ->
Model Binding To A List: "Non-Sequential Indices"
'via Blog this'
Saturday, August 25, 2012
Code Voyeur - ASP.NET MVC HtmlHelper Extensions for jQuery AutoComplete
Autocomplete Extension method!
Cooool
Code Voyeur - ASP.NET MVC HtmlHelper Extensions for jQuery AutoComplete:
'via Blog this'
Cooool
Code Voyeur - ASP.NET MVC HtmlHelper Extensions for jQuery AutoComplete:
'via Blog this'
Editable Grid / List Binding in MVC2 - DONN FELKER
posting a collection eg customer -> Orders -> Order lines
Editable Grid / List Binding in MVC2 - DONN FELKER:
'via Blog this'
Editable Grid / List Binding in MVC2 - DONN FELKER:
'via Blog this'
Friday, August 24, 2012
Working with folders by using the EWS Managed API
Creating, updating and deleting folders in an exchange mailbox
Working with folders by using the EWS Managed API:
'via Blog this'
Working with folders by using the EWS Managed API:
'via Blog this'
Working with calendar items by using the EWS Managed API
Exchange = manipulating the calendar items including attendees and requests
Working with calendar items by using the EWS Managed API:
'via Blog this'
Working with calendar items by using the EWS Managed API:
'via Blog this'
ExchangeService object
Use currently logged in user credentials to connect to EWS
ExchangeService object: "UseDefaultCredentials "
'via Blog this'
ExchangeService object: "UseDefaultCredentials "
'via Blog this'
Saturday, August 18, 2012
Friday, August 17, 2012
ASP.NET MVC – Multiple buttons in the same form - David Findley's Blog
Multiple different ways of having more than one button on the form.
1- controller will select case based on the name of the button
2- multiple forms in the paage
3- java script to handle it click
ASP.NET MVC – Multiple buttons in the same form - David Findley's Blog:
'via Blog this'
1- controller will select case based on the name of the button
2- multiple forms in the paage
3- java script to handle it click
ASP.NET MVC – Multiple buttons in the same form - David Findley's Blog:
'via Blog this'
Create a Custom Membership Provider : Official Microsoft Site
Creating custom membership - authorisation provider in asp.net --> MVC
Create a Custom Membership Provider : Official Microsoft Site:
'via Blog this'
Create a Custom Membership Provider : Official Microsoft Site:
'via Blog this'
Wednesday, August 15, 2012
Code Voyeur - ASP.NET MVC HtmlHelper Extensions for jQuery AutoComplete
creating extention method for JQuery auto-complete
Code Voyeur - ASP.NET MVC HtmlHelper Extensions for jQuery AutoComplete:
'via Blog this'
Code Voyeur - ASP.NET MVC HtmlHelper Extensions for jQuery AutoComplete:
'via Blog this'
Tuesday, August 7, 2012
Get The Drop On ASP.NET MVC DropDownLists
MVC drop down
Get The Drop On ASP.NET MVC DropDownLists: "IEnumerable items = db.Categories
.Select(c => new SelectListItem
{
Value = c.CategoryID.ToString(),
Text = c.CategoryName
});
ViewBag.CategoryID = items;"
'via Blog this'
Get The Drop On ASP.NET MVC DropDownLists: "IEnumerable items = db.Categories
.Select(c => new SelectListItem
{
Value = c.CategoryID.ToString(),
Text = c.CategoryName
});
ViewBag.CategoryID = items;"
'via Blog this'
ASP.NET MVC , ORM and ViewModels « A Programmer with Microsoft tools
MVC deal with dropdown in CRUD scenarios ....
ASP.NET MVC , ORM and ViewModels « A Programmer with Microsoft tools:
'via Blog this'
ASP.NET MVC , ORM and ViewModels « A Programmer with Microsoft tools:
'via Blog this'
Sunday, August 5, 2012
.NET Web Site with SQL Database - Windows azure
Create free windows azure account and deploy upto 10 websites.
.NET Web Site with SQL Database:
'via Blog this'
.NET Web Site with SQL Database:
'via Blog this'
Saturday, August 4, 2012
Customising the HandleError action filter MVC3
Customising the HandleError action filter.....
Get to Know Action Filters in ASP.NET MVC 3 Using HandleError - .net DEvHammer - Site Home - MSDN Blogs:
'via Blog this'
Get to Know Action Filters in ASP.NET MVC 3 Using HandleError - .net DEvHammer - Site Home - MSDN Blogs:
'via Blog this'
visual studio 2010 - snippet for an auto-property in VB.NET
code snippet for auto property for vb.net
visual studio 2010 - Is there a snippet for an auto-property in VB.NET? - Stack Overflow: "C:\Users\\Documents\Visual Studio 2010\Code Snippets\Visual Basic\My Code Snippets\DefaultProperty.snippet"
'via Blog this'
visual studio 2010 - Is there a snippet for an auto-property in VB.NET? - Stack Overflow: "C:\Users\\Documents\Visual Studio 2010\Code Snippets\Visual Basic\My Code Snippets\DefaultProperty.snippet"
'via Blog this'
Friday, August 3, 2012
Showing datepicker using Jquery UI
This is how to show a date picker in in MVC view using Jquery UI:
ASP.NET MVC 3: Integrating with the jQuery UI date picker and adding a jQuery validate date range validator - Stuart Leeks - Site Home - MSDN Blogs:
'via Blog this'
ASP.NET MVC 3: Integrating with the jQuery UI date picker and adding a jQuery validate date range validator - Stuart Leeks - Site Home - MSDN Blogs:
'via Blog this'
Showing datepicker using Jquery UI
This is how to show a date picker in in MVC view using Jquery UI:
ASP.NET MVC 3: Integrating with the jQuery UI date picker and adding a jQuery validate date range validator - Stuart Leeks - Site Home - MSDN Blogs:
'via Blog this'
ASP.NET MVC 3: Integrating with the jQuery UI date picker and adding a jQuery validate date range validator - Stuart Leeks - Site Home - MSDN Blogs:
'via Blog this'
Wednesday, August 1, 2012
Supporting multiple submit buttons on an ASP.NET MVC view
Multiple Submit buttons within the same MVC page ...
Great one ...
Supporting multiple submit buttons on an ASP.NET MVC view:
'via Blog this'
Great one ...
Supporting multiple submit buttons on an ASP.NET MVC view:
'via Blog this'
Session variables in ASP.NET MVC - Stack Overflow
Singleton session wrapper around Session Object .... Nice but possibly not thread safe?
[Serializable]
public sealed class SessionSingleton
{
#region Singleton
private const string SESSION_SINGLETON_NAME = "Singleton_502E69E5-668B-E011-951F-00155DF26207";
private SessionSingleton()
{
}
public static SessionSingleton Current
{
get
{
if ( HttpContext.Current.Session[SESSION_SINGLETON_NAME] == null )
{
HttpContext.Current.Session[SESSION_SINGLETON_NAME] = new SessionSingleton();
}
return HttpContext.Current.Session[SESSION_SINGLETON_NAME] as SessionSingleton;
}
}
#endregion
public string SessionVariable { get; set; }
public string SessionVariable2 { get; set; }
// ...
}
Session variables in ASP.NET MVC - Stack Overflow:
'via Blog this'
Session variables in ASP.NET MVC - Stack Overflow:
'via Blog this'
Monday, July 30, 2012
Activity Diagram - UML 2 Diagrams - UML Modeling Tool
Conditional activities in activity diagram
-----------------|
| |
| |
----------------- |
Activity Diagram - UML 2 Diagrams - UML Modeling Tool: "optiona"
'via Blog this'
-----------------|
| |
| |
----------------- |
Activity Diagram - UML 2 Diagrams - UML Modeling Tool: "optiona"
'via Blog this'
Sparx Systems - UML 2 Tutorial - Activity Diagram
UML 2 activity diagram and shapes
Sparx Systems - UML 2 Tutorial - Activity Diagram:
'via Blog this'
Sparx Systems - UML 2 Tutorial - Activity Diagram:
'via Blog this'
Sunday, July 29, 2012
ExpandoObject Class (System.Dynamic)
Wowwww ....
Creating Object dynamically at run time, add property and functions to it and remove properties and functions .... ExpandoObject!!!!
Also enables to return anonymous type cross the libraries!!!
ExpandoObject Class (System.Dynamic):
'via Blog this'
Creating Object dynamically at run time, add property and functions to it and remove properties and functions .... ExpandoObject!!!!
Also enables to return anonymous type cross the libraries!!!
ExpandoObject Class (System.Dynamic):
'via Blog this'
Saturday, July 28, 2012
ASP.NET MVC 3: Layouts and Sections with Razor - ScottGu's Blog
Good example of Layouts = Masterpages by Scott Gu
ASP.NET MVC 3: Layouts and Sections with Razor - ScottGu's Blog:
'via Blog this'
ASP.NET MVC 3: Layouts and Sections with Razor - ScottGu's Blog:
'via Blog this'
Using Areas in ASP.NET MVC Application
Using areas to create same View / Model / Controller structure for each sub module of a big application. By default we can not use let is say HomeController for both Finance and HR departments. To be able to do so then we need to create Area in MVC by just right clicking on folder and then selecting add new Area...
Using Areas in ASP.NET MVC Application:
'via Blog this'
Using Areas in ASP.NET MVC Application:
'via Blog this'
Friday, July 27, 2012
Demos -- Trirand jqGrid for ASP.NET MVC
Excellent advanced jqGrid with paging, sorting, searching!!!
Demos -- Trirand jqGrid for ASP.NET MVC:
'via Blog this'
Demos -- Trirand jqGrid for ASP.NET MVC:
'via Blog this'
MVC3 Webgrid Html helper » BroersA Blog
Webgrid with inline edit, delete, view links ...
MVC3 Webgrid Html helper » BroersA Blog:
'via Blog this'
MVC3 Webgrid Html helper » BroersA Blog:
'via Blog this'
Consuming an OData feed in MVC « Bryan Rhea
oData and MVC, Dropdown list and Jquery filtering
Consuming an OData feed in MVC « Bryan Rhea:
'via Blog this'
Consuming an OData feed in MVC « Bryan Rhea:
'via Blog this'
Thursday, July 26, 2012
Monday, July 23, 2012
Registering components by conventions - Castle Project
Registering the components based on convention .... Castle!
Registering components by conventions - Castle Project:
'via Blog this'
Registering components by conventions - Castle Project:
'via Blog this'
Monday, July 16, 2012
Refresh All Views in Database with T-SQL « Greg Olsen – Yellow Duck Guy -
Refresh all views in the database ...
Refresh All Views in Database with T-SQL « Greg Olsen – Yellow Duck Guy -:
'via Blog this'
Refresh All Views in Database with T-SQL « Greg Olsen – Yellow Duck Guy -:
'via Blog this'
Saturday, July 14, 2012
Copy As HTML extension
visual studio addin to copy code as HTML... eg for blogs etc
Install the addin, select code and right click and then Export As HTML ...
That is it ... here is the output:
Copy As HTML extension:
'via Blog this'
Code Snippet
- Private Sub SetPrivateProperty(Of t)(
- ByVal targertObject As t,
- ByVal targetPropertyName As String,
- ByVal targetPropertyValue As Object
- )
- Dim type As Type = targertObject.GetType
- type.InvokeMember(targetPropertyName,
- BindingFlags.NonPublic Or
- BindingFlags.SetProperty Or
- BindingFlags.Instance, Nothing,
- targertObject, New Object() {targetPropertyValue})
- End Sub
Copy As HTML extension:
'via Blog this'
EF 5.x DbContext Generator for VB.NET extension
DbContext and entity generator for VB.Net
EF 5.x DbContext Generator for VB.NET extension:
'via Blog this'
EF 5.x DbContext Generator for VB.NET extension:
'via Blog this'
Friday, July 13, 2012
VBnet™ Visual Basic Developers Resource Centre
Get UNP path based on mapped drives ...
VBnet™ Visual Basic Developers Resource Centre:
'via Blog this'
VBnet™ Visual Basic Developers Resource Centre:
'via Blog this'
Thursday, July 12, 2012
.net - Is it possible to set private property via reflection - Stack Overflow
Once the class is published then we don't have any control on how it will be used,,,, even we can set the Private or protected members of the class using refelection... see below
Private Sub SetPrivateProperty(Of t)(
ByVal targertObject As t,
ByVal targetPropertyName As String,
ByVal targetPropertyValue As Object
)
Dim type As Type = targertObject.GetType
type.InvokeMember(targetPropertyName,
BindingFlags.NonPublic Or
BindingFlags.SetProperty Or
BindingFlags.Instance, Nothing,
targertObject, New Object() {targetPropertyValue})
End Sub
.net - Is it possible to set private property via reflection - Stack Overflow:
'via Blog this'
Private Sub SetPrivateProperty(Of t)(
ByVal targertObject As t,
ByVal targetPropertyName As String,
ByVal targetPropertyValue As Object
)
Dim type As Type = targertObject.GetType
type.InvokeMember(targetPropertyName,
BindingFlags.NonPublic Or
BindingFlags.SetProperty Or
BindingFlags.Instance, Nothing,
targertObject, New Object() {targetPropertyValue})
End Sub
.net - Is it possible to set private property via reflection - Stack Overflow:
'via Blog this'
Wednesday, July 11, 2012
How to make the treeview to scroll to a Position
I had terrible issues with treeview ... eg if you want to select a node in the bottom of the treeview and scrollbars are there then treeview does not scroll to the node ... ie does not ensure the node is visible. This code worked for me:
Justin Davis: How to control the scrollbar position in a Tree View Control:
'via Blog this'
Private Const SB_HORZ As Integer = &H0 Private Const SB_VERT As Integer = &H1 Private Sub SetTreeViewScrollPos(ByRef treeView As TreeView, ByRef scrollPosition As Point) Try SetScrollPos(DirectCast(treeView.Handle, IntPtr), SB_HORZ, scrollPosition.X, True) SetScrollPos(DirectCast(treeView.Handle, IntPtr), SB_VERT, scrollPosition.Y, True) If treeView.Nodes.Count > 0 Then Dim currentNode As TreeNode = treeView.SelectedNode currentNode.EnsureVisible() End If Catch ex As Exception End Try End Sub <DllImport("user32.dll", CharSet:=System.Runtime.InteropServices.CharSet.Auto)> _ Public Shared Function GetScrollPos(ByVal hWnd As Integer, ByVal nBar As Integer) As Integer End Function <DllImport("user32.dll")> _ Private Shared Function SetScrollPos(ByVal hWnd As IntPtr, ByVal nBar As Integer, ByVal nPos As Integer, ByVal bRedraw As Boolean) As Integer End Function
Justin Davis: How to control the scrollbar position in a Tree View Control:
'via Blog this'
Monday, July 9, 2012
Visual Studio CSLA Extension for ADO.NET Entity Framework
Visual studio extension for CSLA and EF
Visual Studio CSLA Extension for ADO.NET Entity Framework:
'via Blog this'
Visual Studio CSLA Extension for ADO.NET Entity Framework:
'via Blog this'
Saturday, July 7, 2012
Nancy - Lightweight Web Framework for .net
Another ASP.net web application framework - same like MVC
Nancy - Lightweight Web Framework for .net:
'via Blog this'
Nancy - Lightweight Web Framework for .net:
'via Blog this'
Thursday, July 5, 2012
One small thing about printers and Windows - CodeProject
Interesting :-> Get list of printers from system 32
One small thing about printers and Windows - CodeProject:
'via Blog this'
One small thing about printers and Windows - CodeProject:
'via Blog this'
Microsoft Dynamics CRM Server 2011 software requirements
Dynamic CRM installation prerequisite
Microsoft Dynamics CRM Server 2011 software requirements:
'via Blog this'
Microsoft Dynamics CRM Server 2011 software requirements:
'via Blog this'
Sunday, July 1, 2012
VB.NET Generics with Multiple Constraints
adding constraint to generic classes vb.net
VB.NET Generics with Multiple Constraints:
'via Blog this'
VB.NET Generics with Multiple Constraints:
'via Blog this'
Saturday, June 30, 2012
SQL Server Date and Time data types
SQL Server 2008 has introduced the new Date and Time data types. Now assigning a date to time data type will return only the time part of the datetime and the Date will return the Date part of the datetime ...
DECLARE @datetime AS DATETIME = getdate();
DECLARE @date AS DATE = @datetime;
DECLARE @time AS TIME = @datetime;
SELECT @date, @datetime, @time
Result is:
2012-07-01 2012-07-01 10:40:06.403 10:40:06.4030000
Or alternatively:
SELECTCONVERT(TIME,GETDATE()) AS HourMinuteSecond,CONVERT(DATE,GETDATE()) AS DateOnly
GO
Or to get only the HH:MM then as follow:
DECLARE @time AS TIME(0) = @datetime; -- With zero precision so returns hh:mm
'via Blog this'
DECLARE @datetime AS DATETIME = getdate();
DECLARE @date AS DATE = @datetime;
DECLARE @time AS TIME = @datetime;
SELECT @date, @datetime, @time
Result is:
2012-07-01 2012-07-01 10:40:06.403 10:40:06.4030000
Or alternatively:
SELECTCONVERT(TIME,GETDATE()) AS HourMinuteSecond,CONVERT(DATE,GETDATE()) AS DateOnly
GO
Or to get only the HH:MM then as follow:
DECLARE @time AS TIME(0) = @datetime; -- With zero precision so returns hh:mm
'via Blog this'
SQL Complete - Intellisense in SQL Server Management Studio
An excellent sql server addin that provides code completion. SQL Complete... Freeware
SQL Complete - Intellisense in SQL Server Management Studio:
'via Blog this'
SQL Complete - Intellisense in SQL Server Management Studio:
'via Blog this'
Friday, June 29, 2012
Great deal between MS and Pluralsight.... as long as you have a windows live id and you register on websitespark website then you get 3 months of free pluralsight for free!!!
Publish Post
WebsiteSpark + Pluralsight | the pluralsight blog:
http://www.microsoft.com/web/websitespark/offers/pluralsight.aspx?WT.mc_id=ban-c-corp-loc-wss
'via Blog this'
Publish Post
WebsiteSpark + Pluralsight | the pluralsight blog:
http://www.microsoft.com/web/websitespark/offers/pluralsight.aspx?WT.mc_id=ban-c-corp-loc-wss
'via Blog this'
Tuesday, June 26, 2012
VMware Communities: Guest Windows Server 2008 64bit on Host...
Issue with installing the windows server 2008 and vmwre ... looks like some options needs to be chaned in BIOS and some settings needs to be ticked in VMWare:
VMware Communities: Guest Windows Server 2008 64bit on Host...:
'via Blog this'
VMware Communities: Guest Windows Server 2008 64bit on Host...:
'via Blog this'
Saturday, June 23, 2012
Wednesday, June 20, 2012
Adding a Client to a Server Domain - YouTube
Creating the AD forest and installing of AD and then adding AD client to the Domain.
Adding a Client to a Server Domain - YouTube:
'via Blog this'
Adding a Client to a Server Domain - YouTube:
'via Blog this'
Tuesday, June 19, 2012
Build a handy Microsoft Dynamics CRM development environment - Microsoft Dynamics CRM Team Blog - Site Home - MSDN Blogs
Setting up the CRM 2011 dev environment in one machine
Build a handy Microsoft Dynamics CRM development environment - Microsoft Dynamics CRM Team Blog - Site Home - MSDN Blogs:
'via Blog this'
Build a handy Microsoft Dynamics CRM development environment - Microsoft Dynamics CRM Team Blog - Site Home - MSDN Blogs:
'via Blog this'
Sunday, June 10, 2012
c# - StructureMap singleton usage (A class implementing two interface) - Stack Overflow
Registering more than one interface of a class with IoC contrainer:
c# - StructureMap singleton usage (A class implementing two interface) - Stack Overflow:
'via Blog this'
c# - StructureMap singleton usage (A class implementing two interface) - Stack Overflow:
'via Blog this'
Friday, June 1, 2012
RUSSELL MCCLOY: Entity validation, unit testing and MVC 3 with Fluent - RuleSets and Predicates
using fluent validation with MVC instead of EF attributes
RUSSELL MCCLOY: Entity validation, unit testing and MVC 3 with Fluent - RuleSets and Predicates:
'via Blog this'
RUSSELL MCCLOY: Entity validation, unit testing and MVC 3 with Fluent - RuleSets and Predicates:
'via Blog this'
Wednesday, May 23, 2012
Compare two datatable using LINQ Query - CodeProject
The LINQ .Except function compares the references if you are trying to find rows that are in Table1 and not in Table2 and therefore never returns correct value. To get around this issue we need to create to tables with columns and then use them using the except:
Compare two datatable using LINQ Query - CodeProject:
'via Blog this'
Dim allAccountsBrief = accounts.AsEnumerable().[Select](Function(a) New With {Key .AccountKey = a.Item("AccountKey").ToString()}) Dim linkedAccountsBrief = _LinkedAccounts.AsEnumerable().[Select](Function(a) New With {Key .AccountKey = a.Item("AccountKey").ToString()}) Dim unLinkedAccountsBrief = allAccountsBrief.Except(linkedAccountsBrief) Dim unLinkedAccountsTable = (From a In accounts.AsEnumerable Join unlnked In unLinkedAccountsBrief On a.Item("AccountKey").ToString Equals unlnked.AccountKey Select a ).CopyToDataTable
Compare two datatable using LINQ Query - CodeProject:
'via Blog this'
Sunday, May 20, 2012
Saturday, May 19, 2012
Ronald Widha » Blog Archive » a simple example of the WebFormsMVP Cross Presenter Messaging
Possibly the best example of the Message subscription in MVP platform.
Has a video that clearly describes all the details ...
Nice!
Ronald Widha » Blog Archive » a simple example of the WebFormsMVP Cross Presenter Messaging:
'via Blog this'
Has a video that clearly describes all the details ...
Nice!
Ronald Widha » Blog Archive » a simple example of the WebFormsMVP Cross Presenter Messaging:
'via Blog this'
Ronald Widha » Blog Archive » a simple example of the WebFormsMVP Cross Presenter Messaging
Some good example of ASP.Net MVP with cross presenter messaging:
Ronald Widha » Blog Archive » a simple example of the WebFormsMVP Cross Presenter Messaging:
'via Blog this'
Ronald Widha » Blog Archive » a simple example of the WebFormsMVP Cross Presenter Messaging:
'via Blog this'
Friday, May 18, 2012
Thursday, May 17, 2012
Entity Framework in WinForms - CodeProject®
Good example of Header / Details with EF
Entity Framework in WinForms - CodeProject®:
'via Blog this'
Entity Framework in WinForms - CodeProject®:
'via Blog this'
Chapter 20. Using the Entity Framework in n-Tier Client-Side Applications
Detailed example of using EF in an N-Tier environment.
Chapter 20. Using the Entity Framework in n-Tier Client-Side Applications:
'via Blog this'
Chapter 20. Using the Entity Framework in n-Tier Client-Side Applications:
'via Blog this'
Tuesday, May 8, 2012
EF CTP4 Tips & Tricks: Testing With Fake DbContext « RoMiller.com
Facking the DBConext using an interface... Works? You still need to reference the EntityFramework.DLL still?
EF CTP4 Tips & Tricks: Testing With Fake DbContext « RoMiller.com:
'via Blog this'
EF CTP4 Tips & Tricks: Testing With Fake DbContext « RoMiller.com:
'via Blog this'
Monday, May 7, 2012
Pipes and filters: The IEnumerable appraoch - Ayende @ Rahien
Pipes and Filters to create a Validation infrastructure for business objects. eg before performing an action the object to be passed through a set of validation rules that are registered with Business Object and after fully passing the pipline without errors then the action should be executed: ... Possible?
Pipes and filters: The IEnumerable appraoch - Ayende @ Rahien:
'via Blog this'
Pipes and filters: The IEnumerable appraoch - Ayende @ Rahien:
'via Blog this'
Saturday, May 5, 2012
SQL SERVER – Get the List of Object Dependencies – sp_depends and information_schema.routines and sys.dm_sql_referencing_entities « SQL Server Journey with SQL Authority
Good way to find out the dependencies on an object:
SELECT referencing_schema_name, referencing_entity_name,referencing_id, referencing_class_desc, is_caller_dependentFROM sys.dm_sql_referencing_entities ('dbo.Person', 'OBJECT');GO
SQL SERVER – Get the List of Object Dependencies – sp_depends and information_schema.routines and sys.dm_sql_referencing_entities « SQL Server Journey with SQL Authority: "SELECT referencing_schema_name, referencing_entity_name,
referencing_id, referencing_class_desc, is_caller_dependent
FROM sys.dm_sql_referencing_entities ('dbo.First', 'OBJECT');
GO"
'via Blog this'
SELECT referencing_schema_name, referencing_entity_name,referencing_id, referencing_class_desc, is_caller_dependentFROM sys.dm_sql_referencing_entities ('dbo.Person', 'OBJECT');GO
SQL SERVER – Get the List of Object Dependencies – sp_depends and information_schema.routines and sys.dm_sql_referencing_entities « SQL Server Journey with SQL Authority: "SELECT referencing_schema_name, referencing_entity_name,
referencing_id, referencing_class_desc, is_caller_dependent
FROM sys.dm_sql_referencing_entities ('dbo.First', 'OBJECT');
GO"
'via Blog this'
Ruslan Trifonov's blog: Sql Server 2005: Change schema for all tables
change schema of all tables in one go
Ruslan Trifonov's blog: Sql Server 2005: Change schema for all tables: "exec sp_MSforeachtable "ALTER SCHEMA new_schema TRANSFER ? PRINT '? modified' ""
'via Blog this'
Ruslan Trifonov's blog: Sql Server 2005: Change schema for all tables: "exec sp_MSforeachtable "ALTER SCHEMA new_schema TRANSFER ? PRINT '? modified' ""
'via Blog this'
How to design a unit testable domain model with Entity Framework Code First – Daniel Cazzulino's Blog
A different approach than generic repository - kzu way ;-)
How to design a unit testable domain model with Entity Framework Code First – Daniel Cazzulino's Blog:
'via Blog this'
How to design a unit testable domain model with Entity Framework Code First – Daniel Cazzulino's Blog:
'via Blog this'
Generic Repository for Entity Framework 4.1 « Code, Wine, and IT
An implementation of the Generic Repository:
Generic Repository for Entity Framework 4.1 « Code, Wine, and IT:
'via Blog this'
Generic Repository for Entity Framework 4.1 « Code, Wine, and IT:
'via Blog this'
Monday, April 9, 2012
Saturday, April 7, 2012
Writing custom .NET trace listeners - CodeProject®
Creating custom TraceListener. .Net provides 3 default listerners:
1- DefaultTraceListerner
2- EventLogTraceLister
3- TextWriterTraceListern
However, we can create our own listener if needed:
Writing custom .NET trace listeners - CodeProject®: "TextWriterTraceListener "
'via Blog this'
1- DefaultTraceListerner
2- EventLogTraceLister
3- TextWriterTraceListern
However, we can create our own listener if needed:
Writing custom .NET trace listeners - CodeProject®: "TextWriterTraceListener "
'via Blog this'
Troubleshooting Web Services
Enabling tracing and logging using web config in xml web services.
Troubleshooting Web Services: "ThrowDetailedError "
'via Blog this'
Troubleshooting Web Services: "ThrowDetailedError "
'via Blog this'
The ASP Column: Using SOAP Extensions in ASP.NET
An excellent diagram and definition of the Soap message Request/Response pipeline both in Client and Server side. The same sort of events happens both in client and server side to process the request and responses. This is where we can plug our own extensions to intercepts the messages and perform more actions eg logging, encryption, etc
The ASP Column: Using SOAP Extensions in ASP.NET:
'via Blog this'
The ASP Column: Using SOAP Extensions in ASP.NET:
'via Blog this'
ASMX SoapExtension to Strip out Whitespace and New Lines - Scott Hanselman
Creating Web Service ASMX custom extensions to control Request / Response pipeline ... eg create custom logging extension etc
ASMX SoapExtension to Strip out Whitespace and New Lines - Scott Hanselman:
'via Blog this'
ASMX SoapExtension to Strip out Whitespace and New Lines - Scott Hanselman:
'via Blog this'
Thursday, April 5, 2012
How to apply an XSL transformation to an XML document by using Visual C#
Applying an existing XSL to an Existing XML using code:
How to apply an XSL transformation to an XML document by using Visual C#:
'via Blog this'
How to apply an XSL transformation to an XML document by using Visual C#:
'via Blog this'
Wednesday, April 4, 2012
Apply LINQ on XML string | NinethSense
Sounds great ... Just reading xml string using LINQ:
Apply LINQ on XML string | NinethSense:
'via Blog this'
Apply LINQ on XML string | NinethSense:
'via Blog this'
.NET Web Services - Exception Handling And Non-Exception Error Handling
Great example of handling and creating of SoapExceptions.
.NET Web Services - Exception Handling And Non-Exception Error Handling:
'via Blog this'
.NET Web Services - Exception Handling And Non-Exception Error Handling:
'via Blog this'
VB.NET XML validation with XSD using .NET 2.0: VB.NET, XML, XSD, .NET 2.0
Great example of validating an xml file against the XML Definition File
VB.NET XML validation with XSD using .NET 2.0: VB.NET, XML, XSD, .NET 2.0:
'via Blog this'
VB.NET XML validation with XSD using .NET 2.0: VB.NET, XML, XSD, .NET 2.0:
'via Blog this'
Friday, March 30, 2012
Open source .NET and Mono web services framework
Sounds interesting. Runs in many different platforms with many end points seamlessly.
It is open source. An alternative to WCF?
Open source .NET and Mono web services framework: "Opensource "
'via Blog this'
It is open source. An alternative to WCF?
Open source .NET and Mono web services framework: "Opensource "
'via Blog this'
Monday, March 19, 2012
ListView.View Property (System.Windows.Forms)
Showing the listview with one column: The trick to use View = Details and Add a Column even though you don't need it ;-)
ListView.View Property (System.Windows.Forms):
'via Blog this'
ListView.View Property (System.Windows.Forms):
'via Blog this'
Saturday, March 17, 2012
Monday, March 12, 2012
Sunday, March 11, 2012
Composite Pattern « Prashant Brall's Blog
Based on Specification pattern, but for complex business rules!!
Composite Pattern « Prashant Brall's Blog: "ApplicationLoanSpecification "
'via Blog this'
Composite Pattern « Prashant Brall's Blog: "ApplicationLoanSpecification "
'via Blog this'
Specification Pattern « Prashant Brall's Blog
Some great way to use Specification pattern for "Moving" the business logic validation outside the Business Object?
Specification Pattern « Prashant Brall's Blog:
'via Blog this'
Specification Pattern « Prashant Brall's Blog:
'via Blog this'
Tuesday, January 31, 2012
IListSource Interface (System.ComponentModel)
Using IListSource interface to create a list with data binding capabilities both at run time or design time!!!
'via Blog this'
Walkthrough: Data Binding with Windows Forms
Binding of Entity Framework POCOs to Windows Form controls!!!
'via Blog this'
Saturday, January 28, 2012
Mocking Comparison – Part 1: The Basics : Richard Banks - Agile and .NET
Excellent comparison of 3 mocking frameworks: Rhino, MOQ and NSubstitute
'via Blog this'
CodeTranslator: Code Translation From VB.NET <-> C#
Excellent converter vb.net to c# and vs
'via Blog this'
Subscribe to:
Posts (Atom)