Home / ASP.NET Weblogs

Browse by Tags

Related Posts

  • Abstracting the RegularExpressionValidator’s ValidationExpression

    The RegularExpressionValidator is one of the most useful validators that come standard with ASP .NET. The RegularExpressionValidator allows you to validate, on both client-side and server-side, whether the value of an associated input control matches the pattern specified in the ValidationExpression...
    Posted to A.I on the 1s and 0s (Weblog) by alnurismail on 11-10-2008, 12:00 AM
    Filed under: C#, Validation, ASP .NET
  • “Yama-Hama! It's fright night!” #1

    Since today is Halloween I thought I’d share a scary ghost bug story that I ran into this week. What better way to get everyone into the Halloween spirit? Background: Running a load test, using one webtest, to gauge how the application handles heavy loads for a very specific scenario Problem: Application...
    Posted to A.I on the 1s and 0s (Weblog) by alnurismail on 10-31-2008, 12:00 AM
    Filed under: C#, ASP .NET, Web Test, Load Test
  • STOP using Response.Redirect(url)

    OK, I made the title a little misleading to grab your attention - I'm sneaky like that. Seriously though, there are a few things about Response.Redirect(url) that every ASP .NET developer needs to know. Using Response.Redirect() to help with site navigation is standard and all ASP .NET developers use...
    Posted to A.I on the 1s and 0s (Weblog) by alnurismail on 10-27-2008, 12:00 AM
    Filed under: C#, ASP .NET
  • GridView RowDataBound Alternating Row RowState issue

    This was pissing me off for a good hour: RowDataBound event after you call edit on a row, I was checking for this row's state like this: e.Row.RowState == DataControlRowState .Edit this worked fine with rows No 1, 3, 5... (non-alternating rows), however with alternating rows of same GridView it did NOT...
    Posted to Object reference not set to an instance of an object (Weblog) by funky_rus on 10-27-2008, 12:00 AM
    Filed under: ASP.NET, ASP .NET, GridView, C#, .NET, e.Row.RowState, DataControlRowState, RowState
  • ASP .NET - A ValidationSummary with some style

    Using the built-in ASP .NET validation controls makes validation a breeze. The controls are an easy and powerful way to validate form data client-side and server-side. If you need to display a summarized list of all the validation errors on a page you can use the ValidationSummary control. Unfortunately...
    Posted to A.I on the 1s and 0s (Weblog) by alnurismail on 10-16-2008, 12:00 AM
    Filed under: C#, Validation, ASP .NET, ValidationSummary
  • ASP .NET - Validators in a MultiView

    A few weeks ago I needed to create a step-by-step wizard that required more functionality than the built-in Wizard control provided out of the box. I created my custom wizard by taking advantage of the MultiView control which is essentially what the Wizard control is based on. After creating my custom...
    Posted to A.I on the 1s and 0s (Weblog) by alnurismail on 10-07-2008, 12:00 AM
    Filed under: C#, MultiView, Wizard, Validation, ASP .NET
  • AJAX AutoComplete with DataSet

    /// <summary> /// This webservice is used with AJAX AutoComplete Extender /// to populate possible car makes for textbox on Sell Your Car form /// </summary> [ ScriptService ()] [ WebService (Namespace = "http://tempuri.org/" )] [ WebServiceBinding (ConformsTo = WsiProfiles .BasicProfile1_1...
    Posted to Object reference not set to an instance of an object (Weblog) by funky_rus on 02-25-2008, 12:00 AM
    Filed under: ASP .NET, C#, .NET, SQL, AutoCompleteExtender, DataSet
  • Report in formatted Excel file

    #region GenerateExcel private void Generate_Excel_Report() { //update month var to prev month Prev_rMonth = rMonth - 1; Prev_rYear = rYear; if ( Prev_rMonth == 0 ) { Prev_rMonth = 12; Prev_rYear = rYear - 1; } string fileName = System.IO. Path .GetFileNameWithoutExtension(System.IO. Path .GetTempFileName...
    Posted to Object reference not set to an instance of an object (Weblog) by funky_rus on 02-19-2008, 12:00 AM
    Filed under: ASP .NET, C#, Visual Studio, .NET, Report, Excel
  • CSV to TextReader

    /// <summary> /// Take a file path and return a TextReader /// </summary> /// <param name="file_path"></param> /// <returns></returns> private TextReader OpenFile ( string file_path) { try { // Read the CSV file in to a TextReader TextReader _rdr = File .OpenText(file_path...
    Posted to Object reference not set to an instance of an object (Weblog) by funky_rus on 02-19-2008, 12:00 AM
    Filed under: ASP.NET, ASP .NET, C#, Visual Studio, .NET, CSV, System.IO, TextReader
  • .NET ArrayList of Objects

    /// <summary> /// public class. /// </summary> public class DealerShip { ... /// <summary> /// Franchise object /// </summary> public class objFranchise { public string Name; public bool IsSales; public bool IsService; } /// <summary> /// public ArrayList /// </summary>...
    Posted to Object reference not set to an instance of an object (Weblog) by funky_rus on 02-05-2008, 12:00 AM
    Filed under: ArrayList, Object, ASP .NET, GridView, C#, Visual Studio
Page 1 of 2 (15 items) 1 2 Next >