Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
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

XML
<%@ 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>
Posted
Comments
[no name] 6-Nov-15 0:09am    
Can you please post your .cs page also?
aarif moh shaikh 6-Nov-15 1:10am    
missing <td> tag in <tr>

You need to put your content in td tag, which you haven't.
ASP
<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
 
Share this answer
 
Comments
Debojyoti Saha 6-Nov-15 0:19am    
after adding the <td> tag, its not displaying. Why?
chandugg 6-Nov-15 0:41am    
even i write in between td tag also its not show the design view
Krunal Rohit 6-Nov-15 0:58am    
Did you read this ?:
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
C#
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)
    {

    }
}
 
Share this answer
 
Comments
Debojyoti Saha 6-Nov-15 0:34am    
Please read the question carefully and then answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900