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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
J

jclaeson

@jclaeson
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Synchronising VS.NET 2003
    J jclaeson

    Definitely, definitely, definitely, definitely, definitely, do not use SourceSafe unless you like having code that gets destroyed after a revision, doesnt stay consistent acros updates and/or like to have files get garbled. If you like all of these, then by all means use sourcesafe. However, if you'd like an easy to use and bulletproof source manager with Explorer integration and VS.NET integration, then check out Subversion: http://subversion.tigris.org/. Then check out the Explorer integration (http://tortoisesvn.tigris.org/) and VS.NET integration (http://ankhsvn.tigris.org/). I've used cvs for years with great success and subversion is even better. I also, unfortunately, had some bad run-ins with vss.

    ASP.NET question announcement csharp asp-net visual-studio

  • Problems using findcontrol
    J jclaeson

    I'll try enabling the viewstate this evening when I get home. I know I'm missing the first row, that's because there's a static header there so I don't care about that part. I wasn't thinking about the state... I just thought if I created the table dynamically on one postback, it'd be there on the next. Of course now I realize how this might not work. PS - thanks for the data caching article on Devhood!

    ASP.NET help csharp html asp-net sysadmin

  • Problems using findcontrol
    J jclaeson

    I'm having a problem finding my controls! In the asp.net page I've created a table using: <asp:Table id="tbl" runat="server"></asp:Table> that is filled dynamically based on user input. So, I create a number of rows and cells depending on how many the user requests. Here's how I'm dynamically creating the table: TableRow row3 = new TableRow(); cell1 = new TableCell(); cell2 = new TableCell(); cell1.Text = "![](\"images/up_select_image.gif\")"; TextBox title = new TextBox(); title.ID = "title"+i.ToString(); cell2.Controls.Add(title); row3.Cells.Add(cell1); row3.Cells.Add(cell2); tblMulti.Rows.Add(row3); I do this from 1 to some number n. Once the user submits the form, I need to find the controls and access the data in them. I've tried that doing this: for(int i = 1; i <= numImages; i++) { TextBox title = (TextBox)tblMulti.FindControl("title"+i.ToString()); status.Text = title.Text //status is a label used to test } The problem occurs at the line status.Text = ... The error I get is the standard Object Reference not set to an instance of an object. I've tried iterating through each control in the Table to print out the name of each id but when I do that I get nothing. I've also tried counting the rows and displaying them but again, I get nothing. The HTML is formed correctly if I view the source but it's like there are no rows in the table. Please help!! It's driving me nuts!!!!

    ASP.NET help csharp html asp-net sysadmin
  • Login

  • Don't have an account? Register

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