Home > Uncategorized > Ax2009 EP Pages – Alignment of Text Box controls

Ax2009 EP Pages – Alignment of Text Box controls

If you are not using AXForm in your user control , then it is good idea to use table if you need to align textboxes  in your usercontrol. Following is sample mark up code for the same . 

<%

 

@ Control Language=”C#” AutoEventWireup=”true” CodeFile=”DbEPDocuSearch.ascx.cs” Inherits=”DbEPDocuSearch” %><%

@ Register Assembly=”Microsoft.Dynamics.Framework.Portal, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″  

Namespace=”Microsoft.Dynamics.Framework.Portal.UI.WebControls” TagPrefix=”dynamics” %><

style type=”text/css”>

 

.style1{

 

width: 274px;}

</

style><

table cellpadding =”” width = “20%”><

tbody><

tr ><

td rowspan =”1″ style=”WIDTH: 15%”><

asp:Label ID=”lblSearch” runat=”server” Text=”<%$AxLabel:@SYS7576%>“></asp:Label></

td><

td rowspan =”1″ style=”WIDTH:15%”><

asp:TextBox ID=”txtSearch” runat=”server” Width=”261px”></asp:TextBox></

td></

tr><

tr><

td style=”WIDTH: 15%”>

 

<asp:Label Id=”lblDocuTypeId” runat=”server” Text=”<%$AxLabel:@SYS22564%>“></asp:Label></

td><

td style=”WIDTH: 15%”>

 

<asp:TextBox ID=”txtDocuType” runat=”server”></asp:TextBox> 

<dynamics:AxLookup ID=”docuTypeLookup” runat=”server” OnLookup=”DocuTypeId_Lookup”  

TargetControlId=”txtDocuType” > 

</dynamics:AxLookup></

td>

 

</

tr>

<

tr><

td style=”WIDTH: 15%”><

asp:Label ID=”lblVendorId” runat=”server” Text=”<%$AxLabel:@SYS14048%>“></asp:Label>

 

</td><

td style=”WIDTH: 15%”><

asp:TextBox ID=”txtVendor” runat=”server”></asp:TextBox>

 

<dynamics:AxLookup ID=”AxLookup1″ runat=”server” TargetControlId =”txtVendor” OnLookup=”VendorId_Lookup”> 

</dynamics:AxLookup></

td></

tr>

<

tr><

td style=”WIDTH: 15%”><

asp:Label ID=”lblContract” runat=”server” Text=”<%$AxLabel:@SYS33582%>“></asp:Label></

td><

td style=”WIDTH: 15%”><

asp:TextBox ID=”txtContract” runat=”server”></asp:TextBox>

 

<dynamics:AxLookup ID=”contractLookup” runat=”server”  

TargetControlId=”txtContract” OnLookup=”ContractId_LookupId”> 

</dynamics:AxLookup> 

</td> 

</

tr>  

<tr>

<

td style=”WIDTH: 15%”>

 

<asp:Label ID=”lblInvoiceId” runat=”server” Text=”<%$AxLabel:@SYS12128%>“></asp:Label></

td><

td style=”WIDTH: 15%”><

asp:TextBox ID=”txtInvoice” runat=”server”></asp:TextBox></

td></

tr>

<

tr><

td style=”WIDTH: 15%”>

 

<asp:Label ID=”lblProjectId” runat=”server” Text=”<%$AxLabel:@SYS4534%>“></asp:Label> 

</td><

td style=”WIDTH: 15%”>

 

<asp:TextBox ID=”txtProjectId” runat=”server”></asp:TextBox> 

<dynamics:AxLookup ID=”ProjectIdLookup” runat=”server” OnLookup=”ProjectId_Lookup”  

TargetControlId=”txtProjectId”> 

</dynamics:AxLookup></

td></

tr>  

</tbody>

 

</table>  

<table cellpadding =”0″ width=”100%”> 

<tr> 

<td> 

<asp:Button ID=”btnSearch” runat=”server” style=”margin-bottom: 4px” Text=”Search” /> 

<asp:Button ID=”btnCancel” runat=”server” style=”margin-bottom: 4px” Text=”Cancel” /> 

</td> 

</tr> 

</table>  

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: