My Linux Stuff - Complete Blog For Linux Articles

My Linux Stuff - Complete Blog For Linux Articles

A Website For Complete Linux OS,Step by Step linux Installtion, Linux Tips and Tricks and Linux Stuff and so on... Connect and sharing here....

TOP 50 ENGINEERING COLLEGES IN INDIA 2014

TOP 50 ENGINEERING COLLEGES IN INDIA 2014

This below survey was taken many form many colleges in India. These Top 50 Engineering Colleges in India have Good Infrastructure, Good Environment, Educations , Staff, Placement , Research Activities and other Facilities are good.

Top 10 Government Engineering Colleges in India

Top 10 Government Engineering Colleges in India

These Government Engineering Colleges in India are really good for all kind of stuff like Education , research , Placement and New Innovation Ideas etc... But Getting seat in these colleges are heavy competition in students .....

Top 10 Colleges In India 2014

Top 10 Colleges In India 2014

Indian Institute Of Technology Delhi,Indian Institute Of Technology Bombay,Indian Institute Of Technology Kanpur,Indian Institute Of Technology Madras,Indian Institute Of Technology Kharagpur,Indian Institute Of Technology Roorkee,University Of Delhi,Indian Institute Of Technology Guwahati,University Of Calcutta,University Of Mumbai, National Institute Of Technology,Trichy.

2014 LATEST SURVEY TOP RANKING ENGINEERING COLLEGES IN INDIA

2014 LATEST SURVEY TOP RANKING ENGINEERING COLLEGES IN INDIA

This below survey was taken many form many colleges in India. These Top 100 Engineering Colleges in India have Good Infrastructure, Good Environment, Educations , Staff, Placement , Research Activities and other Facilities are good. If you want to do Engineering as your dream and try out these colleges

Subscribe Now!

Enter your email address:

Sunday, October 30, 2011

Online Course ASP.NET 4

How to Get More Twitter Followers

50Ways To Get More Twitter Followers



  • 0digg
  • 0
     
    Share
Social media sometimes turns into a popularity contest. After all, your interactions on social networks like Twitter are better if they’re noticed by others, right? So, whether you’re looking to grow your Twitter follower count to enhance your online conversations or just to fluff your ego, it’s helpful to have a few tips and tricks to grow your follower count.
There’s no magic formula but basically you need to regularly tweet, say something useful, share the work of others (like this post perhaps?) and basically be a quality contributor to the amazing conversation happening on Twitter. Thanks to this helpful infographic from Twiends (Twitter + Friends), there more than 50 helpful tips to getting more followers on Twitter. Good luck!

Future of Laptops

Future of Laptops – Mind-Blowing Technology!!

This video shows the amazing design of Laptops or rather RollTops. You will be spellbound by the innovative and creative design.

A Simple ASP.NET MessageBox Class

When moving from Windows Forms to ASP.NET Web Forms, an API that may be missed is that offered by the System.Windows.Forms.MessageBox Class. Sometimes when developing web forms the application may wish to inform the user of a successful or, god forbid, an unsuccessful operation. An effective way to communicate an important message to the user is through the use a MessageBox or, with respect to web programming, a JavaScript "alert".
The MessageBox class in the System.Windows.Forms namespace is usable only from Windows Forms and NOT ASP.NET Web Forms. In order to alert the user we need to inject some client side code into the HTML page. This is a simple task but can become quite a nuisance if this functionality is required on a regular basis. I thought that it would be nice if we could simply call a static method from any page that would deal with the client side JavaScript required to display the alert's. I decided to write a small MessageBox class with a static Show(); method.

Using the code

To use this code in your projects, simply call the static Show() method of the MessageBox class and pass in the string that you wish to display to the user.
private void Page_Load( object sender, System.EventArgs e )
{
  MessageBox.Show( "Hello World!" );
  MessageBox.Show( "This is my second message." );
  MessageBox.Show( "Alerts couldnt be simpler." );
}
As you can see from the example above, the developer isn't restricted to displaying one message box.

Behind the scenes

The first time the Show method is invoked from a Page, a System.Collections.Queue is created and stored in a private static HashTable. The Queue is used to hold all of the message's associated with current executing Page. We also "wire up" the Page.UnLoad event so we can write the client side JavaScript to the response stream after the Page has finished rendering its HTML.
The reason we store the Queue in a Hashtable is because we are using static methods. There is the potential for multiple pages to be using the class at the same time (on separate threads). Therefore we need to make sure we know which messages belong to which page. To accomplish this we simply use the Page's reference as the key in the HashTable. We obtain a reference to the current executing page by casting the current IHttpHandler to System.Web.UI.Page. The current IHttpHandler can be obtained from HttpContext.Current.Handler. In most cases this will be a class either directly or indirectly derived from System.Web.UI.Page.

Source Code

