Click here to Skip to main content
15,915,789 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Plz find out error in my code. Pin
DeepToot24-Apr-07 5:21
DeepToot24-Apr-07 5:21 
AnswerRe: Plz find out error in my code. Pin
Sujit Gupta24-Apr-07 7:57
Sujit Gupta24-Apr-07 7:57 
Questionprint xsl Pin
TheEagle24-Apr-07 2:13
TheEagle24-Apr-07 2:13 
QuestionConfigurationsetting Class? Pin
Care Career24-Apr-07 0:25
Care Career24-Apr-07 0:25 
AnswerRe: Configurationsetting Class? Pin
Colin Angus Mackay24-Apr-07 0:36
Colin Angus Mackay24-Apr-07 0:36 
AnswerRe: Configurationsetting Class? Pin
Sandeep Kumar24-Apr-07 0:50
Sandeep Kumar24-Apr-07 0:50 
AnswerRe: Configurationsetting Class? Pin
Sathesh Sakthivel24-Apr-07 1:40
Sathesh Sakthivel24-Apr-07 1:40 
QuestionAdding a row to ASP.NET table programatically Pin
Rohde24-Apr-07 0:01
Rohde24-Apr-07 0:01 
Hi,

I have an .aspx page with an asp:Table and a button. When the button is clicked I want the clik event handler to add a row to the table programatically.

The code in the event handler is like so:

<br />
        // Create a new row.<br />
        TableRow row = new TableRow();<br />
<br />
        TableCell cell = new TableCell();<br />
        cell.BorderColor = Color.Black;<br />
        cell.BorderStyle = BorderStyle.Dashed;<br />
        cell.BorderWidth = new Unit("1");<br />
<br />
        <br />
        cell.Text = "test";<br />
<br />
        row.Cells.Add(cell);<br />
        <br />
<br />
        tblEval.Rows.Add(row);<br />
<br />


Unfortuantely I can only see the first row getting added on the page - subsequent button clicks have no effect; although when stepping through in the debugger I can see that the asp:table actually gets the new rows added to it, I just can't see it.

What am I doing wrong? Any help is very much appreciated.



"When you have made evil the means of survival, do not expect men to remain good. Do not expect them to stay moral and lose their lives for the purpose of becoming the fodder of the immoral. Do not expect them to produce, when production is punished and looting rewarded. Do not ask, `Who is destroying the world?' You are."

-Atlas Shrugged, Ayn Rand

AnswerRe: Adding a row to ASP.NET table programatically Pin
Spunky Coder24-Apr-07 0:48
Spunky Coder24-Apr-07 0:48 
GeneralRe: Adding a row to ASP.NET table programatically Pin
Rohde24-Apr-07 1:06
Rohde24-Apr-07 1:06 
GeneralRe: Adding a row to ASP.NET table programatically Pin
enjoycrack24-Apr-07 1:12
enjoycrack24-Apr-07 1:12 
GeneralRe: Adding a row to ASP.NET table programatically Pin
Rohde24-Apr-07 1:58
Rohde24-Apr-07 1:58 
AnswerRe: Adding a row to ASP.NET table programatically Pin
Nouman Bhatti24-Apr-07 1:17
Nouman Bhatti24-Apr-07 1:17 
QuestionAsp.net page cannot be displayed Pin
chater buster24-Apr-07 0:00
chater buster24-Apr-07 0:00 
AnswerRe: Asp.net page cannot be displayed Pin
Sandeep Kumar24-Apr-07 0:29
Sandeep Kumar24-Apr-07 0:29 
AnswerRe: Asp.net page cannot be displayed Pin
Sufyan_shani24-Apr-07 2:27
Sufyan_shani24-Apr-07 2:27 
QuestionASP.NET 2.0 Pin
Darshan_shah24-Apr-07 0:00
Darshan_shah24-Apr-07 0:00 
AnswerRe: ASP.NET 2.0 Pin
Dave Sexton24-Apr-07 3:24
Dave Sexton24-Apr-07 3:24 
GeneralRe: ASP.NET 2.0 Pin
Darshan_shah26-Apr-07 20:48
Darshan_shah26-Apr-07 20:48 
Questionhelp me in downloading attachment in email client Pin
farria23-Apr-07 23:19
farria23-Apr-07 23:19 
Questionopen new windows Pin
alimohammed23-Apr-07 23:16
alimohammed23-Apr-07 23:16 
AnswerRe: open new windows Pin
enjoycrack23-Apr-07 23:36
enjoycrack23-Apr-07 23:36 
GeneralRe: open new windows Pin
alimohammed24-Apr-07 0:02
alimohammed24-Apr-07 0:02 
GeneralRe: open new windows Pin
enjoycrack24-Apr-07 0:08
enjoycrack24-Apr-07 0:08 
Questionhow can i send sms to any no. Pin
Ajeet mittal23-Apr-07 22:57
Ajeet mittal23-Apr-07 22:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.