t

using System.Runtime.Serialization.Json;

List<Person> myResults = GetNames(searchFor);
           JavaScriptSerializer jes = new JavaScriptSerializer();
           string jsonResults = jes.Serialize(myResults);
          //return as JSON result
          context.Response.ContentType = "applcation/json";
          context.Response.Write(jsonResults);

generic list into a JSON string

on March 29, 2012 by mws580

Comments Off

Post

OAuth

In Windows Phone 7 on March 28, 2012 by mws580 Tagged:

OAuth from Paul Beaton

Oauth.net

An open protocol to allow secure API authorization in a simple and standard method from desktop and web applications.

Hear is a flow diagram Paul used in his presentation.

Comments Off

t

Need some spreadsheet functionality in your website or web application?

We have discovered GrapeCity’s Spread.Net.

Spread.Net is a remarkably easy to implement spreadsheet solution.

Need

We had a need to show data in concise easy to read format with cells and columns with an occasional graph.  Spread.Net was our BINGO moment.

imageimage

GrapeCity Cool stuff

on March 10, 2012 by mws580

Comments Off

Post

GEOCode an Address

In Bing Maps, Geo Spatial, Mapping on February 24, 2012 by mws580

Bing Control to Convert a Text Address into a Location

Add a Service Reference

From Visual Studio service reference point to http://dev.virtualearth.net/webservices/v1/geocodeservice/geocodeservice.svc/mex for the dev environment. There are staging and production links so you appropriate ones for your application.

Staging:

http://staging.dev.virtualearth.net/webservices/v1/geocodeservice/geocodeservice.svc

Production:

http://dev.virtualearth.net/webservices/v1/geocodeservice/geocodeservice.svc

http://msdn.microsoft.com/en-us/library/dd221354.aspx

GEOCode ServiceReference

Comments Off

Post

Found it, Lost it, Found it

In Bing Maps, Geo Spatial, Mapping on February 23, 2012 by mws580

Just when I became well versed in mapping with the bing map control and the ability to plot locations from SQL,  the come out wit an improved version that is totally different. 

My old code still works just fine when referencing the v6.2 library. 

Control on a diet.

To accommodate Mobile computing the control was slimmed down to its core.  As the developer needed other functionality they could add modules as needed to fulfill tasks.

Here is an article on importing GEORss feeds.

GEORSss and Bing Map v7

What’s new in Bing Map 7

Here is Keith Kinnan’s list of updates

What is new

Comments Off

t

Here is a good training video to get started in MVC3

http://www.pluralsight-training.net/microsoft/players/PSODPlayer?author=scott-allen&name=mvc3-building-intro&mode=live&clip=0&course=aspdotnet-mvc3-intro

 

Learn MVC3

Tagged: on January 28, 2012 by mws580

Comments Off

t

“Here’s to the crazy ones, the misfits, the rebels, the troublemakers, the round pegs in the square holes… the ones who see things differently — they’re not fond of rules… You can quote them, disagree with them, glorify or vilify them, but the only thing you can’t do is ignore them because they change things… they push the human race forward, and while some may see them as the crazy ones, we see genius, because the ones who are crazy enough to think that they can change the world, are the ones who do.” –Steve Jobs
Originally posted by and art by http://juxtagill.tumblr.com/

SteveJobs-HeresToTheCrazyOnes

Quote

on October 6, 2011 by mws580

Comments Off

t

iSad

sJobs

on October 6, 2011 by mws580

Comments Off

Post

Setup a VPN

In VPN on September 30, 2011 by mws580

How to setup a PPTP VPN in Windows Server 2008. A VPN (Virtual Private Network) creates a secure tunnel across the Internet between you and your office, a VPN provider, or your home. So what does all of that mean to me? With a VPN, you can surf the Web through the virtual tunnel you create, this keeps your system away from prying eyes and snoop programs, plus gives you the benefit of encrypting your internet traffic. Whether you just want to access Wi-Fi networks while your on vacation without potentially exposing your network activities to snoopers, or maybe you need to lock down a group of remote employees that require secure connections for doing business on the Internet, you should be able to find a VPN solution to suit your needs.

Windows Servers and clients have supported VPN connections since the days of Windows NT and Windows 95. While Windows clients and servers have supported VPN connections for over a decade, the type of VPN support has evolved over time. Windows Vista Service Pack 1 and Windows Server 2008 now support three types of VPN connections. These are as follows:

  • PPTP
  • L2TP/IPSec
  • SSTP

Windows Vista SP1 and Windows Server 2008 now support a new VPN protocol – Secure Socket Tunneling Protocol or SSTP. SSTP uses SSL encrypted HTTP connections to establish a VPN connection to the VPN gateway. SSTP is secure because user credentials are not sent until after a secure SSL tunnel is established with the VPN gateway. SSTP is also known as PPP over SSL, so this means that you can use PPP and EAP authentication mechanisms to make your SSTP connection more secure.

Today we will be setting up a PPTP VPN Server in Windows Server 2008. PPTP VPNs are certainly a simple and effective way to allow users onto your network. However, if you wish to have more security I would suggest using SSTP. RRAS needs to be added to your server configuration when setting up a VPN, you can use Server Manager to add the role.

Install all VPN Server Related Services

Open Server Manager.

On the top menu, click on Action and Add Roles.

This will bring up the role installation wizard. On the first screen titled Before your begin read the requirements and click Next to continue.

Next, on the screen titled Select Server Roles, place check mark on Network Policy and Access Services and click Next to continue.

On the third screen titled Network Policy and Access Services read what it is stated and click Next to continue.

On the following screen titled Select Role Services place a check mark on Routing and Remote Access Services and make sure Remote Access Service and Routing are selected as well. Click Next to continue.

Next, on the screen titled Confirm Installation Selection, you will get a summary of everything that will be installed. Make sure everything looks good and click on the Install button. Once the installation finishes, click Close to end the wizard.

Back on the main Server Manager window, right click on Configure and Enable Routing and Remote Access.

This will bring up the Routing and Remote Access Wizard. On the first window, click Next.

On the second window, select Custom Configuration and click Next to continue.

Next, place a check mark on VPN access and click Next to continue.

On the last screen of the wizard, click Finish and then click Start Service on the following window that will pop up.

Once the process is finished, and you are back on the main Server Manager window, routing and remote access should now be up and running.

Open the following Ports on your Firewall

  • Port 1723 TCP
  • Port 47 GRE

Now we can give all of our domain users acces to the VPN we just created.

If you are on a domain, go to your domain server, click on Start then click All Programs and then click Administrative Tools and finally click Active Directory Users and Computers.

On the left hand side column, look for your domain users. Double click on the user you want to give access to. This will bring up the properties for that user. Click on the Dial-In tab and under Network Access Permission select Allow Access. Click Apply and Ok to finish. Repeat the same procedure for all users on your network you want to give VPN access to.

Comments Off

Post

jQuery Popups

In jQuery, Web Design on September 29, 2011 by mws580 Tagged: ,

Here are some links for jQuery Popups

http://choosedaily.com/1178/15-jquery-popup-modal-dialog-plugins-tutorials/

http://www.ericmmartin.com/projects/simplemodal-demos/

http://jqueryui.com/demos/dialog/#modal-form

http://blog.nemikor.com/2009/04/08/basic-usage-of-the-jquery-ui-dialog/

and this one I like alot http://jorenrapini.com/blog/css/jquery-validation-contact-form-with-modal-slide-in-transition

 

Comments Off

Follow

Get every new post delivered to your Inbox.