Atouray
asked on
how to Separating coding behind file from layout document
I created a web form , i want to separate the code from the layout.
how can i achieve this in asp.net.
i have radiobuttons and grid view on my layout document.
please help.
how can i achieve this in asp.net.
i have radiobuttons and grid view on my layout document.
please help.
layout:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Rejecteds.aspx.cs" Inherits="Changed.Rejecteds" Src = "Rejecteds.cs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Overview of Rejected abc</title>
<script type = "text/css">
p {border-style:double; border-width:thick;border-color: ActiveBorder;}
img1{float:left}
img1{float:left}
p {text-align:center; font-size:24pt;color:white;background-color:Maroon;
width: 1020px;
margin-left: 4px;}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr><td valign= "top"><img src = "statistics.gif" style= "width:200px; height:100px"/></td></tr>
</table>
<center> <p> my title :</p></center>
</div>
<div style="width: 775px">
<br />
<asp:RadioButton ID="RadioButton1" runat="server" GroupName = "StationID" Text= "BK01" Checked ="true" ForeColor= "black"/>
<br />
<asp:RadioButton ID="RadioButton2" runat="server" GroupName = "StaionID" Text = "BJL01" ForeColor = "black"/>
<br />
<asp:RadioButton ID="RadioButton3" runat="server" GroupName = "StationID" Text = "BS01" ForeColor = "black"/>
<br />
<asp:RadioButton ID="RadioButton4" runat="server" GroupName = "StationID" Text = "FF01" ForeColor = "black"/>
<br />
<asp:RadioButton ID="RadioButton5" runat="server" GroupName = "StationID" Text = "SK01" ForeColor = "black"/>
<br />
<h1>
<asp:GridView ID="GridView1" runat="server" Width="774px">
</asp:GridView>
</h1>
</div>
</form>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
ASKER
pls see the attached file evident-sup.docx