public class MessageBox
{
  private static Hashtable m_executingPages = new Hashtable();
  private MessageBox(){}
  public static void Show( string sMessage )
  {
    // If this is the first time a page has called this method then
    if( !m_executingPages.Contains( HttpContext.Current.Handler ) )
    {
      // Attempt to cast HttpHandler as a Page.
      Page executingPage = HttpContext.Current.Handler as Page;
      if( executingPage != null )
      {
        // Create a Queue to hold one or more messages.
        Queue messageQueue = new Queue();
        // Add our message to the Queue
        messageQueue.Enqueue( sMessage );
        // Add our message queue to the hash table. Use our page reference
        // (IHttpHandler) as the key.
        m_executingPages.Add( HttpContext.Current.Handler, messageQueue );
        // Wire up Unload event so that we can inject
        // some JavaScript for the alerts.
        executingPage.Unload += new EventHandler( ExecutingPage_Unload );
      } 
    }
    else
    {
      // If were here then the method has allready been
      // called from the executing Page.
      // We have allready created a message queue and stored a
      // reference to it in our hastable.
      Queue queue = (Queue) m_executingPages[ HttpContext.Current.Handler ];
      // Add our message to the Queue
      queue.Enqueue( sMessage );
    }
  }

  // Our page has finished rendering so lets output the
  // JavaScript to produce the alert's
  private static void ExecutingPage_Unload(object sender, EventArgs e)
  {
    // Get our message queue from the hashtable
    Queue queue = (Queue) m_executingPages[ HttpContext.Current.Handler ];
    if( queue != null )
    {
      StringBuilder sb = new StringBuilder();
      // How many messages have been registered?
      int iMsgCount = queue.Count;
      // Use StringBuilder to build up our client slide JavaScript.
      sb.Append( "<script language='javascript'>" );
      // Loop round registered messages
      string sMsg;
      while( iMsgCount-- > 0 )
      {
        sMsg = (string) queue.Dequeue();
        sMsg = sMsg.Replace( "\n", "\\n" );
        sMsg = sMsg.Replace( "\"", "'" );
        sb.Append( @"alert( """ + sMsg + @""" );" );
      }
      // Close our JS
      sb.Append( @"</script>" );
      // Were done, so remove our page reference from the hashtable
      m_executingPages.Remove( HttpContext.Current.Handler );
      // Write the JavaScript to the end of the response stream.
      HttpContext.Current.Response.Write( sb.ToString() );
    }
  }
}

How To Get The New Gmail Design

How To Get The New Gmail Design Right Now

You’ve probably noticed the rather fast design changes that are happening this week around nearly all Google products in anticipation of the upcoming Google Plus social network-y product that’s coming soon. One of the biggest design adjustments is going to be to Gmail. But it hasn’t happened yet. Are you like me and you just can’t wait to test out the new design? Lucky for you, Google just made it easy to test it out with just a few clicks. Here’s how:
1. Click the “Settings” icon at the right top corner of Gmail inbox and choose “Mail Settings”

 

2. In the “Settings” page, switch to the “Themes” tab, scroll down and activate the “Preview” theme for Gmail. There are two versions: light and dense.  The dense version will give you a compact Gmail inbox with less spacing between different items. If you get a bunch of email every single day, the dense version will be ideally suited as you will have to scroll a little lesser. However, if you want to get rid of the clutter and want a clean layout – go for the light one.


Gmail says in a blog post that Google wants to provide a unified experience across all Google services. Whether you are using Google search, Google Calendar, Google Reader, Google Plus or Gmail – you will see the same design and colors, once the design roll out is pushed globally.  Personally, I am not a fan of “bold” colors and I think they distract me a little. But it’s just a matter of time when my eyes gets used to the new Gmail design and I will start loving it anyway.
Note: In order to get Gmail’s redesigned inbox, it is not mandatory to have a Google Plus account. Some users have this confusion that the redesigned Gmail interface is only available to users who have signed up for Google Plus. It’s not true and Google apps users can also test the new dense and light themes of Gmail.
For you old-timey fans, here’s what the original Google screen looked like:

 

iPhone 5 Features

iPhone 5 Amazing Features


Data entry work

Persons who like to earn an extra in part time. They are working or leave your current job and make cash at home working for one. Present there is lot of data entry workers worldwide to enter data online or offline. Work then earn with data entry. This is positive way for optimistic person to earn.
The data entry agencies using large number of electronic modern equipments  like Computer, Scanner, Printer etc and knowledge required too many of persons to store the data. You can also register your own data entry office locally weather you want to work with contact to companies with your data entry quotation.
Work is provide by Companies, Bank, University, Library, Medical Transcription, Billing, Customer service, Internet online or offline fulltime or part time. Most of companies have data center who distribute work onward.

If you have some knowledge of computers and able to typing with Ms Word, Excel, Access, FoxPro then you can take up Data Entry Jobs with full enjoyment and earn good money.

Data Entry Job Sites 

Available Data Entry Job
If you want a profitable job to be got done without any argument from office colleagues, superiors or bosses then work at home data entry jobs is one of the best options available today. You can focus on the actual works with any intrusion from any side following the guidance specified by the company.

Generate SQL Server Connection Strings

This tool will let you generate your SQL Server connection strings - nice and simple.

Click here to create

Code Converters for C# to VB.Net

Hands up who wants to hand convert C# to VB.NET (or back again)? No? Well, we've got just the tools for you. These will do it automatically and won't cost you a penny!

Related Posts Plugin for WordPress, Blogger...