如何在asp.net上创建表. [英] how to creat a table on the asp.net.

查看:73
本文介绍了如何在asp.net上创建表.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在asp.net上添加atabel并将该表用作网格视图的形式?
给我一种创建表的方法.

i want to add atabel on the asp.net and use this table as a grid view formate ?
give me the way how to create ta table.

推荐答案

http://forums.asp.net/t/1816572.aspx/1 [

使用StringBulider
Use StringBulider
StringBuilder sb = new StringBuilder();
                sb.Append(@"<table>
                            <tr>
                                <td>
                                    some text written in 1st td
                                </td>
                                <td>
                                    some text written in 2nd td
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <input id='btn' type='button' value='click me' />
                                </td>
                                <td>
                                    <input id='txt' type='text' value='enter in me' />
                                </td>
                            </tr>
                        </table>"
                    );
                Response.Write(sb.ToString());


这篇关于如何在asp.net上创建表.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