if(!Page.IsPostBack)
{
int a = 200;
int b = 100;
Response.Write("<table width=200 border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
Response.Write("<tr>");
Response.Write("<td height=\"30\" bgcolor=\"#999999\">");
Response.Write("<table width=100 border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
Response.Write("<tr>");
Response.Write("<td bgcolor=\"#FFFF00\" height=\"30\">");
Response.Write("</td>");
Response.Write("</tr>");
Response.Write("</table>");
Response.Write("</td>");
Response.Write("</tr>");
Response.Write("</table>");
}现在我想用a和b分别替换下面两个width的值,我的代码该如何写啊!!
{
int a = 200;
int b = 100;
Response.Write("<table width=200 border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
Response.Write("<tr>");
Response.Write("<td height=\"30\" bgcolor=\"#999999\">");
Response.Write("<table width=100 border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
Response.Write("<tr>");
Response.Write("<td bgcolor=\"#FFFF00\" height=\"30\">");
Response.Write("</td>");
Response.Write("</tr>");
Response.Write("</table>");
Response.Write("</td>");
Response.Write("</tr>");
Response.Write("</table>");
}现在我想用a和b分别替换下面两个width的值,我的代码该如何写啊!!
解决方案 »
- 想知道自己的代码究竟是好是差,这样的水平能否找到一碗饭吃。
- 超级菜鸟,超级菜的问题,关于iframe
- 哥哥们 帮忙解决下
- 我想把上传到服务器上的foxpro6.0的dbf文件读到datagrid里面,然后再存入数据库,现在不知道要怎么连foxpro啊
- 郁闷了一天的问题
- 关于一个多表查询数据的效率问题,是先全写成视图,然后用存储过程分页读取,还是直接用存储过程拼接这么复杂的sql 语句分页显示好呢?
- 放100分!!!大家看DOTTEXT博客系统这一块分页程序该怎么写啊,你们看有什么好的想法.
- 怎么统计数据库中某表内多记录数???用OLEDb c#
- dropdownlist取值的简单问题
- 不知道能不能实现这样的功能的?
- 请教如何用 C# + asp.net 写一个软件的运行平台呀!?
- 我用 window.showModallessDialog打开 窗口 ,打开的是有 iframe的 ,有什么办法 在 这个 打开的窗口中 刷新父窗口?
{
int a = 200;
int b = 100;
Response.Write("<table width="+a+" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
Response.Write("<tr>");
Response.Write("<td height=\"30\" bgcolor=\"#999999\">");
Response.Write("<table width="+b+" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
Response.Write("<tr>");
Response.Write("<td bgcolor=\"#FFFF00\" height=\"30\">");
Response.Write("</td>");
Response.Write("</tr>");
Response.Write("</table>");
Response.Write("</td>");
Response.Write("</tr>");
Response.Write("</table>");
}
…………
Response.Write("<td bgcolor=\"#FFFF00\" height=" + b+">");