Search

You searched for the word(s): userid:7503

Matching Posts

  • Nested Repeater AddHandler ItemCommand Not Firing

    For those of you who program mostly in code behind, like I do, I have a gotcha for a nested repeater addhandler. The nested repeater is defined in the code in front: < asp : Repeater ID ="repTestKeyControl" runat ="server"> Your nested repeater contains a button that needs to fire a click event, so you add a "CommandName." < asp : Button ID ="btnEdit" runat ="server" Text ="Edit" CommandName ="cmdEdit" /> In the codebehind, you typically retrieve your nested repeater and add the handlers
    Posted to Nannette Thacker ShiningStar.net (Weblog) by nannette on 10-30-2009, 12:00 AM
    Filed under: Visual Basic, ASP.NET, VB.NET
  • Programmatic Menus: Optimize Your Menus in Code-behind

    In this article, I want to show how you can setup your menus in code-behind and avoid redundancy. I recently inherited a web application with the menu system setup in the code-in-front. Each menu shared identical values, other than the visibility. Notice that numerous properties are defined more than once, above and below the MenuItems. What's as bad is that this entire block of code was repeated for 6 additional menus. Example of Redundant, Bloated Menu Setup <asp:Menu StaticMenuItemStyle-Font
    Posted to Nannette Thacker ShiningStar.net (Weblog) by nannette on 06-03-2009, 12:00 AM
    Filed under: ASP.NET, General Software Development, Web Forms, ASP.NET Web Application Development, VB.NET
  • Storing and Retrieving Objects from View State - The Serializable Attribute

    View State allows you to retain page property values, such as string and numeric types, between postbacks. You may also store class objects in View State, but you must first add the Serializable attribute. If you do not add the Serializable attribute, you will receive this error when trying to add the object to View State: Type 'SuchAndSuch.ThisAndThat' in Assembly 'SuchAndSuch, Version 1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable. Here is an example of adding Serializable
    Posted to Nannette Thacker ShiningStar.net (Weblog) by nannette on 03-10-2009, 12:00 AM
    Filed under: ASP.NET, General Software Development
  • Filtering Parameters in a SQL 2008 Stored Procedure

    Ash explains the concept of Filtering Parameters in a Stored Procedure in this blog post. This method is safer and more beneficial than dynamically creating and passing a sql query from the code layer and using sp_executesql, as it helps to avoid sql injection attacks. However, the author explains there is a pitfall because you may sacrifice index optimization. Check it out! May your dreams be in ASP.NET and your code free from sql injections! Nannette Thacker
    Posted to Nannette Thacker ShiningStar.net (Weblog) by nannette on 03-05-2009, 12:00 AM
    Filed under: ASP.NET, SQL Server, General Software Development, stored procedures, SQLServer2008
  • Using Icons in Web Design

    Nathan Barry posted a new article on How To Use Icons To Support Content In Web Design . Besides his design insights, he also provides images that depict actual live website examples and links to those sites. His tips include How to Use Icons, Purpose and Placement, Icon Styles, and numerous examples. Check it out! May your dreams be in ASP.NET! Nannette
    Posted to Nannette Thacker ShiningStar.net (Weblog) by nannette on 03-04-2009, 12:00 AM
    Filed under: General Software Development, Web Design
  • Kudos to Telerik Support!

    I have been using Telerik controls for about a year now. First, on a client site project, and then I licensed it for my own development needs as a consultant. I have to say I am tickled with the Telerik support. 1) Telerik forums are great. Ask a question, get a quick answer from Telerik staff and users. Yes, the Telerik staff actually responds in the forums. You would not believe the number of forums I've posted to where the people/product supporting the forum do not participate. Talk about trying
    Posted to Nannette Thacker ShiningStar.net (Weblog) by nannette on 02-27-2009, 12:00 AM
    Filed under: ASP.NET, General Software Development
  • VB.NET to C# Conversion Hints, Tips and Gotchas

    If you're a VB.NET developer learning C# or converting your VB code to C#, here are a few hints, tips and gotchas. But first, let me share a few important links with you: VB.NET and C# Comparison - This is one of the most accurate and complete charts I've seen comparing VB.NET with its C# equivalent. Convert VB.NET to C# and Convert C# to VB.NET - developerFusion provides these free online utilities to automatically convert VB.NET to C# and C# to VB.NET. It also supports the .NET 3.5 framework. There
    Posted to Nannette Thacker ShiningStar.net (Weblog) by nannette on 02-11-2009, 12:00 AM
    Filed under: ASP.NET, General Software Development, C#, VB.NET
  • SQL Server 2008 Web Edition and Express Edition Errors Resolved

    Since I had purchased the SQL Server 2008 Web Edition for my database server, I decided to also install it on my development box. But when I tried to install the Management Tools, it errored with: "Previous release of Microsoft Visual Studio 2008." I click the "failed" link and it complained... "Upgrade MS Visual Studio 2008 to the SP1 before installing sql server 2008." I researched this error and was told this occurs if you had a previous beta version of Visual Studio 2008 and that you also needed
    Posted to Nannette Thacker ShiningStar.net (Weblog) by nannette on 02-01-2009, 12:00 AM
    Filed under: ASP.NET, SQL Server, General Software Development, Visual Studio 2008, SQLServer2008
  • Attributes.Add: Adding Javascript Click Events Programmatically in Code-Behind

    I'm going to demonstrate how to add javascript events programmatically in codebehind using the Attributes.Add method. You may want to add your javascript attributes programmatically so that you can populate the values from a database. For demonstration purposes, I'm going to add javascript click events to an image. Let's start out with this cute little script contributed by Paul Kurenkunnas that I found on Javascript.Internet.Com (click to see it in action), which enlarges and reduces an image size
    Posted to Nannette Thacker ShiningStar.net (Weblog) by nannette on 01-29-2009, 12:00 AM
    Filed under: General Software Development, Images, ASP.NET Web Application Development, Javascript
  • Employers Should Promote Fitness Because Fit Programmers Program Better

    Employers should encourage programmers to exercise and be fit, as a recent study found that those who are fit have four times less brain shrinkage than those who aren't. And seriously, that can only help you be a better programmer, right? A recent Reader's Digest blurb in the Health section tells of an Alzheimer's study. "A University of Kansas study found that patients who were fit had four times less brain shrinkage (meaning cell death) than those who were out of shape. The benefits of exercise
    Posted to Nannette Thacker ShiningStar.net (Weblog) by nannette on 01-28-2009, 12:00 AM
    Filed under: Community News, General Software Development
Page 1 of 10 (94 items) 1 2 3 4 5 Next > ... Last »
Microsoft Communities