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
T

tarasp

@tarasp
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Add new cell in htmltable control
    T tarasp

    If you create the table like this:

    <asp:Table ID="MyTable" runat="server"></asp:Table>

    then you can add rows and/or cells like this:

    TableRow tr = new TableRow();
    TableCell td = new TableCell();

    tr.Controls.Add(td);
    MyTable.Controls.Add(tr);

    Tara

    ASP.NET help question

  • Looping
    T tarasp

    try this:

    int i=0;
    do { } while ( !sublist[i].DeleteLine(new Point(e.X, e.Y)) && (i++ < sublist.Count ));

    actually I would prefer to use the break statement, it is easier to understand

    int i = 0;
    do {
    if ( sublist[i].DeleteLine(new Point(e.X, e.Y) ) )
    break;

    } while (i++ < sublist.Count);

    :)

    Tara

    C# question data-structures regex help

  • Looping
    T tarasp

    there is nothing wrong with using break in this case, try this;

    int i=0;
    do
    {
    if (sublist[i].DeleteLine(new Point(e.X, e.Y)))
    break;
    } while (i++ < sublist.Count);

    If you are determined not to use a break you can do something like this, but I think the first example is easier to read and understand.

    int i=0;
    do { } while ( !sublist[i].DeleteLine(new Point(e.X, e.Y)) && (i++ < sublist.Count ));

    Tara

    C# question data-structures regex help

  • ASP.NET Subtle bug
    T tarasp

    You don't need to do all of that. You can get the actual control id from your java script like this:

    var MyControl = document.getElementById("<%=MyControl.ClientID%>");

    Tara

    Clever Code html csharp css asp-net sysadmin

  • Vista slow?
    T tarasp

    Is it just me or does Vista seem to be slower than Windows XP?

    Tara

    Windows API 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