Jonas Bush

Blog.blog.blog.blog
posts - 16, comments - 161, trackbacks - 17

My Links

News

Archives

Post Categories

Image Galleries

General

Atlas

Posts about Microsoft's Atlas framework.
Using Atlas to act as a check on javascript calls
One of the things I've been working on is how to use Atlas web services to verify actions on the server. So the client requests to perform a particular action on the server, and if they don't have access to perform that action or the action fails (because a database is down, or something along those lines), I don't want the method on the client to continue executing. The problem with that is that Atlas web service calls are asynchronous by nature (explained here and here). So I can't say something...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Wednesday, August 16, 2006 2:48 PM | Feedback (0) | Filed Under [ Atlas ]

Repeaters, Checkboxes and UpdatePanels, Oh My!
I was working on some sample stuff that I'll be posting later and ran into a problem. I had 2 different update panels; inside one was just a div, inside the other one was a repeater. Inside the repeater I had a bunch of checkboxes, and when I checked/unchecked them, I needed the first update panel to be updated. This posed a couple of problems: A checkbox doesn't have a CommandName property, and can't be used to trigger a Repeater's ItemCommand event This I got around by declaring the event handler...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Monday, May 08, 2006 2:08 PM | Feedback (3) | Filed Under [ Atlas ]

Atlas and JSON
I just finished up some code that uses some other functionality of atlas. To sum up: Whoa! This may be available in AJAX.net or some of the other frameworks, but I was amazed at how easy this was: I have a web service that returns a class, like so: public class MyClass { public string MyString; public int MyInt; } [WebMethod(true)] public MyClass MyWebMethod() { //init MyClass here MyClass myClass = new MyClass(); return myClass;} the beauty of it is, I have access to those fields in my javascript:...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Monday, April 03, 2006 2:10 PM | Feedback (0) | Filed Under [ Atlas ]

Success!
After struggling with Atlas for awhile, we finally released our latest feature on http://www.squeet.com. The new “Preview“ functionality uses the Atlas UpdatePanel to display the 5 latest entries for any blog you enter. It will by default show only a summary of the item, but you can click on the “expand“ link to show the full HTML content for the entry. The UpdatePanel is surrounding a standard ASP.Net repeater control, which contains some LinkButtons. The UpdatePanel responds...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Wednesday, February 15, 2006 11:18 AM | Feedback (0) | Filed Under [ Atlas ]

Atlas, Viewstate, IE and FF.
In my inaugural post, I described a problem I had with a WebMethod erroring out instantly on the client, accompanied by a puzzling message in the Event Log, regarding viewstate. On a whim, on that site, I decided to “publish” the website from within VS 2005 to a separate directory. I set up another virtual directory within IIS to point to that directory, loaded up the site and IE, and all my WebMethod calls were working! From IE6, that is. From FireFox, none of the calls work on the published...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Monday, February 13, 2006 7:47 AM | Feedback (0) | Filed Under [ Atlas ]

Putting the hair back in.
In this post, I mentioned tearing my hear out because I couldn't get a gridview to work right with the update panel. Today I decided to just start on a fresh web form and everything seems to be working fine. I did learn that an updatepanel without any triggers will consume any server-side event that fires inside of it (ie, to get paging and sorting working you don't need to explicitly specify triggers to handle those events). I also learned that (and this isn't related to Atlas) a gridview's page...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Monday, February 13, 2006 7:07 AM | Feedback (0) | Filed Under [ Atlas ]

Tearing my hear out, bit by bit.
Ok, I'm about to have a nervous breakdown and need to post this, and then walk away for a bit. I have a gridview on a page, that looks like this: <asp:gridview id="gvTest" runat="server" allowpaging="true" allowsorting="true" autogeneratecolumns="false" pagesize="5" onpageindexchanging="gvTest... onrowcommand="gvTest_RowCom... onsorting="gvTest_Sorting" enablesortingandpagingcallb... <columns> <asp:boundfield datafield="Id" headertext="Id" sortexpression="Id"...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Sunday, February 12, 2006 10:07 AM | Feedback (0) | Filed Under [ Atlas ]

Atlas - Jan CTP issues
I've been playing around with Atlas since the Jan CTP dropped a couple days ago. It's got some impressive functionality, as well as some (seemingly) glaring oversights. One of the things I'm trying to do is incorporate an UpdatePanel inside of a UserControl. I need the UpdatePanel to have a trigger that's on the containing page, but I can't get it to work. I've tried the following (on the containing page):protected override void OnPreInit(EventArgs e){ ControlEventTrigger t = new ControlEventTrigger();...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Sunday, February 12, 2006 9:13 AM | Feedback (2) | Filed Under [ Atlas ]

Powered by: