Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Andy Smith

@Andy Smith
About
Posts
154
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Think about it
    A Andy Smith

    I'm fairly certain that the fxcop rule you are referencing is a design guidline only, not from the common language specification. It is only a suggestion. I'm pretty sure that the only reference to casing in the CLS is that you can't use only case to differentiate public members on a type, even if your language supports it.

    The Lounge delphi question

  • Is this a bug?
    A Andy Smith

    There is no bug in IMageButton. input type="image" does not call the __doPostBack function because it is one of the html4 elements which automatticly posts the form when clicked. As far as events not firing, the following page works fine for me. <script runat="server" language="c#" > protected void Image_Click( Object sender, ImageClickEventArgs e ) { Result.Text = "Clicked"; } </script> <html><body><form runat="server" > <asp:ImageButton runat="server" OnClick="Image_Click" ImageUrl="foo.jpg" /> <asp:Label runat="server" Id="Result" EnabledViewState="False" /> </form></body></html>

    ASP.NET javascript design help question

  • selecting items in List Control
    A Andy Smith

    Check out my free CheckedListBox control.

    ASP.NET question

  • Loop thru ListBox selected items?
    A Andy Smith

    Check out my free DualList control.

    ASP.NET question

  • enter key and initial cursor point
    A Andy Smith
    1. Use my free DefaultButtons control. 2) Use my free FirstFocus control.
    ASP.NET question csharp help

  • Method not found: System.String System.Web.UI.WebControls.ListControl.get_SelectedValue
    A Andy Smith

    from the msdn docs for SelectedValue: "Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework. " which means that the host that it doesn't work on... is running .net 1.0.

    ASP.NET csharp dotnet design sysadmin help

  • Determine if .NET is installed on CLIENT?
    A Andy Smith

    If they are using IE, then their useragent string contains information on what version of the clr they have.

    ASP.NET announcement csharp dotnet visual-studio

  • Singletons: Static ctors or Monitors?
    A Andy Smith

    acorrding to this article, the best way is thus:// .NET Singleton sealed class Singleton { private Singleton() {} public static readonly Singleton Instance = new Singleton(); }
    as for your threading question: "What about thread-safe initialization? The Framework addresses this too. The Framework internally guarantees thread safety on static type initialization."

    .NET (Core and Framework) csharp dotnet json question

  • radio button datagrid
    A Andy Smith

    use my free RowSelectorColumn.

    ASP.NET help

  • StackOverflowException
    A Andy Smith

    something like this: public struct TradeData { public object OrderTime { get { return orderTime; } set { orderTime = value; } } private Object orderTime; }

    C# question csharp data-structures regex help

  • StackOverflowException
    A Andy Smith

    your problem is the way you wrote the properties. //struct public struct TradeData { public object orderTime { get { return orderTime; } set { orderTime = value; } } this is a c# translation of the resulting IL created for that: public Object get_orderTime() { return get_orderTime(); } public set_orderTime(Object value) { set_orderTime(value); } both of these will obviously recurse until you stackoverflow. either make those properties into fields, or provide internal storage for the public property.

    C# question csharp data-structures regex help

  • Reusing Forms
    A Andy Smith

    make these "forms" as usercontrols instead.

    C# csharp delphi question workspace

  • Render code from control designer in code-behind
    A Andy Smith

    No.

    ASP.NET question csharp

  • Constant Reference
    A Andy Smith

    non-editable parameters is not supported by the CLS nor c#. In order to simulate this, you can make a clone of the object you are passing in.

    C# csharp c++

  • Accessing viewstate from Component Object
    A Andy Smith

    while you can cast HttpContext.Current.Handler to System.Web.UI.Page, the ViewState is a protected property. You can't access it from a seperate component. You would be better off deriving from System.Web.UI.Control.

    ASP.NET question

  • Application &amp; Window positions
    A Andy Smith

    http://weblogs.asp.net/asmith/posts/3799.aspx

    C# question csharp

  • Catpuring Button Press In A WebForm
    A Andy Smith

    To associate button click events with a postback caused by pressing enter, use my DefaultButtons control.

    ASP.NET c++ html com question

  • Reg focus problem in user control
    A Andy Smith

    focusing non-input controls doesn't really make much sense for web forms. If your user control doesn't contain any input controls, what do you expect the focusing to _do_?

    ASP.NET question html help

  • Irc Client samples
    A Andy Smith

    in addition, check out my irc client lib, Nebo.

    C# sysadmin question

  • Default Button when ENTER is pressed
    A Andy Smith

    you are right, there is nothing built in for this. check out my free DefaultButtons control.

    ASP.NET tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups