ASPX页面中的设计表如何 [英] HOW DESIGN TABLE IN ASPX PAGE
本文介绍了ASPX页面中的设计表如何的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨朋友
我在aspx页面设计表格,但我没有在aspx页面中看到表格设计。
design is没有在设计视图中显示。请找到解决方案
<%@ Page 语言 = C# AutoEventWireup = true CodeFile = Default2.aspx.cs 继承 = Default2 %>
< !DOCTYPE html >
< html xmlns = http://www.w3.org/1999/xhtml >
< head runat = server >
< title > < / title >
< / head >
< body style = 身高:208px >
< 表格 id = form1 runat = 服务器 >
< 表格 >
< tr >
< asp:标签 ID = lbl1 runat = server 文字 = 什么是CLR > < / asp:标签 >
< / tr >
< tr >
< asp:RadioButton ID = r1 runat = server 文字 = 公共语言运行时 GroupName = g1 / >
< / tr >
< tr >
< asp:RadioButton ID = r2 runat = 服务器 文本 = 公共语言资源 GroupName = g2 / >
< / tr >
< tr >
< asp:按钮 ID = btn1 文字 = 下一步 runat = server OnClick = bt1click / >
< < span class =code-leadattribute> / tr >
< / table >
< / form >
< ; / body >
< / html >
决方案
你需要把你的内容放在td
标签中,你没有。
< tr >
< td >
< asp:label id = lbl1 runat = server text = 什么是CLR xmlns:asp = #unknown > < / asp:label >
< / td >
< / tr >
有时设计视图不显示我们在代码视图中编写的内容,所以我建议你在浏览器中查看输出。
-KR
使用系统;
使用 System.Collections.Generic;
使用 System.Linq;
使用 System.Web;
使用 System.Web.UI;
使用 System.Web.UI.WebControls;
public partial class Default2:System.Web.UI.Page
{
protected void Page_Load( object sender,EventArgs e)
{
}
}
hi friends
iam designing table in aspx page but i didn't see the table design in aspx page.
design is not displayed in design view.please find the solution
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body style="height: 208px">
<form id="form1" runat="server">
<table>
<tr>
<asp:Label ID="lbl1" runat="server" Text="what is CLR"></asp:Label>
</tr>
<tr>
<asp:RadioButton ID="r1" runat="server" Text="common language runtime" GroupName="g1" />
</tr>
<tr>
<asp:RadioButton ID="r2" runat="server" Text="common language resource" GroupName="g2" />
</tr>
<tr>
<asp:Button ID="btn1" Text="Next" runat="server" OnClick="bt1click" />
</tr>
</table>
</form>
</body>
</html>
解决方案
You need to put your content intd
tag, which you haven't.
<tr> <td> <asp:label id="lbl1" runat="server" text="what is CLR" xmlns:asp="#unknown"></asp:label> </td> </tr>
And sometime design view doesn't display what we write in code view, so I'd suggest you to view the output in browser.
-KR
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class Default2 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }
这篇关于ASPX页面中的设计表如何的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文