Monday, March 26, 2012

Dravid walks off, sad but proud


Rahul Dravid's retirement from international cricket was announced at his home ground, the Chinnaswamy Stadium, in a function room filled with more than 200 people. Family, team-mates, friends, KSCA members, officials and journalists had gathered - as did fans watching a live broadcast on national television - to mark the end of a remarkable career and a "reassuring presence" in the Indian team. Dravid, the second-highest run-getter in the history of Test cricket, possibly the last of India's classical Test batsmen, was a cricketer who successfully straddled the old school with the new age, becoming a pivotal figure in the growth of India's Test team in the 21st century.
The press conference began on schedule and, within three-quarters of an hour, Dravid left the room and international cricket as he had walked in. Swift, smooth, business-like, and, on Friday, to the sound-and-light burst of camera flashbulbs. The significance of Friday's announcement will be understood only six months down the line, when India play Test cricket for the first time in 16 years without the most reliable one-drop in their history.
The decision to retire was not sudden, he said; the period of contemplation had lasted over a year as he assessed his game series after series. The disappointment of the Australia tour had not given him any 'eureka' moment around his decision to leave the game. "I didn't take the decision based on one series… these decisions are based on a lot of other things, it's the culmination of a lot of things. I don't think it's based on what happened in the last series. For each one it comes differently, for me it's come with a bit of contemplation, a bit of thought, with friends and family."
Rahul Dravid announces his retirement from international cricket, Bangalore, March 9, 2012

On his return from Australia, Dravid spent a month, taking out the "emotion" from the overall result in order to "look at things dispassionately," he said. At the end he said, "I came to this decision and when I came to it, I was very clear in my mind." It had, he said, been easy as it was difficult, that he had known "deep down in his heart" that it was time for the "next generation of the young Indian cricketer" to take over.
It was tough to leave "the life I have lived for 16 years and, before that, five years of first class cricket. It [cricket] is all I have known all my grown life … it wasn't a difficult decision for me because I just knew in my heart that the time was right, and I was very happy and comfortable in what I had achieved and what I had done. You just know deep down that it is time to move on and let the next generation take over."
Dravid entered the function room straight into a scrum of photographers, looking almost apologetic at having caused such a fuss. He was dressed in his India blazer and seated on the podium next to BCCI president N Srinivasan and his former team-mate, captain and now KSCA president, Anil Kumble. The walls around him were lined with portraits of Karnataka's Test players, in the front row of the audience were members of his family, team-mates and the cricket community of the city.
He began by reading out his statement, his voice steady as he listed the people who'd played a part in every stage of his career - coaches, selectors, trainers, physios, officials, team-mates, family, even the media. He ended with the Indian cricket fan. "The game is lucky to have you and I have been lucky to play before you… My approach to cricket has been reasonably simple: it was about giving everything to the team, it was about playing with dignity and it was about upholding the spirit of the game. I hope I have done some of that. I have failed at times, but I have never stopped trying. It is why I leave with sadness but also with pride."
With the statement ended and applause breaking out, Dravid looked at his wife in the first row. There was both relief and calm on his face and something other than television lights reflecting in his eyes. After the contemplation and the deliberation, the conversations with people he trusted, it was over.
Dravid became the first of India's senior-most cricketers - Sachin Tendulkar and VVS Laxman being the others - to quit the game after a season of speculation surrounding their future. His decision follows a poor tour of Australia but he enjoyed a prolific run through 2011, scoring five centuries - including four in the Caribbean and England. However, he is set to captain Rajasthan Royals in the upcoming IPL season.
Anil Kumble and Rahul Dravid walk at the end of the day, England v India, 1st Test, Lord's, 1st day, July 19, 2007

