<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2511881763146534105</id><updated>2011-12-30T21:31:58.005-08:00</updated><title type='text'>Basem's</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2511881763146534105.post-6217429111923181462</id><published>2008-10-06T07:26:00.000-07:00</published><updated>2008-10-06T07:50:00.092-07:00</updated><title type='text'>Microsoft Web Platform Installer -- All in one.</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_37RBjsnJ884/SOolNGx6YtI/AAAAAAAAACw/KvaD91869HA/s400/introPage.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5254052822369592018" /&gt;&lt;/a&gt;&lt;br /&gt;Microsoft has published`"&lt;a href="http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx"&gt;Microsoft Web Platform Installer Beta&lt;/a&gt;" an installation package that combines all services required to run an asp.net web application. The package includes IIS7, Visual web developer 2008 express edition and sqlserver 2008 express edition. The bad news is that the package run only on Windows Vista RTM, Windows Vista SP1, Windows Server 2008 which is normal since IIS7 runs on these platforms. However that would make the package more valuable for hosting companies than it's for developers.I think such packages should be targeted for beginner developers who are not yet aware of all components they need to start developing for dotnet and save them from setup hassle for many components.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2511881763146534105-6217429111923181462?l=basemfawzy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/6217429111923181462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2511881763146534105&amp;postID=6217429111923181462' title='87 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/6217429111923181462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/6217429111923181462'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/2008/10/microsoft-web-platform-installer-all-in.html' title='Microsoft Web Platform Installer -- All in one.'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_37RBjsnJ884/SOolNGx6YtI/AAAAAAAAACw/KvaD91869HA/s72-c/introPage.jpg' height='72' width='72'/><thr:total>87</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2511881763146534105.post-4951933866866509130</id><published>2008-08-22T06:43:00.000-07:00</published><updated>2008-08-22T07:13:08.382-07:00</updated><title type='text'>Is't true that Asp.net gets no respect ?</title><content type='html'>&lt;strong&gt;Rick Strahl&lt;/strong&gt; had a good article named &lt;a href="http://west-wind.com/weblog/posts/453551.aspx"&gt;ASP.NET gets no Respect &lt;/a&gt; regarding asp.net.The article discusses many points including :&lt;br /&gt;&lt;br /&gt; - why many developers don't choose asp.net as their web technology?&lt;br /&gt; - what makes asp.net a different web technology? &lt;br /&gt; - Is asp.net is just being hated because it's a microsoft product?&lt;br /&gt;&lt;br /&gt;The article is a great one to give you an insight on what is going on out there. Regardless of my loyalty to microsoft technologies I can't stop thinking of a question that every web developer maybe asking :&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Do I need to learn a backup web technology?&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2511881763146534105-4951933866866509130?l=basemfawzy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/4951933866866509130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2511881763146534105&amp;postID=4951933866866509130' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/4951933866866509130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/4951933866866509130'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/2008/08/ist-true-that-aspnet-get-no-respect.html' title='Is&apos;t true that Asp.net gets no respect ?'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2511881763146534105.post-421648763333175002</id><published>2008-08-15T06:31:00.000-07:00</published><updated>2008-08-15T06:57:44.392-07:00</updated><title type='text'>I HAD A WAR WITH A checkbox</title><content type='html'>Have you created a gridview with a checkbox template field. sure you have if not just jumb to that &lt;a href="http://www.asp.net/Learn/data-access/tutorial-52-vb.aspx"&gt;nice article&lt;/a&gt; on how to do and that &lt;a href="http://www.codeproject.com/KB/miscctrl/GridViewCheckBox.aspx"&gt;article&lt;/a&gt; to know how to implement Check All and Uncheck All functionality but don't forget to come back, am waiting.As you all know the main idea is to save round trips to the server by selecting multiple checkboxes and take an action on the selected rows.So why I had that war since everything seems just cool and under control.The problem was that each time I check the checkbox it returns false on the server side which drive me crazy "Why, why, why ....".However after many trials reviewing the javascript for attaching the event to the checkbox I found myself searching in the wrong part of the city so I got back to the server side where I found my terrible mistake "in that case off course". I was binding the Grodview control each time the page was loading "what was I thinking of, Nothing I guess and That was the problem :D". Anyway It seemed so natural why the checkbox always returned false since it had just been created.To Summary the long story &lt;strong&gt;The !IsPostBack check was the solution.&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2511881763146534105-421648763333175002?l=basemfawzy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/421648763333175002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2511881763146534105&amp;postID=421648763333175002' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/421648763333175002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/421648763333175002'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/2008/08/i-had-war-with-checkbox.html' title='I HAD A WAR WITH A checkbox'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2511881763146534105.post-1335134287768146963</id><published>2008-05-23T06:27:00.000-07:00</published><updated>2008-05-23T07:32:56.224-07:00</updated><title type='text'>Bolggers need this</title><content type='html'>Are you a blogger ? Are you a technical blogger ? Have you faced difficulties pasting your code in to your post???&lt;br /&gt;&lt;br /&gt;For me, all the above is just true. AS am using blogger I faced that problem when trying to paste some c# code into one of my posts.The problem came from the html validation that blogger makes.So whenever you have some html character like "&amp;lt;,&amp;gt; and &amp;amp;" you will need to html encode them otherwise you will get an error. &lt;a href="http://www.elliotswan.com/postable/"&gt;Postable&lt;/a&gt; is a simple site allowing you to paste your code and generates a friendly output code by converting all the special characters to their HTML Encodes. After converting your code using &lt;a href="http://www.elliotswan.com/postable/"&gt;Postable&lt;/a&gt; you would probably use the &amp;lt;code&amp;gt; tag to distinguish your post text from your code.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2511881763146534105-1335134287768146963?l=basemfawzy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/1335134287768146963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2511881763146534105&amp;postID=1335134287768146963' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/1335134287768146963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/1335134287768146963'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/2008/05/bolggers-need-this.html' title='Bolggers need this'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2511881763146534105.post-2356716576626716946</id><published>2008-05-03T09:27:00.000-07:00</published><updated>2008-05-23T06:26:06.735-07:00</updated><title type='text'>Kayak != Kayak API</title><content type='html'>Have You used &lt;a href="http://www.kayak.com/"&gt;Kayak&lt;/a&gt;, You should. As I was surfing the web I was refered to a kayak web site. Kayak provide search services for Flights"most interesting", Hoteles, Cars and Cruises. I really enjoyed the flight search on It. Not only did I enjoy the data it returns but also the way it graps and displays it. Suddenly I remembered I am a developer, really :D . I have to look to the other side of the picture, which is ?!?!?! You are right API. Any site or entity have a valuable huge set of data must have an API or webservice to expose it to developers, I said to myself. So I start looking for that API. I expected to see it in the &lt;a href="http://www.kayak.com/labs/"&gt;Labs section&lt;/a&gt; but I didn't. So with a simple Google search I found that &lt;a href="http://www.kayak.com/labs/api/search/"&gt;Kayak API&lt;/a&gt; . Unfortunatly Their API is not as much accurate nor reliable as their service.The Api has some limitations like it allows only 1000 request per day spreaded over the day which means 41 request per hour. Moreover the system is not reliable "not yet", when you see this error "anonymous access to kayak API denied"don't panic. There is one way to solve that problem which is acquire your token "developer key" when you are logged in other wise the key won't be valid. if you do so and still get this friendly error "you are gonna see a lot" just keep making requests cause they seem to have a problem with sessions.&lt;br /&gt;&lt;br /&gt;Anyway, since I spent a couple of hours traying to get familiar with the system I decided to share it with you.&lt;br /&gt;&lt;br /&gt;The API is so simple, just send few GET HttpRequest and Handle the Xml response.The squencve is as follows:&lt;br /&gt;&lt;br /&gt;- Send request with the developer key to get the sessionID.&lt;br /&gt;- Make another request using that sessionID to get the searchID.&lt;br /&gt;- Make last request using both sessionID, searchID and search criteria in the query string.&lt;br /&gt;&lt;br /&gt;The Url for each request and query string paramaters are documented in the &lt;a href="http://www.kayak.com/labs/api/search/spec.html"&gt;API Specs&lt;/a&gt; .&lt;br /&gt;&lt;br /&gt;Here is a simple page with a gridview and a button to grab some data using this API. I didn't consider error handling in the code since you all can do. This is a very simple implementation for the API to be able to get started.&lt;br /&gt;&lt;br /&gt;You will need to change the DEVELOPERKEY in the first url with the key you get from the site.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://bp1.blogger.com/_37RBjsnJ884/SBzmLbNm4CI/AAAAAAAAACQ/_uos8eInmNg/s1600-h/code2.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://bp1.blogger.com/_37RBjsnJ884/SBznIbNm4DI/AAAAAAAAACY/Y1PpZFMnFhk/s1600-h/code3.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://bp0.blogger.com/_37RBjsnJ884/SBzp8LNm4FI/AAAAAAAAACo/hfcEezGq5UY/s1600-h/code4.jpg"&gt;&lt;/a&gt;&lt;P&gt;&lt;code&gt;using System;&lt;br /&gt;using System.Configuration;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Web;&lt;br /&gt;using System.Web.Security;&lt;br /&gt;using System.Web.UI;&lt;br /&gt;using System.Web.UI.HtmlControls;&lt;br /&gt;using System.Web.UI.WebControls;&lt;br /&gt;using System.Web.UI.WebControls.WebParts;&lt;br /&gt;using System.Net;&lt;br /&gt;using System.IO;&lt;br /&gt;using System.Xml;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;public partial class _Default : System.Web.UI.Page &lt;br /&gt;{&lt;br /&gt;    protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;    protected void Button1_Click(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;&lt;br /&gt;        string xmlResult = MakeRequst(&amp;quot;http://api.kayak.com/k/ident/apisession?token=YOUR TOKEN&amp;quot;);&lt;br /&gt;        string sid = GetRequiredId(xmlResult, &amp;quot;sid&amp;quot;);&lt;br /&gt;&lt;br /&gt;        xmlResult = MakeRequst(&amp;quot;http://www.kayak.com/s/apisearch?basicmode=true&amp;amp;oneway=n&amp;amp;origin=BOS&amp;amp;destination=SFO&amp;amp;destcode=&amp;amp;depart_date=05/09/2008&amp;amp;depart_time=a&amp;amp;return_date=05/13/2008&amp;amp;return_time=a&amp;amp;travelers=2&amp;amp;cabin=b&amp;amp;action=doflights&amp;amp;apimode=1&amp;amp;_sid_=&amp;quot;   sid);&lt;br /&gt;        string searchId = GetRequiredId(xmlResult, &amp;quot;searchid&amp;quot;);&lt;br /&gt;&lt;br /&gt;        xmlResult = MakeRequst(&amp;quot;http://www.kayak.com/s/basic/flight?searchid=&amp;quot; searchId &amp;quot;&amp;amp;c=10&amp;amp;apimode=1&amp;amp;_sid_=&amp;quot;   sid);&lt;br /&gt;&lt;br /&gt;        List&amp;lt;Leg&amp;gt; legs = GetAllLegs(xmlResult);&lt;br /&gt;&lt;br /&gt;        if (legs != null)&lt;br /&gt;        {&lt;br /&gt;            GridView1.DataSource = legs;&lt;br /&gt;            GridView1.DataBind();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;    //Get sessionId and searchId&lt;br /&gt;    private string GetRequiredId(string xml, string idName)&lt;br /&gt;    {&lt;br /&gt;        string id = &amp;quot;&amp;quot;;&lt;br /&gt;        XmlDataDocument doc = new XmlDataDocument();&lt;br /&gt;        doc.LoadXml(xml);&lt;br /&gt;        XmlNodeList nodes = doc.GetElementsByTagName(idName);&lt;br /&gt;        if (nodes != null &amp;amp;&amp;amp; nodes.Count &amp;gt; 0)&lt;br /&gt;            id = nodes[0].InnerText;&lt;br /&gt;        return id;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    //Make required request&lt;br /&gt;    private string MakeRequst(string requestUrl)&lt;br /&gt;    {&lt;br /&gt;        System.Net.HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(requestUrl);&lt;br /&gt;       &lt;br /&gt;        HttpWebResponse response = (HttpWebResponse)request.GetResponse();&lt;br /&gt;        Stream stream = response.GetResponseStream();&lt;br /&gt;&lt;br /&gt;        StreamReader reader = new StreamReader(stream);&lt;br /&gt;        string xmlText = reader.ReadToEnd();&lt;br /&gt;&lt;br /&gt;        return xmlText;&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    //Get a list of Leg objects.&lt;br /&gt;    private List&amp;lt;Leg&amp;gt; GetAllLegs(string responseXml)&lt;br /&gt;    {&lt;br /&gt;        XmlDataDocument doc = new XmlDataDocument();&lt;br /&gt;        doc.LoadXml(responseXml);&lt;br /&gt;        List&amp;lt;Leg&amp;gt; legs = new List&amp;lt;Leg&amp;gt;();&lt;br /&gt;        XmlNodeList legNodes = doc.GetElementsByTagName(&amp;quot;leg&amp;quot;);&lt;br /&gt;        foreach (XmlNode legNode in legNodes)&lt;br /&gt;        {&lt;br /&gt;            Leg leg = new Leg();&lt;br /&gt;            for(int i=0;i&amp;lt;legNode.ChildNodes.Count;i  )&lt;br /&gt;            {&lt;br /&gt;                if (legNode.ChildNodes[i].Name == &amp;quot;airline_display&amp;quot;)&lt;br /&gt;                    leg.AirLine = legNode.ChildNodes[i].InnerText;&lt;br /&gt;                else if (legNode.ChildNodes[i].Name == &amp;quot;orig&amp;quot;)&lt;br /&gt;                    leg.Origin = legNode.ChildNodes[i].InnerText;&lt;br /&gt;                else if (legNode.ChildNodes[i].Name == &amp;quot;dest&amp;quot;)&lt;br /&gt;                    leg.Dest = legNode.ChildNodes[i].InnerText;&lt;br /&gt;                else if (legNode.ChildNodes[i].Name == &amp;quot;depart&amp;quot;)&lt;br /&gt;                    leg.Depart = Convert.ToDateTime(legNode.ChildNodes[i].InnerText);&lt;br /&gt;                else if (legNode.ChildNodes[i].Name == &amp;quot;arrive&amp;quot;)&lt;br /&gt;                    leg.Arrive = Convert.ToDateTime(legNode.ChildNodes[i].InnerText);&lt;br /&gt;                else if (legNode.ChildNodes[i].Name == &amp;quot;stops&amp;quot;)&lt;br /&gt;                    leg.Stops = Convert.ToInt32(legNode.ChildNodes[i].InnerText);&lt;br /&gt;                else if (legNode.ChildNodes[i].Name == &amp;quot;duration_minutes&amp;quot;)&lt;br /&gt;                    leg.Duration = Convert.ToInt32(legNode.ChildNodes[i].InnerText);&lt;br /&gt;                else if (legNode.ChildNodes[i].Name == &amp;quot;cabin&amp;quot;)&lt;br /&gt;                    leg.Cabin = legNode.ChildNodes[i].InnerText;&lt;br /&gt;            }&lt;br /&gt;            legs.Add(leg);&lt;br /&gt;        }&lt;br /&gt;        return legs;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//  Leg class represents part of the returned XML&lt;br /&gt;class Leg&lt;br /&gt;{&lt;br /&gt;    private string airLine, origin, dest, cabin;&lt;br /&gt;    int stops, duration;&lt;br /&gt;    private DateTime depart, arrive;&lt;br /&gt;    public string AirLine&lt;br /&gt;    {&lt;br /&gt;        get { return airLine; } set { airLine = value; }&lt;br /&gt;    }&lt;br /&gt;    public string Origin&lt;br /&gt;    {&lt;br /&gt;        get { return origin; } set { origin = value; }&lt;br /&gt;    }&lt;br /&gt;    public string Dest&lt;br /&gt;    {&lt;br /&gt;        get { return dest; } set { dest = value; }&lt;br /&gt;    }&lt;br /&gt;    public string Cabin&lt;br /&gt;    {&lt;br /&gt;        get { return cabin; } set { cabin = value; }&lt;br /&gt;    }&lt;br /&gt;    public int Stops&lt;br /&gt;    {&lt;br /&gt;        get { return stops; } set { stops = value; }&lt;br /&gt;    }&lt;br /&gt;    public int Duration&lt;br /&gt;    {&lt;br /&gt;        get { return duration; } set { duration = value; }&lt;br /&gt;    }&lt;br /&gt;    public DateTime Depart&lt;br /&gt;    {&lt;br /&gt;        get { return depart; } set { depart = value; }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public DateTime Arrive&lt;br /&gt;    {&lt;br /&gt;        get { return arrive; }&lt;br /&gt;        set { arrive = value; }&lt;br /&gt;    }&lt;br /&gt;}&lt;/code&gt;&lt;/P&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2511881763146534105-2356716576626716946?l=basemfawzy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/2356716576626716946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2511881763146534105&amp;postID=2356716576626716946' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/2356716576626716946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/2356716576626716946'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/2008/05/kayak-kayak-api.html' title='Kayak != Kayak API'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2511881763146534105.post-6740217580842993860</id><published>2008-05-02T08:01:00.000-07:00</published><updated>2008-05-02T09:17:27.521-07:00</updated><title type='text'>Godaddy + Windows + IIS7 = PHP</title><content type='html'>My last article about godaddy windows hosting seemed to attract somebody in godaddy so they respond to the post sending me a comment on windows hosting plans on godaddy regrading PHP.So to be honest I have to redirect readers to this &lt;a href="http://help.godaddy.com/article/1277"&gt;article &lt;/a&gt;to get Godaddy point of view. After all everybody is a winner from a better service.&lt;br /&gt;&lt;br /&gt;Regards,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2511881763146534105-6740217580842993860?l=basemfawzy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/6740217580842993860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2511881763146534105&amp;postID=6740217580842993860' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/6740217580842993860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/6740217580842993860'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/2008/05/godaddy-windows-ii7-php.html' title='Godaddy + Windows + IIS7 = PHP'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2511881763146534105.post-8505834806738442631</id><published>2008-04-29T09:16:00.000-07:00</published><updated>2008-04-29T09:28:38.372-07:00</updated><title type='text'>Want to Install Wordpress on Godaddy ? You won't ...</title><content type='html'>Last night I spent few hours trying to install the 5 minutes installation wordpress on godaddy windows hosting but all was in vain. So I gave up and decided to email their customer support asking what's is wrong "after all I did all configurations required". Their response came with a surprise " Godaddy no longer supports PHP scripting on windows hosting ". The solution is to upgrade/downgrade your hosting plan to linux . I did upgrade to linux hosting "what would work better with PHP, They are a family !!!" . Anyway guys no more  PHP  CMSs on godaddy windows hosting So save your time or just look for other hosting if you are such a windows loyal.&lt;br /&gt;&lt;br /&gt;Regards,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2511881763146534105-8505834806738442631?l=basemfawzy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/8505834806738442631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2511881763146534105&amp;postID=8505834806738442631' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/8505834806738442631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/8505834806738442631'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/2008/04/want-to-install-wordpress-on-godaddy.html' title='Want to Install Wordpress on Godaddy ? You won&apos;t ...'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2511881763146534105.post-3755127371591568443</id><published>2008-04-24T07:53:00.000-07:00</published><updated>2008-04-24T08:09:12.611-07:00</updated><title type='text'>.NET really ROCKS</title><content type='html'>2 days ago while reading some topics in my google reader I found a cool link to &lt;a href="http://www.dotnetrocks.com/"&gt;.net rocks&lt;/a&gt;. To be honest, that was the first time I visit the site and even knowing of its existance. Knowing that It has been there since 2002 shocks me "How this is myfirst time to see that cool site?!!, I guess I need to get out more". So I thought of blogging it to those who are just like me and didn't know about It. .Net Rocks introduces weekly podcast talk in .net and related topics. The interesting thing about it is that its fun and technical at the same time. I even thought to download the talks on my MP3 and listen to them while driving, that came after subscribing to the site feed which provide the talks directly to my RSS reader.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2511881763146534105-3755127371591568443?l=basemfawzy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/3755127371591568443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2511881763146534105&amp;postID=3755127371591568443' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/3755127371591568443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/3755127371591568443'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/2008/04/net-really-rocks.html' title='.NET really ROCKS'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2511881763146534105.post-8648884087998514422</id><published>2008-03-11T15:20:00.000-07:00</published><updated>2008-03-11T15:29:45.471-07:00</updated><title type='text'>Microsoft IE8 - Will we make a new css file or just using some hacks??</title><content type='html'>Microsoft had realsed IE8 Beta1 for developers and designers.It comes with new features especially for developers and designers. What I was excited about was The ability to Emulate The IE7 whenever you want.Another cool feature is the ability to view your site in Ie5,Ie7 and IE8 which is a cool feature when developing as you can check the compatibility of your CSS with those versions. You can go and discover more.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/windows/products/winfamily/ie/ie8/getitnow.mspx"&gt;http://www.microsoft.com/windows/products/winfamily/ie/ie8/getitnow.mspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2511881763146534105-8648884087998514422?l=basemfawzy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/8648884087998514422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2511881763146534105&amp;postID=8648884087998514422' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/8648884087998514422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/8648884087998514422'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/2008/03/microsoft-ie8-will-we-make-new-css-file.html' title='Microsoft IE8 - Will we make a new css file or just using some hacks??'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2511881763146534105.post-8116439609417733718</id><published>2007-07-23T09:46:00.000-07:00</published><updated>2007-07-23T15:50:31.240-07:00</updated><title type='text'>Code Snippets in VS 2005</title><content type='html'>Code Snippets is a really cool feature in microsoft visual studio 2005.It enables you to store pieces of code to use in a later time givinning you the chance to store, share, publish and reuse that code.The idea is simple you store your code in an xml file with a predefined scheme and save it with .snippet extention.&lt;br /&gt;&lt;br /&gt;Visual studio Itself comes with many code snippet written for you and ready to use.You can see all code snippets from the Code Snippets Manager of the Tools menu where you can add your own folders of code snippets.&lt;br /&gt;In these steps I'll show you how to create code snippets in visual studio and introduce you to the schema and later on how to use snippets from visual studio&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Crate a code snippet:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1- Add an xml file from add new item menu.&lt;br /&gt;2- change the extension from .xml to .snippet&lt;br /&gt;3- Under the processing instruction line of the xml file (which is the first line containg the version) write &lt;snippet&gt;&lt;br /&gt;4- you will find the schema craeted for you.all you need to understand It and replace the place holders with your own.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Understanding The Scheme&lt;/strong&gt;&lt;br /&gt;The xml scheme for code snippet is very easy:&lt;br /&gt;&lt;br /&gt;The root elment is CodeSnippet which contains a version an a namespace. This tag contains two main tags (elements) which we will do our changes in, Header and Snippet.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Header&lt;/strong&gt;&lt;br /&gt;contains the following elements:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Title &lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;The name of the element.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Author&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;The author of the code (may be your company name or your name)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Shortcut&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;The shortcut that you will use to reach your snipppet faster by typing your shortcut and press TAB key twice.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Description&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;The help alt text that will appear when user select the snippet.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;SnippetTypes&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;Indicates how visual studio iserts the code snippet, at the cursor or surrounding a selected code.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Snippet&lt;/strong&gt;&lt;br /&gt;contains elements that includes the actual code&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Imports&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;Imports the specified namespace when the code snippet is inserted.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Declarations&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;Contains Literal elements which acts as varables for the place holders used in your code snippet.&lt;br /&gt;Each Literal contains ID which is the placeholder variable,Default which is the default value for that placeholder and a ToolTip which is the alt help text for that place holder.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Code&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;That's where our code goes.It has a lnguage attribute to specift the language which may be C#,VB,JScript or XML.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;[CDATA]&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;here you can put your code and place the Literals ($placeholders$) between $ dollar signs or any other character you specify in the delimiter attribute of the Code element.&lt;br /&gt;&lt;br /&gt;here is a print screen of default Scheme:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://bp2.blogger.com/_37RBjsnJ884/RqUlklQVj-I/AAAAAAAAAA0/Ew-WferRo3M/s1600-h/codesnippets.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5090516264218365922" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 555px; CURSOR: hand; HEIGHT: 255px; TEXT-ALIGN: center" height="229" alt="" src="http://bp2.blogger.com/_37RBjsnJ884/RqUlklQVj-I/AAAAAAAAAA0/Ew-WferRo3M/s400/codesnippets.JPG" width="504" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now you have created your Code Snippet, How can you use It in Visual Studio:&lt;br /&gt;1-Save your Code snippet file in a folder.&lt;br /&gt;2-From Tools select Code Snippet Manager.&lt;br /&gt;3-In Code Snippet Manager window choose your language and then click Add button and choose your folder.&lt;br /&gt;&lt;br /&gt;Like that:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://bp2.blogger.com/_37RBjsnJ884/RqUnPlQVj_I/AAAAAAAAAA8/qAV12fzzqvE/s1600-h/manager.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5090518102464368626" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 479px; CURSOR: hand; HEIGHT: 305px; TEXT-ALIGN: center" height="305" alt="" src="http://bp2.blogger.com/_37RBjsnJ884/RqUnPlQVj_I/AAAAAAAAAA8/qAV12fzzqvE/s400/manager.JPG" width="431" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4-Whenever you want to use your piece of code you have two ways:&lt;br /&gt;&lt;br /&gt;Right click your mouse in the code window where you want your code, select insert snippet , choose your folder and then your code which named as you put in the title element.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://bp0.blogger.com/_37RBjsnJ884/RqUoUFQVkAI/AAAAAAAAABE/YxQDd0kq4VY/s1600-h/testsnip.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5090519279285407746" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://bp0.blogger.com/_37RBjsnJ884/RqUoUFQVkAI/AAAAAAAAABE/YxQDd0kq4VY/s400/testsnip.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;OR&lt;br /&gt;&lt;br /&gt;write the shortcut(as specified in the shortcut element of the scheme) of your snippet and press&lt;br /&gt;TAB key twice.&lt;br /&gt;&lt;br /&gt;Visual studio comes with many snippets ready made for you like if statement.&lt;br /&gt;Try It out,write down an if and then Press TAB twice and you will see.&lt;br /&gt;&lt;br /&gt;And That's It...&lt;br /&gt;Enjoy...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2511881763146534105-8116439609417733718?l=basemfawzy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/8116439609417733718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2511881763146534105&amp;postID=8116439609417733718' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/8116439609417733718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/8116439609417733718'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/2007/07/code-snippets-in-vs-2005.html' title='Code Snippets in VS 2005'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_37RBjsnJ884/RqUlklQVj-I/AAAAAAAAAA0/Ew-WferRo3M/s72-c/codesnippets.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2511881763146534105.post-6875867632044486103</id><published>2007-07-20T16:11:00.003-07:00</published><updated>2007-07-21T07:53:28.639-07:00</updated><title type='text'>Sql Caching in .Net 2.0</title><content type='html'>Caching has always been a powerfull feature in Asp.Net, However in Asp.Net 2.0 It's even more powerfull.Asp.Net 2.0 has different kinds of Caching, One of most interest is SqlCaching which enables you cach your pages depending on changes in database Not only on page level but also on SqlDataSource Level.Am gonna take you in a simple steps on how to configure an use this powerfull feature and put you on the road.&lt;br /&gt;&lt;br /&gt;In the examples I used the popular Northwind database and two of Its tables "Categories and Products".&lt;br /&gt;&lt;br /&gt;To use SqlCaching you need to play in Three places:&lt;br /&gt;&lt;br /&gt;1- Your DataBase.&lt;br /&gt;2- Your web.config.&lt;br /&gt;3- your Page ".aspx" (Note that you can use sqlcaching from your .net code and thus you don't need to configure your web.config nor your .aspx but this works only with sqlservers 2005 cause It uses Notification services.).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Configuring DataBase&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;To configure you database you will use the aspnet_regsql.exe utility that comes with .net sdk and enables you to install many asp.net 2.0 features like membership, sessionstate and Caching (use aspnet_regsql.exe /? to list all options of that tool)&lt;br /&gt;&lt;br /&gt;1-from your start menu open Programms/VisualStudio 2005/VisualStudio Tools/VisualStudio Command Prompt.&lt;br /&gt;&lt;br /&gt;2-To enable your database"Northwind " for caching use this aspnet_regsql.exe -E -d Northwind -ed&lt;br /&gt;where -E means use windows authentication when connecting to the database server, -d is the database switch and -ed means Enable database Caching&lt;br /&gt;&lt;br /&gt;Then write this&lt;br /&gt;aspnet_regsql -E -d Northwind -t Categories -et&lt;br /&gt;here -et means Enable table Caching.&lt;br /&gt;&lt;br /&gt;Now if you go to your Northwind database you will find a new table called AspNet_SqlCacheTablesForChangeNotification along with multiple stored Procudures and a Trigger on the Categories table that will be triggered each time a change happen to that table which in turn will invalidate the cache.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Configure wen.config&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1- Add a connectionString to the ConnectionStrings section like that&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://bp2.blogger.com/_37RBjsnJ884/RqIa7VQVj7I/AAAAAAAAAAc/nRwMk86qU3o/s1600-h/config1.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5089660135502352306" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 629px; CURSOR: hand; HEIGHT: 65px; TEXT-ALIGN: center" height="108" alt="" src="http://bp2.blogger.com/_37RBjsnJ884/RqIa7VQVj7I/AAAAAAAAAAc/nRwMk86qU3o/s400/config1.JPG" width="455" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2- Add Caching section to your web.config System.web section like that&lt;br /&gt;&lt;br /&gt;&lt;a href="http://bp1.blogger.com/_37RBjsnJ884/RqIcwFQVj8I/AAAAAAAAAAk/-b0nxjooNBg/s1600-h/config2.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5089662141252079554" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 620px; CURSOR: hand; HEIGHT: 99px; TEXT-ALIGN: center" height="90" alt="" src="http://bp1.blogger.com/_37RBjsnJ884/RqIcwFQVj8I/AAAAAAAAAAk/-b0nxjooNBg/s400/config2.JPG" width="513" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In the caching section we added a sqlCacheDependency enabled = true and poll time to one second since it's in milleseconds."Poll time determines how often will asp.net go to sql to check if the data has been changed. Inside the sqlCacheDependency is a databases section that you use to define the database for this sql caching "yopu can provide as many as you want since the name is different".&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Configure you page&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Add the outputCache directive in your page as follows&lt;br /&gt;&lt;br /&gt;&lt;a href="http://bp0.blogger.com/_37RBjsnJ884/RqIdp1QVj9I/AAAAAAAAAAs/mmuq0IGj4eM/s1600-h/config3.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5089663133389524946" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 630px; CURSOR: hand; HEIGHT: 28px; TEXT-ALIGN: center" height="18" alt="" src="http://bp0.blogger.com/_37RBjsnJ884/RqIdp1QVj9I/AAAAAAAAAAs/mmuq0IGj4eM/s400/config3.JPG" width="506" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Note The SqlDependency attribute value consists of name of SqlDependency from web.config, colon and then the table name on which caching is work. and that's It in Its simplest implementation. Note that I didn't intended to cover everything here, It's only a starting point for you on how to use It and there are many other features and tricks on how to use SqlCaching in ASP.Net 2.0.&lt;br /&gt;&lt;br /&gt;The main idea is that:&lt;br /&gt;&lt;br /&gt;when you run the aspnet_regsql tool It creates a table with 3 columns : tablename,notificationcreated and changeID and some stored procedures and a trigger on the table you provided gor caching. Whenever a change occur in the table the trigger is fired and update the changeID field in the corresponding record for that table in the generated table. when you request a page that sqlCache enabled for, It check the poll time in web.config and if It expired it goto database and check the changeID field and if its value was changes it invalidates the cache. Understanding that infrastructure gives you flexibility on using this fetaure like making cache based on subsets of data rather than the whole table by making your own trigger and inserting the record yorself in the generated table.&lt;br /&gt;&lt;br /&gt;Enjoy...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2511881763146534105-6875867632044486103?l=basemfawzy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/6875867632044486103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2511881763146534105&amp;postID=6875867632044486103' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/6875867632044486103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/6875867632044486103'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/2007/07/sql-caching-in-net-20_3177.html' title='Sql Caching in .Net 2.0'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_37RBjsnJ884/RqIa7VQVj7I/AAAAAAAAAAc/nRwMk86qU3o/s72-c/config1.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2511881763146534105.post-1107590086512759435</id><published>2007-07-08T07:24:00.000-07:00</published><updated>2007-07-09T00:21:23.555-07:00</updated><title type='text'>Interview puzzle</title><content type='html'>Many people who had several interviews may have faced this puzzle as I faced It and I thought of sharing the solution with you.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Puzzle: &lt;/strong&gt;We have 8 balls with the same size.7 balls hve the same weight and the remaining one is heavier.Having a balance, how can you determine the heavier ball with only 2 weightings.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Answer: &lt;/strong&gt;&lt;br /&gt;take 6 balls and weight them (3 balls in each side) "&lt;span style="color:#3333ff;"&gt;First weighting&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;If the two sides are equal then none of the 6 balls is the heavier:&lt;br /&gt;- Weight the remaing 2 balls "&lt;span style="color:#3366ff;"&gt;second weighting&lt;/span&gt;" so you can get the heavier one.&lt;br /&gt;&lt;br /&gt;Else If the two sides are not equal so the heavier ball will be in the heavier side and that makes 3 remaining balls with equal probability of being heavier than each other.&lt;br /&gt;&lt;br /&gt;-Take one in hand and weight the other two "&lt;span style="color:#3333ff;"&gt;second weighting&lt;/span&gt;":&lt;br /&gt;If they are equal so the hevier one is in your hand.&lt;br /&gt;else sure the balance will tell youuuuuuuuuuuu.&lt;br /&gt;&lt;br /&gt;Enjoy..........&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2511881763146534105-1107590086512759435?l=basemfawzy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/1107590086512759435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2511881763146534105&amp;postID=1107590086512759435' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/1107590086512759435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/1107590086512759435'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/2007/07/interview-puzzle.html' title='Interview puzzle'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2511881763146534105.post-3314625439800040620</id><published>2007-06-29T08:32:00.000-07:00</published><updated>2007-06-29T08:40:30.795-07:00</updated><title type='text'>Hello World</title><content type='html'>&lt;strong&gt;Hello Everybody........&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Welcome to my newly born blog.I hope It would be beneficial for all of you and to contribute even with a little to visitors experience.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Enjoy the coming...&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2511881763146534105-3314625439800040620?l=basemfawzy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://basemfawzy.blogspot.com/feeds/3314625439800040620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2511881763146534105&amp;postID=3314625439800040620' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/3314625439800040620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2511881763146534105/posts/default/3314625439800040620'/><link rel='alternate' type='text/html' href='http://basemfawzy.blogspot.com/2007/06/hello-world.html' title='Hello World'/><author><name>Basem</name><uri>http://www.blogger.com/profile/05124895884393634455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp0.blogger.com/_37RBjsnJ884/SBXvF7Nm4AI/AAAAAAAAACA/DN6SxdGoP7Y/S220/basem.jpg'/></author><thr:total>3</thr:total></entry></feed>
