Click here to Skip to main content
15,917,568 members
Home / Discussions / C#
   

C#

 
AnswerRe: What would be the proper way to comment within this code? Pin
Luc Pattyn18-Nov-07 11:09
sitebuilderLuc Pattyn18-Nov-07 11:09 
AnswerRe: What would be the proper way to comment within this code? Pin
echuck6618-Nov-07 15:44
echuck6618-Nov-07 15:44 
QuestionLEXICAL ANALYSIS Pin
waheed awan18-Nov-07 8:37
waheed awan18-Nov-07 8:37 
AnswerRe: LEXICAL ANALYSIS Pin
DavidNohejl18-Nov-07 11:38
DavidNohejl18-Nov-07 11:38 
Questionhow to add row with checkboxes inside in table server control using c# Pin
ShaikhAffi18-Nov-07 8:18
ShaikhAffi18-Nov-07 8:18 
AnswerRe: how to add row with checkboxes inside in table server control using c# Pin
SABhatti18-Nov-07 13:00
SABhatti18-Nov-07 13:00 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
ShaikhAffi18-Nov-07 22:31
ShaikhAffi18-Nov-07 22:31 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
SABhatti19-Nov-07 14:08
SABhatti19-Nov-07 14:08 
Well ShaikhAffi, I have not tried anything like this but quickly I can give you one idea (there are definitely other ways too but right now I can give you this which will definitely work).

keep a hidden field or session variable, every time user clicks the button increase that field by 1 (on the server side not on the client) now in page load do this:

<br />
if(!IsPostBack)<br />
  preserveControls()<br />
<br />
protected void preserveControls()<br />
{<br />
  int noOfControls = (hiddenfield.Value.Length > 0) ? (int)hiddenfield.Value : 0;<br />
  if(noOfControls > 0)<br />
     for(int i=0; i < noOfControls; i++)<br />
     { // code to add your controls }<br />
}<br />
<br />


and in button ClickEvent add the control and increment the hiddenfieldValue by 1

-----

GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
ShaikhAffi19-Nov-07 22:27
ShaikhAffi19-Nov-07 22:27 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
SABhatti20-Nov-07 6:26
SABhatti20-Nov-07 6:26 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
ShaikhAffi20-Nov-07 22:52
ShaikhAffi20-Nov-07 22:52 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
SABhatti21-Nov-07 0:45
SABhatti21-Nov-07 0:45 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
ShaikhAffi21-Nov-07 10:55
ShaikhAffi21-Nov-07 10:55 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
SABhatti22-Nov-07 4:37
SABhatti22-Nov-07 4:37 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
ShaikhAffi23-Nov-07 8:54
ShaikhAffi23-Nov-07 8:54 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
ShaikhAffi23-Nov-07 9:05
ShaikhAffi23-Nov-07 9:05 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
SABhatti23-Nov-07 11:41
SABhatti23-Nov-07 11:41 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
ShaikhAffi23-Nov-07 12:12
ShaikhAffi23-Nov-07 12:12 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
ShaikhAffi24-Nov-07 6:20
ShaikhAffi24-Nov-07 6:20 
AnswerRe: how to add row with checkboxes inside in table server control using c# Pin
SABhatti24-Nov-07 11:25
SABhatti24-Nov-07 11:25 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
ShaikhAffi24-Nov-07 22:20
ShaikhAffi24-Nov-07 22:20 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
ShaikhAffi24-Nov-07 22:28
ShaikhAffi24-Nov-07 22:28 
GeneralRe: how to add row with checkboxes inside in table server control using c# Pin
ShaikhAffi28-Nov-07 9:52
ShaikhAffi28-Nov-07 9:52 
Questionfind the value member in listbox Pin
Mohammed Elkholy18-Nov-07 6:50
Mohammed Elkholy18-Nov-07 6:50 
AnswerRe: find the value member in listbox Pin
pmarfleet18-Nov-07 7:48
pmarfleet18-Nov-07 7:48 

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.