Click here to Skip to main content
15,919,121 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Problem with web application Pin
Baran M25-May-09 7:17
Baran M25-May-09 7:17 
QuestionAnti fraud voting system w/o login. Pin
Mohammad A Gdeisat25-May-09 5:26
Mohammad A Gdeisat25-May-09 5:26 
AnswerRe: Anti fraud voting system w/o login. Pin
N a v a n e e t h25-May-09 16:38
N a v a n e e t h25-May-09 16:38 
GeneralRe: Anti fraud voting system w/o login. Pin
Mohammad A Gdeisat25-May-09 16:41
Mohammad A Gdeisat25-May-09 16:41 
GeneralRe: Anti fraud voting system w/o login. Pin
N a v a n e e t h25-May-09 16:51
N a v a n e e t h25-May-09 16:51 
GeneralRe: Anti fraud voting system w/o login. Pin
Christian Graus25-May-09 18:13
protectorChristian Graus25-May-09 18:13 
AnswerRe: Anti fraud voting system w/o login. Pin
binarymax27-May-09 3:48
binarymax27-May-09 3:48 
Questiontable at run ime Pin
jainiraj25-May-09 5:25
jainiraj25-May-09 5:25 
I want to generate a table at run time in a panel.I want 5 columns in each row.
here is code-



Table tbl = new Table();
tbl.Style.Add("text-align", "center");
foreach (DataRow dr in dt.Rows)
{
TableRow tr = new TableRow();

TableCell tc1 = new TableCell();
TableCell tc2 = new TableCell();
TableCell tc3 = new TableCell();
TableCell tc4 = new TableCell();
TableCell tc5 = new TableCell();

tc1.BackColor = Color.WhiteSmoke;
tc2.BackColor = Color.WhiteSmoke;
tc3.BackColor = Color.WhiteSmoke;
tc4.BackColor = Color.WhiteSmoke;
tc5.BackColor = Color.WhiteSmoke;

tc1.Width = 185;
tc2.Width = 185;
tc3.Width = 185;
tc4.Width = 185;
tc5.Width = 185;

//tc1.BorderWidth = 1;
//tc2.BorderWidth = 1;
//tc3.BorderWidth = 1;
//tc4.BorderWidth = 1;
//tc5.BorderWidth = 1;

tc1.Style.Add("text-align","center");
tc2.Style.Add("text-align","center");
tc3.Style.Add("text-align","center");
tc4.Style.Add("text-align","center");
tc5.Style.Add("text-align","center");

tr.Width = 926;
tr.Height = 23;

tr.BorderWidth = 1;

tr.Controls.Add(tc1);
tr.Controls.Add(tc2);
tr.Controls.Add(tc3);
tr.Controls.Add(tc4);
tr.Controls.Add(tc5);
//tc.Width = 110;
//tc.Height = 22;
//tc.Font.Size = 40;
tc1.Text = "Niraj jain";
//tr.Controls.Add(tc);

tbl.Controls.Add(tr);

}
Panel5.Controls.Add(tbl);

but this table is not generating inside the panel.It is below the panel.
plz help....
AnswerRe: table at run ime Pin
Paddy Boyd25-May-09 5:34
Paddy Boyd25-May-09 5:34 
AnswerRe: table at run ime Pin
Baran M25-May-09 7:14
Baran M25-May-09 7:14 
GeneralRe: table at run ime Pin
Baran M25-May-09 7:22
Baran M25-May-09 7:22 
QuestionError message coming while selecting data sources of Microsoft reports Pin
Milind R Chavan25-May-09 5:17
Milind R Chavan25-May-09 5:17 
QuestionHow to Set Tab Index inside the modalpopup extender Pin
Pawan Kiran25-May-09 4:18
Pawan Kiran25-May-09 4:18 
QuestionMove up and down in Grid Pin
member2725-May-09 3:49
member2725-May-09 3:49 
AnswerRe: Move up and down in Grid Pin
Baran M25-May-09 18:48
Baran M25-May-09 18:48 
GeneralRe: Move up and down in Grid Pin
member2726-May-09 5:59
member2726-May-09 5:59 
QuestionHow to concate differenct controls data and show it in a textbox Pin
Pawan Kiran25-May-09 3:31
Pawan Kiran25-May-09 3:31 
AnswerRe: How to concate differenct controls data and show it in a textbox Pin
Eduard Keilholz25-May-09 3:50
Eduard Keilholz25-May-09 3:50 
GeneralRe: How to concate differenct controls data and show it in a textbox Pin
Pawan Kiran25-May-09 4:15
Pawan Kiran25-May-09 4:15 
QuestionWhat is operator used in ASP.NET2.0 instead od "& _" Pin
YazhiniP25-May-09 2:26
YazhiniP25-May-09 2:26 
AnswerRe: What is operator used in ASP.NET2.0 instead od "& _" Pin
Ramesh Swaminathan25-May-09 2:33
Ramesh Swaminathan25-May-09 2:33 
AnswerRe: What is operator used in ASP.NET2.0 instead od "& _" Pin
Baran M25-May-09 2:52
Baran M25-May-09 2:52 
GeneralRe: What is operator used in ASP.NET2.0 instead od "& _" Pin
padmanabhan N25-May-09 3:01
padmanabhan N25-May-09 3:01 
QuestionRe: What is operator used in ASP.NET2.0 instead od "& _" Pin
YazhiniP25-May-09 3:03
YazhiniP25-May-09 3:03 
AnswerRe: What is operator used in ASP.NET2.0 instead od "& _" Pin
Baran M25-May-09 3:06
Baran M25-May-09 3:06 

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.