The biggest surprise of the afternoon, however - far more unexpected than even the finality of Dravid's retirement - was to follow. It came from BCCI president N Srinivasan: a man famous for an undemonstrative, glacial public face made an emotional and heartfelt speech. He spoke extempore of an "irreplaceable" cricketer, his voice wavering more than once. Srinivasan recalled having watched Dravid "grow from the days he played club cricket in Chennai, from the Ranji Trophy days … to the time he captained India". Dravid, he said, was an "ambassador for the sport, for the Indian team and for India".
"None of us really want to see such great players go away, we like to think they are permanent," Srinivasan said. "I think that deciding when to retire is possibly the hardest decision Rahul has ever faced. It is not easy to say adieu…"
Kumble called Dravid one of Karnataka's "finest cricketing sons" and spoke of his "reassuring presence" for India in the dressing room and on the field. It was Kumble who got Dravid to eventually crack his first smile of the afternoon, when he said the KSCA would now "expect to see you often in the association wearing the administrative hat." There were also a few tips on life after retirement, Kumble telling Dravid that apart from being busier "with exceptional demands made on your time, your ability to say no will be challenged like never before".
Sitting in the audience was Dravid's former team-mate Javagal Srinath, the current KSCA secretary, who had walked into the room before the event to check if the arrangements were in order. Dravid's immediate future includes six weeks of the IPL and he offered no clues as to whether he would take up a post-retirement life as coach, administrator or commentator. "I truly believe that some time away from the game will be good for me, I've played the game for 20 years I've lived in a cocoon, in a surreal world, this world has been away from reality in some ways." He did say though that because he loved routines, his return to the real world could include his new routines that involve dropping his sons off at school and shopping for groceries.
Among Dravid's contemporaries, both Kumble and Sourav Ganguly retired just after Test matches and Dravid was asked whether he had not wanted to end his career that way, walking off a field of play. "Just to keep playing for the sake of playing just one Test match, I didn't think was right." He needed to play, "for the right reasons - to win Test matches for India. I've done that for 16 years and I feel the time was right, I've had a great run. I have given this some thought … at the end of the day when a player has to go, he knows he has to go and I didn't feel the need to drag it on longer [in order to have a farewell Test]." Dravid was replying to questions in three of the four languages he speaks, taking particular pride in receiving special applause from the back of the room for working his way through a fairly long answer in Kannada.
Along with his wife, sons and brother, Dravid had walked onto the Chinnaswamy field for a short while just before he came in to speak to the media. The stadium was his finishing school before his graduation to Test cricket, and the adjacent NCA nets turned into a trusted training ground over the past decade where Dravid had always showed up early to work on his game.
Now retired, he will finally be free of the 7am gym and nets sessions. But what about the pure love of just batting? Of striking the ball with bat? Wouldn't he want to steal into the nets just for a hit or two? Dravid paused for a moment, smiled and then said: "Probably in the quiet. I'll come very late at night."
On the day he left the international game, this became the perfect final image of Rahul Dravid. Not that of the obdurate competitor in the arclights of cricket's 'surreal' centre. But of the "reassuring presence", of the craftsman in the quiet of dusk, of the man who never stopped trying.


Monday, September 13, 2010

Pass UserControl Value in ASP.NET

Add User control in project


Then add Textbox in User Control

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="UC1.ascx.vb" Inherits="UC1" %>

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>



Add New .aspx form

Register the user control

Add the user control and 1 button control in the form

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="UserControlForm.aspx.vb" Inherits="UserControlForm" %>

<%@ Register tagprefix="testuc" Tagname="tname" src="~/UC1.ascx"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

</head>

<body>

<form id="form1" runat="server">

<div>

<testuc:tname runat="server" ID="myuc" />

<asp:Button ID="Button1" runat="server" Text="Get" />

</div>

</form>

</body>

</html>



Add New Class file with code

Imports Microsoft.VisualBasic



Public Class Uccls

Private Shared _txt1 As String



Public Shared Property txt1() As String

Get

Return _txt1

End Get

Set(ByVal Value As String)

_txt1 = Value

End Set

End Property

End Class



