S
Stephen Hatfield
I have a user control that is an HTML table with two rows and three columns.
I am using a control instead of a straight APSX page as in the future I will
need to use this control within SharePoint. In VS 2005 design mode the user
control table takes the full height as expected. When I use this control in
an ASPX page, I would like it to fill the entire page but it does not. Any
suggestions!
Thanks!
Stephen
Control markup:
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="SubscriberUserControl.ascx.cs" Inherits="SubscriberUserControl" %>
<table width="100%" cellpadding="3" border="1"
style="margin:0;padding:0;height:100%">
<tr valign="top">
<td>Info on process goes here</td>
<td>
<a href="mailto:?">Process Owner</a><br />
<a href="mailto:?">Expert</a><br />
</td>
<td>Other info goes here</td>
</tr>
<tr style="height:40px">
<td align="center" colspan="3">
<asp:Button ID="subscribe" Text="Add This Process"
runat="server" />
<asp:Button ID="cancel" Text="Cancel" runat="server" />
</td>
</tr>
</table>
ASPX markup:
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="ProcessSubscribe.aspx.cs" Inherits="ControlsTest" %>
<%@ Register Src="SubscriberUserControl.ascx"
TagName="SubscriberUserControl" TagPrefix="uc1" %>
<!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>Subscribe To Process</title>
</head>
<body style="margin:0;padding:0">
<form id="form1" runat="server">
<table border="0" width="100%" style="height:100%">
<tr>
<td valign="top">
<uc1:SubscriberUserControl ID="SubscriberUserControl1"
runat="server" />
</td>
</tr>
</table>
</form>
</body>
</html>
I am using a control instead of a straight APSX page as in the future I will
need to use this control within SharePoint. In VS 2005 design mode the user
control table takes the full height as expected. When I use this control in
an ASPX page, I would like it to fill the entire page but it does not. Any
suggestions!
Thanks!
Stephen
Control markup:
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="SubscriberUserControl.ascx.cs" Inherits="SubscriberUserControl" %>
<table width="100%" cellpadding="3" border="1"
style="margin:0;padding:0;height:100%">
<tr valign="top">
<td>Info on process goes here</td>
<td>
<a href="mailto:?">Process Owner</a><br />
<a href="mailto:?">Expert</a><br />
</td>
<td>Other info goes here</td>
</tr>
<tr style="height:40px">
<td align="center" colspan="3">
<asp:Button ID="subscribe" Text="Add This Process"
runat="server" />
<asp:Button ID="cancel" Text="Cancel" runat="server" />
</td>
</tr>
</table>
ASPX markup:
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="ProcessSubscribe.aspx.cs" Inherits="ControlsTest" %>
<%@ Register Src="SubscriberUserControl.ascx"
TagName="SubscriberUserControl" TagPrefix="uc1" %>
<!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>Subscribe To Process</title>
</head>
<body style="margin:0;padding:0">
<form id="form1" runat="server">
<table border="0" width="100%" style="height:100%">
<tr>
<td valign="top">
<uc1:SubscriberUserControl ID="SubscriberUserControl1"
runat="server" />
</td>
</tr>
</table>
</form>
</body>
</html>