社区
C#
帖子详情
关于 PlaceHolder 问题
zlj303
2007-09-10 11:29:14
谁能帮帮我,
已经使用了PlaceHolder1.Controls.Clear();
调用
PlaceHolder1.Controls.Add(table);
确定table中的内容已经改变
而PlaceHolder1显示出来的为什么还是没有变化??
如果我让table多追加几行,前面的几行还是原来的,后面的倒是追加上去了??
...全文
234
4
打赏
收藏
关于 PlaceHolder 问题
谁能帮帮我, 已经使用了PlaceHolder1.Controls.Clear(); 调用 PlaceHolder1.Controls.Add(table); 确定table中的内容已经改变 而PlaceHolder1显示出来的为什么还是没有变化?? 如果我让table多追加几行,前面的几行还是原来的,后面的倒是追加上去了??
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
zlj303
2007-09-10
打赏
举报
回复
很急,谁能帮帮我啊??
zhchg6666
2007-09-10
打赏
举报
回复
up
zlj303
2007-09-10
打赏
举报
回复
上面的发错了,这是我写的代码,帮我看看哪里错了:
PlaceHolder1.Controls.Clear();
AuthorDb verty = new AuthorDb();
string finance_id = fin_id.Value.Substring(0, fin_id.Value.Length - 1);
string[] title ={ "finance_id", "house" };
string sql = "select freight,hou_id from finance where finance_id in (" + finance_id + ")";
SqlDataReader ddr = verty.getDataRead(sql);
Table table = new Table();
table.CellPadding = 1;
table.CellSpacing = 1;
table.BorderStyle = 0;
table.BackColor = Color.Black;
TableRow tablerow = new TableRow();
for (int i = 0; i < 2; i++)
{
TableCell tablecell = new TableCell();
tablecell.Attributes.Add("align", "center");
tablecell.Width = Unit.Pixel(65);
tablecell.BackColor = Color.White;
Label label = new Label();
label.Text = title[i];
tablecell.Controls.Add(label);
tablerow.Controls.Add(tablecell);
}
table.Controls.Add(tablerow);
while (ddr.Read())
{
tablerow = new TableRow();
TableCell tablecell = new TableCell();
tablecell.Attributes.Add("align", "center");
tablecell.Width = Unit.Pixel(65);
tablecell.BackColor = Color.White;
TextBox label = new TextBox();
label.Text = ddr["freight"].ToString();
Response.Write(label.Text + "&&");
tablecell.Controls.Add(label);
tablerow.Controls.Add(tablecell);
TableCell tablecel2 = new TableCell();
tablecel2.Attributes.Add("align", "center");
tablecel2.Width = Unit.Pixel(65);
tablecel2.BackColor = Color.White;
TextBox labe2 = new TextBox();
labe2.Text = ddr["hou_id"].ToString();
tablecel2.Controls.Add(labe2);
tablerow.Controls.Add(tablecel2);
table.Controls.Add(tablerow);
}
PlaceHolder1.Controls.Add(table);
zlj303
2007-09-10
打赏
举报
回复
string sql = "select freight,hou_id from finance where finance_id in (" + finance_id + ")";
SqlDataReader ddr = verty.getDataRead(sql);
PlaceHolder1.Controls.Clear();
Table table = new Table();
table.CellPadding = 1;
table.CellSpacing = 1;
table.BorderStyle = 0;
table.BackColor = Color.Black;
TableRow tablerow = new TableRow();
for (int i = 0; i < 3; i++)
{
TableCell tablecell = new TableCell();
tablecell.Attributes.Add("align", "center");
// // tablecell.Width = Unit.Pixel(65);
// // tablecell.BackColor = Color.White;
// // Label label = new Label();
// // label.Text = title[i];
// // tablecell.Controls.Add(label);
// // tablerow.Controls.Add(tablecell);
// //}
// table.Controls.Add(tablerow);
// while (ddr.Read())
// {
// tablerow = new TableRow();
// TableCell tablecell = new TableCell();
// tablecell.Attributes.Add("align", "center");
// tablecell.Width = Unit.Pixel(65);
// tablecell.BackColor = Color.White;
// TextBox label = new TextBox();
// label.Text = ddr["freight"].ToString();
// Response.Write(label.Text + "&&");
// tablecell.Controls.Add(label);
// tablerow.Controls.Add(tablecell);
// //TableCell tablecel2 = new TableCell();
// //tablecel2.Attributes.Add("align", "center");
// //tablecel2.Width = Unit.Pixel(65);
// //tablecel2.BackColor = Color.White;
// //TextBox labe2 = new TextBox();
// //labe2.Text = ddr["hou_id"].ToString();
// //tablecel2.Controls.Add(labe2);
// //tablerow.Controls.Add(tablecel2);
// table.Controls.Add(tablerow);
// // Response.Write(ddr["freight"]);
// }
placeholder
.js
简洁的
placeholder
插件,支持ie9、ie8及以下版本。完美解决ie9中onpropertychange
问题
。使用简单,引入
placeholder
.js即可让您的ie完美支持
placeholder
input
placeholder
样式
问题
input
placeholder
样式
问题
下拉框
placeholder
失效
问题
下拉框
placeholder
失效
问题
修改
placeholder
样式,
placeholder
换行 以及iOS 上设置
placeholder
被遮挡
问题
解决
一、修改
placeholder
样式 通过选择器就可以简单的修改该
placeholder
的样式 input::
placeholder
{ font-size:14px; color: #666666; } 二、
placeholder
换行 在input 里面很少用到,input 就只有一行而已,多行的话就会使用textarea标签,确实在textarea标签里面如何让placehol...
关于
placeholder
的点击的消失
问题
现在很多浏览器都标配了
placeholder
。 可是为什么在safiri上是点击提示信息就直接消失,而在诸如Firefox和Google这类浏览器上就是开始输入才消失的,好吧,从用户体验度上来说,有些认识以为开始输入在消失是比较好的。 做的是点击输入框输入提示信息就消失的。 Google上可以通过 input:focus::-webkit-input-
placeholder
{
C#
110,539
社区成员
642,577
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章