Write below code to User Control Page Load



Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Uccls.txt1 = TextBox1.Text

End Sub







Write below code to .aspx file’s button control

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

'MsgBox(objmyuc.txt1)

Dim fvalue As String

fvalue = Uccls.txt1

Response.Write("Your Value :-" & fvalue)



End Sub

Tuesday, August 31, 2010

Fill Dropdown Chain Using Ajax

This is how you can fill dropdown list from another dropdown's change event in Asp.net/ C# using Ajax.

First,

Create one web application in ASP.Net/C#.

In default.aspx paste below coding.



<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="myScripManager" EnablePartialRendering="true" runat="server"></asp:ScriptManager>
    
    <script language="javascript" type="text/javascript"> 
           var prm = Sys.WebForms.PageRequestManager.getInstance(); 
           prm.add_initializeRequest(InitializeRequest); 
           prm.add_endRequest(EndRequest); 
           function InitializeRequest(sender,args) 
           { 
              $get('chainUpdate').style.display = 'block'; 
           } 
           function EndRequest(sender,args) 
           { 
              $get('chainUpdate').style.display = 'none'; 
           } 
    </script>
    
    <div>
        <asp:UpdatePanel ID="chainPanel" ChildrenAsTriggers="true" RenderMode="Block" UpdateMode="Conditional" runat="server">
            <ContentTemplate>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td>
       <font style="font-size:11px;font-family:verdana;">Search for:</font>
       </td>
   <td style="padding-left:10px;">
       <asp:DropDownList ID="drpMain" AutoPostBack="true" OnSelectedIndexChanged="drpMain_SelectedIndexChanged" runat="server">
       <asp:ListItem Text="(Select)" Value="0" Selected="True"></asp:ListItem>
   <asp:ListItem Text="Gujarat" Value="1"></asp:ListItem>
   <asp:ListItem Text="Maharastra" Value="2"></asp:ListItem>
                            <asp:ListItem Value="3">Rajasthan</asp:ListItem>
   </asp:DropDownList>
   </td>
   <td style="padding-left:10px;">
       <asp:DropDownList ID="drpMoto" Width="220px" AutoPostBack="true" OnSelectedIndexChanged="drpMoto_SelectedIndexChanged" Enabled="false" runat="server"/>
       </td>
   <td style="padding-left:10px;">
                        &nbsp;</td>
   <td style="padding-left:10px;">
       <asp:Button ID="btnGo" Text="Go" OnClick="btnGo_OnClick" Enabled="false" runat="server" />
   </td>
                </tr>
                <tr>
                    <td colspan="5" style="text-align:left;">
                        <asp:UpdateProgress ID="chainUpdate"  AssociatedUpdatePanelID="chainPanel" runat="server">
                            <ProgressTemplate>
                                <img src="img/updating.gif" alt="Updating..." style="font:12px verdana;vertical-align:middle;" />
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                    </td>
                </tr>
                <tr>
                    <td colspan="5">
                        <br /><br />
                        <asp:Label ID="lblResult" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>



In code behind write below code

using System;
using System.Data;
using System.Data.OleDb;

public partial class _Default : System.Web.UI.Page 
{
    DataSet ds = new DataSet();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Cache["Motos"] == null)
        {
            ds.ReadXml(Server.MapPath("~/XMLFiles/Motors.xml"), XmlReadMode.InferSchema);
            Cache.Insert("Motos", ds);
        }
        else
            ds = (DataSet)Cache["Motos"];
    }

    protected void drpMain_SelectedIndexChanged(object sender, EventArgs e)
    {

        DataSet ds1 = new DataSet();
        string provider = "Provider=Microsoft.Jet.OLEDB.4.0;";
        string db = "Data Source=D:\\Northwind.mdb";
        string connstr = provider + db;
       
        //System.Threading.Thread.Sleep(1200);

        drpMoto.Items.Clear();
            string query = "SELECT * FROM city WHERE stateid =" + drpMain.SelectedValue;
            OleDbConnection conn = new OleDbConnection(connstr);
            //conn.Open();
            OleDbDataAdapter ad = new OleDbDataAdapter(query, conn);
            ad.Fill(ds1, "city");
           
            drpMoto.DataTextField = "cityname";
            drpMoto.DataValueField = "cityid";
            drpMoto.DataSource = ds1.Tables["city"];
            drpMoto.DataBind();
            //conn.Close();
            //ds1.Dispose();
            //conn.Dispose();
            drpMoto.Enabled = true;
//            drpBrand.Items.Clear();
//            drpBrand.Enabled = false;
            btnGo.Enabled = false;
            
        
    }

