ajeethtechnotes.blogspot.com
My Technotes: Object.Equals C#
http://ajeethtechnotes.blogspot.com/2008/10/objectequals-c.html
Sunday, October 12, 2008. This is one of the basics which every .Net developer has to know. Hence I would like to explain this with a proper example. Let us consider the following class. Public Employee(int empID, string name). ThisempID = empID;. ThisempName = name;. Private int empID;. Get { return empID; }. Set { empID = value; }. Private string empName = string.Empty;. Get { return empName; }. Set { empName = value; }. Now if I execute the folowing snippet of code. Bool eq = (emp1 = emp2);. Employee ...
ajeethtechnotes.blogspot.com
My Technotes: Readonly Listbox
http://ajeethtechnotes.blogspot.com/2009/02/readonly-listbox.html
Wednesday, February 4, 2009. Use the following snippet to extend the C# listBox to a readOnly List box. Using System.Windows.Forms;. Public class ReadOnlyListBox : ListBox. Private bool readOnly = false;. Get { return readOnly; }. Set { readOnly = value; }. Protected override void DefWndProc(ref Message m). If ReadOnly is set to true, then block any messages. To the selection area from the mouse or keyboard. Let all other messages pass through to the. Windows default implementation of DefWndProc.
ajeethtechnotes.blogspot.com
My Technotes: November 2008
http://ajeethtechnotes.blogspot.com/2008_11_01_archive.html
Thursday, November 6, 2008. Browser Close Vs Session End in ASP.net. Browser Close Vs Session End in ASP.net. After a few R&D’s here goes my findings. There are n number of scenarios by which the browser can be closed viz. 1 Clicking the (x) button. 2 Clicking Alt F4. 3 File menu à Exit. 4 Alt f x. The OnUnload event will fire for all the above scenarios. So write a Javascript function like this which uses Remote scripting to Abandon the session in the Server side. Use remote scripting to.
ajeethtechnotes.blogspot.com
My Technotes: December 2008
http://ajeethtechnotes.blogspot.com/2008_12_01_archive.html
Saturday, December 27, 2008. Recently we faced a strange issue in one of the production servers. The session information was shared between 2 users in the ASP.net application. We then thought to print the Session ID in the browser and was perplexed to watch that 2 different sessions printing the same session id. I then googled out to see the possibility of. A session id getting duplicated but it was never possible. Then I got a vital information in the URL below. ASPNET page is stored in the HTTP.sys.
ajeethtechnotes.blogspot.com
My Technotes: Simple Authorization Framework
http://ajeethtechnotes.blogspot.com/2008/10/simple-authorization-framework.html
Thursday, October 9, 2008. Note: I cant upload the source code here. If you need the source code please mail me at ajeeth4u@gmail.com. The authorization framework provides a generic mechanism to authorize each user’s request to complete an operation. It could be a Database Write, Read or Delete. From a more generic view there exist the following entities. 1 Principal: – Any actor or role who initiates or request for an operation or Service. All the above entities could vary from a business to business...
ajeethtechnotes.blogspot.com
My Technotes: ASP.net Pitfall
http://ajeethtechnotes.blogspot.com/2008/12/aspnet-pitfall.html
Saturday, December 27, 2008. Recently we faced a strange issue in one of the production servers. The session information was shared between 2 users in the ASP.net application. We then thought to print the Session ID in the browser and was perplexed to watch that 2 different sessions printing the same session id. I then googled out to see the possibility of. A session id getting duplicated but it was never possible. Then I got a vital information in the URL below. ASPNET page is stored in the HTTP.sys.
ajeethtechnotes.blogspot.com
My Technotes: October 2008
http://ajeethtechnotes.blogspot.com/2008_10_01_archive.html
Sunday, October 12, 2008. This is one of the basics which every .Net developer has to know. Hence I would like to explain this with a proper example. Let us consider the following class. Public Employee(int empID, string name). ThisempID = empID;. ThisempName = name;. Private int empID;. Get { return empID; }. Set { empID = value; }. Private string empName = string.Empty;. Get { return empName; }. Set { empName = value; }. Now if I execute the folowing snippet of code. Bool eq = (emp1 = emp2);. Employee ...
ajeethtechnotes.blogspot.com
My Technotes: Browser Close Vs Session End in ASP.net
http://ajeethtechnotes.blogspot.com/2008/11/browser-close-vs-session-end-in-aspnet.html
Thursday, November 6, 2008. Browser Close Vs Session End in ASP.net. Browser Close Vs Session End in ASP.net. After a few R&D’s here goes my findings. There are n number of scenarios by which the browser can be closed viz. 1 Clicking the (x) button. 2 Clicking Alt F4. 3 File menu à Exit. 4 Alt f x. The OnUnload event will fire for all the above scenarios. So write a Javascript function like this which uses Remote scripting to Abandon the session in the Server side. Use remote scripting to.
ajeethtechnotes.blogspot.com
My Technotes: March 2009
http://ajeethtechnotes.blogspot.com/2009_03_01_archive.html
Wednesday, March 4, 2009. Accessing user name of a NTID using LDAP. Public static string GetFirstName(string NTID). Char[] seperator ={','};. Char[] sep1 = {'('};. String [] st = CheckLDAPUser(NTID).Split(seperator);. String[] sp = st[1].Split(sep1);. Return sp[0].ToString();. Private static string CheckLDAPUser(string ldapUserId). System.DirectoryServices.DirectoryEntry directoryEntry = new System.DirectoryServices.DirectoryEntry("LDAP:/ CompanyNameURL");. String fullName = " ;. View my complete profile.
ajeethtechnotes.blogspot.com
My Technotes: Accessing user name of a NTID using LDAP
http://ajeethtechnotes.blogspot.com/2009/03/accessing-user-name-of-ntid-using-ldap.html
Wednesday, March 4, 2009. Accessing user name of a NTID using LDAP. Public static string GetFirstName(string NTID). Char[] seperator ={','};. Char[] sep1 = {'('};. String [] st = CheckLDAPUser(NTID).Split(seperator);. String[] sp = st[1].Split(sep1);. Return sp[0].ToString();. Private static string CheckLDAPUser(string ldapUserId). System.DirectoryServices.DirectoryEntry directoryEntry = new System.DirectoryServices.DirectoryEntry("LDAP:/ CompanyNameURL");. String fullName = " ;. View my complete profile.