Posts

Showing posts from January, 2006

Discount training for SIG Members

Solutient is offering a wide variety of .Net classes at a discounted rate exclusively for SIG members. The complete list is posted on the SIG web site at http://www.clevelanddotnet.info/ under the "Links" section. To receive the C#/VB.Net special interest group membership preferred pricing, you must mention promotion code A16. If you have any questions, please contact Steve Luc at SLuc@solutient.com .

Setting the Default Button in ASP.Net 1.1

Q: I have an ASP.Net 1.1 search form with several buttons on it (Search, Clear, Logoff) and a search word field. Currently, if the user enters text in the "Search Word” fields, and presses ENTER, the logoff button (located on the banner at the top of the form) is activated and the user is prompted if he wants to logoff. How can I change it so the ENTER key will activate the “Search” button instead? In other words, how can I make the “Search” button, the default button? A: In ASP.Net the enter button executes the first button on the page. So create a button that is not visible (width is set to 1 px) and placed it at the top of the page before the logoff button. Change the background color if needed and make sure it cannot be seen. Then set the click event in .aspx page to execute the search button click event. When the user presses enter, the first button is executed and it will call the search method.

An invite to all SIG members

BRING YOUR "A" GAME. BRULANT GAME NIGHT! You're invited to test your gaming skills against your fellow technology gurus. Join us for networking, food, drinks, and the chance to win bragging rights as the master of: * Texas Hold 'Em * Halo 2 * Chess * Foozball * Human Tic-Tac-Toe * Madden * CounterStrike * and more! Throughout the night, we'll be giving away great prizes. Feel free to suggest any other games we might consider, and bring a friend, the more the merrier! When? Thursday, February 2nd, 5:30 p.m.-?Where? Brulant's NEW Headquarters3700 Park East Drive, Suite 300Beachwood, OH 44122To Register: Visit http://www.brulant.com/events/event.asp?id=508 , and click on the "register" button for each person that plans on attending! BRENDA M. PATTERSON Marketing Communications Manager 216 896 8938 / direct brenda.patterson@brulant.com BRULANT, Inc. 3700 park east drive, suite 300 beachwood, ohio 4...

Accessing Version Number in .Net

Q: How do I programatically access the version number of an ASP.Net application? A: The version number, and other general information, is kept in the AssemblyInfo.vb (for VB.Net projects). All information is housed in attributes in the file, as listed below: Assembly: AssemblyTitle("MyApp") Assembly: AssemblyDescription("A Sample Program") Assembly: AssemblyCompany("ABC Software Corp.") Assembly: AssemblyProduct("") Assembly: AssemblyCopyright("2006") Assembly: AssemblyTrademark("") Assembly: CLSCompliant(True) Assembly: AssemblyVersion("2.0.*") To access the application version through .Net code, use System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() . The value displayed will be 4 sets of numbers, separated by '.' (similar to TCP/IP address). The version information for an assembly consists of the following four values: Major Version Minor Version Build Number Revision

MSDN Beta Home Page

One of the tips I give to developers who want to stay up to date on the latest .Net information is to view MSDN web site ( http://msdn.microsoft.com ) regularly. It's a good idea to set it as your default home page so you can glance the headlines everytime you open a browser. Expanding on that idea, Microsoft is now working on a Beta MSDN site ( http://msdn.microsoft.com/aboutmsdn/betahomepage/default.htm ) . The 2 big features of the new site are Country specific content and "My MSDN" for personalized content management.