Click here to Skip to main content
15,890,282 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionurlrewriter.net Problem Pin
Jassim Rahma20-Jul-12 0:28
Jassim Rahma20-Jul-12 0:28 
AnswerRe: urlrewriter.net Problem Pin
AmitGajjar23-Jul-12 1:04
professionalAmitGajjar23-Jul-12 1:04 
AnswerRe: urlrewriter.net Problem Pin
_Amy23-Jul-12 1:36
professional_Amy23-Jul-12 1:36 
QuestionProblem: Popolating HTML Table Dynamically Pin
silentcore19-Jul-12 22:28
silentcore19-Jul-12 22:28 
AnswerRe: Problem: Popolating HTML Table Dynamically Pin
Pankaj Nikam20-Jul-12 4:07
professionalPankaj Nikam20-Jul-12 4:07 
GeneralRe: Problem: Popolating HTML Table Dynamically Pin
silentcore5-Aug-12 8:25
silentcore5-Aug-12 8:25 
GeneralRe: Problem: Popolating HTML Table Dynamically Pin
Pankaj Nikam5-Aug-12 14:46
professionalPankaj Nikam5-Aug-12 14:46 
GeneralRe: Problem: Popolating HTML Table Dynamically Pin
jkirkerx20-Jul-12 7:47
professionaljkirkerx20-Jul-12 7:47 
You should create a container, it can be a table called table_Container, and then loop threw the dataset, and create your tableRow and cells in code.

You can use the repeater control, but I think you should learn the basics first. Do not use Response.write(""), because response write is reserved for higher level responses like a page error code, or a data set or something.

PHP doesn't have html objects, so echo("tr" is quite common, but is poor practice in general.

foreach (DataRow dr in dt.Rows) {
    
    TableRow tr = new TableRow;
    table_Container.controls.add(tr);
    
    TableCell td = new TableCell;
    tr.controls.add(td);

    Label lbl_UserName = new Label;
    lbl_UserName.text = dr["username"];
    td.controls.add(lbl_UserName);

}

GeneralRe: Problem: Popolating HTML Table Dynamically Pin
Eone James23-Jul-12 23:23
Eone James23-Jul-12 23:23 
QuestionASP.net Control Pin
safi belim19-Jul-12 5:31
safi belim19-Jul-12 5:31 
AnswerRe: ASP.net Control Pin
R. Giskard Reventlov19-Jul-12 5:39
R. Giskard Reventlov19-Jul-12 5:39 
GeneralRe: ASP.net Control Pin
safi belim19-Jul-12 7:06
safi belim19-Jul-12 7:06 
GeneralRe: ASP.net Control Pin
R. Giskard Reventlov19-Jul-12 7:22
R. Giskard Reventlov19-Jul-12 7:22 
QuestionWhat is ref and out and how to use in asp.net ? Pin
NeerajYadavMca2k518-Jul-12 21:23
NeerajYadavMca2k518-Jul-12 21:23 
AnswerRe: What is ref and out and how to use in asp.net ? Pin
Richard MacCutchan18-Jul-12 22:07
mveRichard MacCutchan18-Jul-12 22:07 
AnswerRe: What is ref and out and how to use in asp.net ? Pin
Sandeep Mewara18-Jul-12 22:39
mveSandeep Mewara18-Jul-12 22:39 
AnswerRe: What is ref and out and how to use in asp.net ? Pin
ashjassi17-Aug-12 2:55
ashjassi17-Aug-12 2:55 
QuestionSMPT server not sent an Email to gmail or yahoo mails Pin
Muhammad Fahim Baloch18-Jul-12 19:57
Muhammad Fahim Baloch18-Jul-12 19:57 
AnswerRe: SMPT server not sent an Email to gmail or yahoo mails Pin
Rajesh Buddaraju19-Jul-12 6:15
Rajesh Buddaraju19-Jul-12 6:15 
AnswerRe: SMPT server not sent an Email to gmail or yahoo mails Pin
jkirkerx19-Jul-12 8:19
professionaljkirkerx19-Jul-12 8:19 
AnswerRe: SMPT server not sent an Email to gmail or yahoo mails Pin
phani.sv21-Jul-12 0:37
phani.sv21-Jul-12 0:37 
Questionretain scrollbar position Pin
dcof18-Jul-12 8:47
dcof18-Jul-12 8:47 
AnswerRe: retain scrollbar position Pin
Sandeep Mewara18-Jul-12 9:26
mveSandeep Mewara18-Jul-12 9:26 
GeneralRe: retain scrollbar position Pin
dcof18-Jul-12 11:39
dcof18-Jul-12 11:39 
GeneralRe: retain scrollbar position Pin
Trak4Net18-Jul-12 12:35
Trak4Net18-Jul-12 12:35 

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.