Thursday, August 26, 2010

Google to allow phone calls from Gmail

A construction worker walks past a logo next to the main entrance of the Google...
...
Google Inc said users of Gmail will now be able to call telephones directly from their email, putting it in direct competition with Web calling service Skype and more traditional operators such as AT&T Inc and Verizon Communications.
While Google had already offered computer-to-computer voice and video chat services, it said that starting on Wednesday it will now allow calls to home phones and mobile phones directly from Gmail for the first time.
Google promised free calls to U.S. and Canadian phones from Gmail for the rest of this year and said it would charge low rates for calls made to other countries.
For example it said calls to Britain, France, Germany, China and Japan would be as low as 2 cents per minute.
Analysts said the service would likely be a bigger competitive threat to services like Skype's than to traditional phone companies, which have already been cutting their call prices in recent years in response to stiff competition.
"This is a risk to Skype. It's a competitor with a pretty good brand name," said Hudson Square analyst Todd Rethemeier.
Skype, which owned by private equity firms and eBay Inc and planning a $100 million initial public offering, has long allowed consumers to make calls from computers to phones. Skype became popular by first offering free computer-to-computer voice and video services.
Like Skype, Rethemeier said the Google service will likely be much more popular among U.S. consumers making international calls, than among people calling friends inside the country.
"Calling is so cheap already that I don't think it will attract a huge amount of domestic calling. It could take some of the international market," he said.
Another analyst, Steve Clement from Pacific Crest, said that anybody who is tempted by Internet calling services has likely already disconnected their home phone.
"The type of person who would use a service like that isn't the type of customer who still has a landline," Clement said.
Google said making a call through its service works like a normal phone in that a user could click on the "call phone" option in their chat buddy list in Gmail and type in the number or enter a contact's name.
Calls that cost money will be charged from an online account that users can top up with a credit card, Google said. The service will not be available for making outgoing calls on cell phones because other Google apps already cater to that market, the company added.

Facebook Surpasses Orkut in India Says comScore

Finally, popular social networking site Facebook has taken the top position and surpassed Google's Orkut website this year. According to market research company comScore's latest report, it is clear that Facebook has won the number one rank with 20.9 million visitors in July in India. This figure has risen by 179 percent on a year-on-year basis. On the other hand, Orkut has managed to grow by a mere 16 percent.

For years, Orkut has been ruling million of hearts in India - Yeah, it's that dramatic. However, in past one year, the entire social networking traction has evolved and moved towards fiercely popular Facebook. The major reasons are the different interface and most importantly, the presence of social gaming apps like FarmVille, FishVille, Mafia Wars, Sudoku and many more. No wonder FarmVille makers have set their foot in the rapidly growing online audience of India. Orkut, on the other hand, has tried every possible thing to retain users with the new interface and also support for Apps.

Overall, the Internet traffic visiting social networking sites grew 43 percent year-on-year. Also, popular micro-blogging website Twitter has seen a phenomenal 233 percent growth. However, MySpace-like website Shtyle.fm has recording highest percentage change (281 percent).

India is now the seventh largest social networking market worldwide after U.S., China, Germany, Russian Federation, Brazil and the UK.

Also, in recent times, we've noticed a lot of Indian websites integrate Facebook and Twitter features to popularize themselves.