Search

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

Matching Posts

  • Re: Page Life cycle

    There is a great colored diagram of the ASP.NET 2.0 events at http://hydrate.typepad.com/leo/2004/08/the_aspnet_v20_.html There aren't any descriptions of the events, but I find it a very handy reference. Enjoy! -Chris
    Posted to Getting Started (Forum) by Christopher Bowen on 7/8/2005
  • Re: Viewing methods of a ms base class?

    I second the recommendation of Reflector. Probably the most useful tool besides Visual Studio. However, keep in mind that the C# or VB.NET code you see won't be the same code that was written. Reflector does its best to reverse engineer from an assembly's embedded IL code, but some constructs are ambiguous and you won't see comments or original variable names (at least from a release build.) What you will see is (generally) a functional equivalent of the original code, and can certainly be used to
    Posted to Getting Started (Forum) by Christopher Bowen on 7/8/2005
  • Re: "Hour" class

    It's only a subjective call. Because the examples you gave were relatively straightforward, I probably wouldn't use the TimeSpan class for them. However, that doesn't mean there aren't many other cases where use of TimeSpan would be very helpful and would reduce the chances for logic errors (and the amount of custom code you have to maintain.) For more complex cases, such as converting months to seconds or minutes to days, I would absolutely encourage the use of TimeSpan. -Chris
    Posted to Getting Started (Forum) by Christopher Bowen on 6/30/2005
  • Re: Code Reusability

    Hi RHPT, One of the easiest ways is to use the new App_Code folder with ASP.NET 2.0. From http://msdn2.microsoft.com/library/t990ks23(en-us,vs.80).aspx : " You can store source code in the App_Code folder, and it will be automatically compiled at run time. The resulting assembly is accessible to any other code in the Web application. The App_Code folder therefore works much like the Bin folder, except that you can store source code in it instead of compiled code. The App_Code folder and its special
    Posted to Getting Started (Forum) by Christopher Bowen on 6/30/2005
  • Re: "Hour" class

    Well, this isn't new with .NET 2.0, but if you don't want the full arithmetic expressions in your code, you might consider using the trusty TimeSpan class. So your examples would be: // 1.2 hours to minutes Console.WriteLine(1.2 * 60); Console.WriteLine(TimeSpan.FromHours(1.2).TotalMinutes.ToString()); // 125 minutes to hours Console.WriteLine(125.0 / 60); Console.WriteLine(TimeSpan.FromMinutes(125).TotalHours.ToString()); Not sure it buys you too much in those cases, though. :) -Chris
    Posted to Getting Started (Forum) by Christopher Bowen on 6/30/2005
  • Re: Setting enter key default button when login control and search button on same page!!!

    Hi Justin, You could add a Panel control and set the DefaultButton property to the control you wish to receive a click when enter is pressed in one of the Panel's controls. (In addition to Panels, the Form itself also supports a DefaultButton property.) This way, you should be able to "bucket" the controls to cause the correct button to click on enter in each case. A related article - http://weblogs.asp.net/skoganti/archive/2004/09/20/231695.aspx Here's a simple Panel-based example (from: http:/
    Posted to Security (Forum) by Christopher Bowen on 6/28/2005
  • Re: Rather daft question I suppose but......

    Hi Sean, Yes, November (the week of the 7th) is correct for VS 2005. However, as announced at TechEd, the release will include SQL Server 2005 and BizTalk 2006 as well. Details are here: http://msdn.microsoft.com/launch2005/ (Also, according to the Microsoft Forums, the releases that week will include Visual Studio Team System as well.) As for launching projects before the officical release - yes, you can do that by signing the Beta 2 "Go-Live" license. Details are here: http://lab.msdn.microsoft
    Posted to Visual Studio 2005 (Forum) by Christopher Bowen on 6/28/2005
  • Re: another asp.net cache problem: page sliding isn't wprking properly

    Hi Luis, Every example of this that I've seen always includes a SetCacheability() call and avoids using the OutputCache directive. Try removing that directive and changing your OnLoad event to include: Response.Cache.SetExpires(DateTime.Now.AddSeconds(30)); Response.Cache.SetCacheability(HttpCacheability.Public); Response.Cache.SetSlidingExpiration(true); This is the code the ASP.NET quickstart example uses (as do other places), so hopefully it will resolve your issue. -Chris
    Posted to Getting Started (Forum) by Christopher Bowen on 6/27/2005
  • Re: custom membership provider : The 'type' attribute must be set to a valid Type name (format: <typename>[,<assemblyname>])

    Ah, well, glad you found the answer! Just, uh, ignore my post! :) Cheers, Chris
    Posted to Security (Forum) by Christopher Bowen on 6/27/2005
  • Re: custom membership provider : The 'type' attribute must be set to a valid Type name (format: <typename>[,<assemblyname>])

    Hi Bruno, I just read this thread which seems to have your answer. So your .config might become something like: ... passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="myMembershipProvider" type="BB50.myMembershipProvider, __Code " /> </providers> However, Fredrik Normén gives a word of caution about using "__Code" at the end of this thread . Hope this helps! -Chris
    Posted to Security (Forum) by Christopher Bowen on 6/27/2005
Page 1 of 2 (15 items) 1 2 Next >