Thursday, November 27, 2008

Directions on Microsoft

Recently, I saw a web-portal dedicated for Software-Giant, Microsoft – http://www.directionsonmicrosoft.com.

What is Directions on Microsoft?

Directions on Microsoft is the only INDEPENDENT organization in the world devoted exclusively to tracking Microsoft. We've studied Microsoft since 1992. Nobody knows the company better.

Our team of Microsoft experts [analyst bios] provides clear, concise, and actionable analysis of shifts in Microsoft strategy, Microsoft product and technology roadmaps, delivery schedules, organizational changes, marketing initiatives, and licensing and other policies so you can quickly assess how they impact your business.

Thousands of companies worldwide—including corporate purchasers of Microsoft products, system integrators, software vendors, hardware manufacturers, network operators, venture capitalists, and financial analysts—trust Directions on Microsoft for accurate and unbiased Microsoft research and analysis to guide their strategic decisions

Take a look.

RSS Link :- http://www.rssmixer.com/mixes/10639-directions-on-microsoft.rss

Monday, November 24, 2008

Cross-Thread operation not valid

The contents of this post has been move here. Please check the link to view the post.

Sorry for the inconvenience.

Thanks!

Tuesday, November 4, 2008

RSS using Repeater control

All of a sudden, I got craze of RSS and googled for some fine articles. Though got some fine ones, I’s looking for some professional ones. Alas, I got one from MSDN, using the Repeater Control.

Ok! I’ll tell you how to implement. Just follow me.

Step 1: Create an ASP.NET website

Step 2: Add a page names, RSS.aspx.

Step 3: Now add a Repeater control to RSS.aspx.

Now, switch to the source-view of RSS.aspx and clear all the tags except <%@ Page%> tag.

RSS.aspx (source-view)

   1: <%@ Page Language="C#" ContentType="text/xml" AutoEventWireup="true" CodeFile="RSS.aspx.cs" Inherits="RSS" %>
   2:  
   3: <asp:repeater ID="Repeater1" runat="server">
   4:     <HeaderTemplate>
   5:         <rss version="2.0">
   6:             <channel>
   7:                 <title>ASP.NET News</title>
   8:                 <link>http://www.aspnetnews.com/headlines/</link>
   9:                 <description>This is the syndication feed foe aspnetnews.com</description>
  10:     </HeaderTemplate>
  11:     <ItemTemplate>
  12:         <item>
  13:             <title><%
   1: # FormatForXML(DataBinder.Eval(Container.DataItem, "title")) 
%></title>
  14:             <description><%
   1: # FormatForXML(DataBinder.Eval(Container.DataItem, "Description")) 
%></description>
  15:             <link>http://www.aspnetnes.com/story.aspx?id=<%
   1: # DataBinder.Eval(Container.DataItem, "ArticleID") 
%></link>
  16:             <author><%
   1: # FormatForXML(DataBinder.Eval(Container.DataItem, "Author")) 
%></author>
  17:             <pubDate><%
   1: # String.Format("{0:R}", DataBinder.Eval(Container.DataItem, "DatePublished")) 
%></pubDate>
  18:         </item>
  19:     </ItemTemplate>
  20:     <FooterTemplate>
  21:             </channel>
  22:         </rss>
  23:     </FooterTemplate>
  24: </asp:repeater>




RSS.aspx (code-behind)




   1: using System.Data.SqlClient;
   2:  
   3: protected void Page_Load(object sender, EventArgs e)
   4:     {
   5:         string provider = @"Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=test;Data Source=.\sqlexpress";
   6:         string sql = "SELECT TOP 5 ArticleID, Title, Author, Description, DatePublished FROM Article ORDER BY DatePublished DESC";
   7:  
   8:         SqlConnection connection = new SqlConnection(provider);
   9:         SqlCommand command = new SqlCommand(sql, connection);
  10:  
  11:         connection.Open();
  12:  
  13:         Repeater1.DataSource = command.ExecuteReader();
  14:         Repeater1.DataBind();
  15:  
  16:         connection.Close();
  17:     }
  18:  
  19: protected string FormatForXML(object input)
  20:     {
  21:         string data = input.ToString();
  22:         data = data.Replace("&", "&amp;");
  23:         data = data.Replace("\"", "&quot;");
  24:         data = data.Replace("'", "&apos;");
  25:         data = data.Replace("<", "&lt;");
  26:         data = data.Replace(">", "&gt;;");
  27:  
  28:         return data;
  29:     }




Table Structure



Monday, November 3, 2008

http://172.30.19.134:8080/ssssportal.war/exceedlimit.jsp

Yesterday night, I got insane for an hour. Around 3:30am, I’s browsing internet. Suddenly, my net connection got disconnected. I reconnected it however. When I fire up my browser, what I saw was painful.

By browser loads a message mentioning- “Please wait while your request is being redirected”.

Woooh…!!!

I got afraid, every time when i load a website, I’s welcomed by that message. Also, the page is being redirected to a link as below: http://172.30.19.134:8080/ssssportal.war/exceedlimit.jsp

Today, when I load the link again, I’s pretty relieved. The link took me to the BSNL server, my ISP. And the error caused, because my usage exceeds 1 GB. Ya! a kind of protection mechanism. For past few months, BSNL was encountering several billing issues. Even I’ve have billing dispute thrice with BSNL. Its good that they are introducing certain mechanism to retain their customers.

At least for some time, I’s thinking whether my computer is being hacked by somebody.

Saturday, November 1, 2008

Auto-Display site in IE7-mode using IE8

Its simple. Just embed this meta tag. IE8 automatically loads the page in IE7 compatibility mode, without needing to switch it manually.

   1: <meta http-equiv="X-UA-Compatible" content="IE=7"


 
Best viewed in Internet Explorer 8.