<< November 2009 >>
Sun Mon Tue Wed Thu Fri Sat
01 02 03 04 05 06 07
08 09 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30


If you want to be updated on this weblog Enter your email here:



rss feed



Jul 26, 2004
Oops !! I did it again

After a month gap, I took a session on Globalization and Localization with .NET at Microsoft’s Delhi Office. Thanks a lot to the guys who arranged the venue.

This time I had an interactive audience. All were very excited to know the tricks of developing multilingual applications. In this session, I explored one of the most powerful namespace System.Globalizattion. Talked about the issues related to Localization and resolve them using .NET Framework. Explained CultureInfo class for providing culture specific information in their application.

We launched the SQL Chapter of Microsoft .NET Delhi User Group. Veeru was an awesome guy, who gave a beautiful session on "Yukon" - SQL Server 2005 Features.

Overall it all went well. Thanks to all the attendees for their pateince to attend the complete session "my boredom search turned research. :)


Posted at 01:33 pm by whidbey
Make a comment  

Jul 15, 2004
What is important ??

This week is the most important week for me. Today, its real difficult to decide. I don’t know what to do when I had given three choices: best guys to work with, best company to work with and best money.

 

Now, I need to decide what is more important to me. The confusion is, I want all three; nothing can be overlooked but unfortunately I have only one choice with me. I can pick only one out of them. For me - guys with whom I work are the most important because my team is my strength. For me - it is tough, when the company is the biggest company in the world. For me - money is what drives the world :) rather than .NET

 

I am recollecting my back old good days, when I started my career. The team which I had, they all made a big difference for me. Two years back from now, when I started with .NET it gave a new direction to my life. I was never perfect, started premature but with focus. I knew what I want in my life – went ahead accomplish the most. But this time, I am pulled off, no aspiration for me. I am depressed today - death of a fulfilled guy, all his energetic & magical powers had vanished.

 

Dad always wondered what I wanted to achieve in my life, I almost break into tears and got totally depressed with the fact "I am not able to decide". The guy who always helped others to decide is broken today. He has one dream in his life - which has been partitioned by Lady Luck today into three. I told him "the perfect guy" about all this. He guided me by saying - "Prioritize your things" and decision will be in your hands.


Posted at 12:34 pm by whidbey
Make a comment  

Jun 30, 2004
Delivered a Session on "My" Object in Whidbey

Delivered a session - using "My" Object in VB.NET (Whidbey)  on 26th of this month at Microsoft Office, New Delhi.  First time maximum attendence was there from the User Group Members.  I took this session for Microsoft .NET Delhi User Group.

One of the most memorable pictures of my life.


Posted at 06:19 pm by whidbey
Comments (2)  

Jun 22, 2004
Explored Client Event Callback Manager in Whidbey

Yesterday , I tried with Client Event Callback in whidbey. I ended by developing a chat application with mere 15 lines of code, that too without any Page Refresh.

Microsoft did a good research and implemented the XML-HTTP callback in ASP.NET 2.0.

Its a 4 step proccess for implementing a Client Callback without Page Refresh.

STEP 1: Create a new Web Project in VS 2005. Implement  System.Web.UI.ICallbackEventHandler to your .aspx Page.

STEP 2: This implmentation will want you to override a function with name RaiseCallback

 
Public
Function RaiseCallbackEvent(ByVal eventArgument As String) As String Implements System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent

        Return "CallBack Magic"
End Function


STEP 3: Add the client side function in your aspx page, which you want to be called when the server-side processing is completed.

<script language="javascript">
function
_onCallbackEnd(return_value, context)
{
      document.getElementById("TextBox2").value=return_value;
}


STEP 4: Finally, in this step you just need to add a event handler for your server-side button which will will be used to call this server-side function. There are two ways for doing this .

1) Add the appropiate code in the Page_Load -

              Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
              If Not (Page.IsPostBack)
Then
                           
Label1.Text = "Hi ! " & Session("Name")
                            Dim str As String = GetCallbackEventReference(Me, "document.getElementById('TextBox1').value", "_onCallbackEnd", Nothing
)
                            Button1.Attributes.Add("onlclick", str + "; return false;"
              End If

              End Sub


2) Directly, add the onclick javascript on your button (check the code in BOLD):

<input type="button" name="Button1" value="Send" onclick="WebForm_DoCallback('__Page',document.getElementById('TextBox1').value,_onCallbackComplete,null,null); return false;" id="Button1" style="width: 120px; height: 27px" />


Now, you can execute your web app and experience the magic.


I am not sure, how should I upload my code on this blog. But for the convinience I am giving the some source code (in VB.NET) below :

Imports Microsoft.VisualBasic
Namespace
ASP

Partial Class Default2_aspx
              Implements System.Web.UI.ICallbackEventHandler

              Public Function RaiseCallbackEvent(ByVal eventArgument As String) As String Implements System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent
                            Return "Callback Magic"
              End
Function

              Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
              If Not (Page.IsPostBack)
Then
                           
Label1.Text = "Hi ! " & Session("Name")
                            Dim str As String = GetCallbackEventReference(Me, "document.getElementById('TextBox1').value", "_onCallbackEnd", Nothing)
                            Button1.Attributes.Add("onlclick", str + "; return false;"
              End If

              End Sub

End
Class
End
Namespace



Soon, I will be posting a chat application with full source code.

!! Happy Coding !!

Posted at 07:33 pm by whidbey
Make a comment  

Jun 21, 2004
Road to Whidbey

Finally, I decided to march towards Whidbey. So, I went ahead and started with a User Group on MSN : http://groups.msn.com/mywhidbey  and an exclusive website on http://mywhidbey.europe.webmatrixhosting.net or by http://www.mywhidbey.tk/

I wish to do something great for the .net community, and embarks myself for the same.


Posted at 05:15 pm by whidbey
Make a comment  

Previous Page