Entries Categorized as 'Web Dev'

Ruby on Rails Crumbs - Part 1

Date May 2, 2008

If you have been following along, I blogged previously about my experience trying Ruby on Rails as a .net developer (here and here).  I quickly realized how different things are and that I desperately need some help, so I got myself the beta PDF version of Agile Web Development with Rails and Rails Recipes.  Both […]

Ajax with ASP.NET MVC Framework Preview 2

Date March 31, 2008

This is the updated version of the Nikhil’s excellent example on how to use Ajax with ASP.net MVC.
I commented all the changes made in the code and prefixed them with //emad. So just search for //emad and you will see all the changes I made… Here is a quick list of the changes […]

Cross Domain Error Fix for Silverlight

Date March 18, 2008

The easiest/quickest way to fix a cross domain error is to create a test website to host your Silverlight application.

When you hit F5 to debug the application, it will run the development server and the address bar will say http://localhost:xxx/blahblah.  This will prevent a cross-domain error.
If you try to run it using an test html […]

Fame, Fortune and WCF

Date December 28, 2007

I need your help to bring me fame and fortune.
I wrote an article at code project which was entered for a competition.  The winner gets $10k.  Can you please check it out at http://www.codeproject.com/KB/WCF/myfeedreader.aspx and if you like it, please vote for it.  I can’t win if you don’t vote.  Voting will be closed on […]

ASP.NET AJAX: Rendering a Gmail-like ‘Loading’ Indicator

Date August 4, 2007

Here is an interesting article on how to display Gmail-like progress indicator: Matt Berseth: ASP.NET AJAX: Rendering a Gmail-like ‘Loading’ Indicator over a Specific ASP.NET Control
But I have a much easier method to do that, which I use in www.yongazonga.com:
First, add your UpdateProgress control like this:

<asp:UpdateProgress ID=”UpdateProgress2″ runat=”server”
AssociatedUpdatePanelID=”pnlNewUser”
DisplayAfter=”0″ […]

DataFormatString not working with date format in GridView

Date May 22, 2007

I set the DataFormatString to {0:d} and also tried {0:MM-dd-yyyy} as several forums and articles suggested; but it still wouldn’t work and kept on displaying the entire string including the time. It turns out, all I had to do is add HtmlEncode=”false”.
<asp:GridView ID=”gridItems” runat=”server” AutoGenerateColumns=”False” DataKeyNames=”ItemId”
DataSourceID=”MyItemsDataSource” Width=”100%”>
<Columns>
<asp:BoundField DataField=”Title” HeaderText=”Title” SortExpression=”Title” />
<asp:BoundField DataField=”Status” HeaderText=”Status” […]

SiteKey (site-authentication images) security is ineffective

Date May 8, 2007

Check out this article http://dwarfurl.com/9de21
that discusses the ineffectiveness of site-authentication images as used by some banking sites like bank of America and country wide. I personally agree, first because I can never remember the image and if every site has its own image then I will not be able to remember all images and […]

Getting Flash Video (FLV) to work in IIS

Date April 26, 2007

I added a macromedia flash animation (swf) to my asp.net website and it would work fine but when it came to display video it would stop. I figured it had to do with the video files i.e. the FLV file. It turns out that I had to add its MIME type to IIS

Right-click […]

StyleSheet for new websites

Date April 13, 2007

I found this post by Eric to be very helpful and I plan to use his suggestions when creating my next web application. This helps you resent all the styles to a preset so that your site looks the same on all browsers. Remember to read the comments for more useful suggestions. […]

Close
E-mail It