Community Blogs

Browse by Tags

Related Posts

  • Un-sucking the Radio Button

    I swear radio buttons pucker up the closer my mouse gets to them. Aside from the lack of good CSS options for radio buttons, they demand a certain level of commitment from the user. Unlike our promiscuous friend the checkbox, once you manage to jab the tip of your mouse into the pinhole of a radio button that's it. There's no unpoking that hole. Sure, you might be able to move it around in a group of radio buttons but, you're pretty much committed to an option. So, to un-suck the radio button, we need: Free will. The users should be able to unselect their answer. Mutual exclusiveness. If we don't have this, we've got nothing but checkboxes. Only one answer can be selected. Potential beauty: Why be limited to puckered pinholes...


  • Ajax.NET and IIS 7 Integrated Mode

    As there are some questions on how to run Ajax.NET on IIS 7 (i.e. Windows Vista) in integrated mode instead of classic mode here are two things you have to check: First check that the IIS_ISSRS group has access to your Web site folder. If you are using the default folder for Web sites with Visual Studio .NET 2005 the simplest way is to add read access at C:\Users\Username\Documents\Visual Studio 2005\WebSites . Run following command to automatic migrate your web.config file: %windir%\system32\inetsrv\Appcmd migrate config "<ApplicationPath>" The breaking change for Ajax.NET Professional is that you have to move the httpHandler (and httpModule if used) to a new section system.webServer and rename httpHandler to handler ; next...


  • Wake-on-LAN from a .NET Micro Framework Device

    Well, I love the easy development of embedded devices with the .NET Micro Framework. As the device I'm currently using is really small I tried to build a small Web site on it to start my private servers at home using Wake-on-LAN . You'll find a lot of helper methods samples on the Internet but I couldn't find on source code that was working on the .NET Micro Framework. The problem is that there are too many missing methods or enum values. Here is the source code I'm using now which is working. public static void WakeUp( byte [] mac) { using (Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp)) { IPEndPoint endPoint = new IPEndPoint( new IPAddress( 4294967295 ), 40000 ); // IP 255.255.255...


  • My own small .NET Micro Framework Web Server

    While developing my small Ajax.NET M! library for creating Web applications that run on the .NET Micro Framework I have started to write my own Web server. Some years ago I wrote a simple SMTP/POP server and using some code from there was a great help. The first version will only return static HTML pages e.g. for documentation or help files. As there is no file system on those devices I use the embedded resource strings to return the content. MS.Micro.WebServer srv = new MS.Micro.WebServer(80); srv.Assembly = "MFConsoleApplication1" ; srv.StartPage = "default.aspx" ; // well, it is a fake, of course srv.Start() To find the correct embedded resource string the name of the resources have to follow a very simple syntax. If you...


  • Ajax.NET M! - The .NET Micro Framework AJAX Library

    The embeddedworld2008 is over and I had some time to play around with Microsoft .NET Micro Framework devices. I can remember that I had a look on it during the first available betas on Microsoft Connect, but then stopped watching it because of the missing TCP/IP stack. The now available version 2.5 of the .NET Micro Framework adds this directly in the framework. Other device manufactures have implemented their own TCP/IP stack, and such a device I have bought at the embeddedworld2008. Today I'd like to announce that I have ported my well known AJAX library Ajax.NET Professional ( AjaxPro ) to the .NET Micro Framework: here is Ajax.NET M! . Wow, I love to see one of my first Web applications running on a small network device (I'm currently...


  • Calling methods in a codebehind function (PageMethods) from client side using ajax.net

    Hi, Everyone using ajax.net will be familiar with the updatepanels. In addition another well known way of utilizing the rich ajax.net library is calling web service methods or methods from the code behind file from the client side. Recently i came across a situation in my project where i wanted to call methods from code behind (i have been using updatepanels but in some situation all i was doing was getting few values from the db and i felt not using the updatepanel would be a better option rather calling the my code behind function using pagemethods feature would be more appropriate). Though there is a good deal of information on the internet on update panels and calling web services i found it difficult to reach a good enough article showing...


  • Uploading Files: Multiple Files, Progress Bar, No Postback

    Recently, Joe Stagner created some videos and talked about 4 upload scenarios that provide an AJAX-like file upload experience. I've used or looked at all of those options at least once or twice in the past, but they were never quite what I wanted. I wanted something sleek and sexy. Something that really popped. The file upload tool that is my new best friend is SWFUpload . SWFUpload is a JavaScript/Flash library that degrades to a plain old upload control if there are compatibility problem. It's truly a thing of beauty. The SWFUpload online demos really don't do it justice as far as demonstrating how pretty you can make it look with a little CSS. Not that I'm the world's greatest designer, but here's an action screen...


  • LINQ to JSON

    James has published a first beta of LINQ to JSON support in his Json.NET library . It looks very similar to my LINQ support in an internal build of Ajax.NET Professional which never has been released.   List < Post > posts = GetPosts(); JObject rss = new JObject( new JProperty( " channel " , new JObject( new JProperty( " title " , " James Newton-King " ), new JProperty( " link " , " http://james.newtonking.com " ), new JProperty( " description " , " James Newton-King's blog. " ), new JProperty( " item " , new JArray( from p in posts orderby p.Title select new JObject( new JProperty( " title " , p.Title), new JProperty( " description...


  • A Simple AJAX Example for the Impatient Developer

    Follow my erotic tale of "code awakening" as I discover AJAX's raw naked self. We'll pop the hood and see AJAX as nature intended. This steamy tale of passion, romance, love, and AJAX may leave you breathless and panting for more. Or, it could simply be a ruse to get you to read my article. I'm not above shameless marketing tactics. Sex sells and you're buying... ;-) "Wam-Bam" AJAX The following example is not valid, has no error checking, is messy, but it will work in IE7, Firefox, Opera, and Safari. It is the least amount of effort (I think) needed to demonstrate AJAX. We will use two files for this example to show that a basic html page can pull information from a separate file on the server. No gender roles are defined for either of these...


  • Tips for Attending the DevConnections Event in Orlando

    I attended last year and, though a bit on the spendy side, it was a worthwhile trip and will probably be attending this year as well. Here are some tips if you've never been to this event at the Orlando, Florida location . The hotel is ginormous. Not just big, ginormous. Plan on getting lost a few times. The size of the resort and the conference rooms is truly amazing. The hotel is not within walking distance of any other restaurants, bars, clubs, stores, etc. Unless you have a car or are willing to spend $30 minimum to go somewhere by taxi, plan on being in the hotel the entire time. Naturally, prices at the hotel's restaurants, bars, and convenience store reflect this lack of external choices. Take advantage of the meals provided by the conference...


Page 1 of 8 (76 items) 1 2 3 4 5 Next > ... Last ยป