Advertisement
erodemobiles

Leinholder management

May 2nd, 2011
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 3.81 KB | None | 0 0
  1. <%@ Page Language="VB" MasterPageFile ="~/PolicyWatch.master"  AutoEventWireup="false" CodeFile="~/PW_LeinholderManagement.aspx.vb" Inherits="_Default" %>
  2.  
  3. <script runat="server">
  4.  
  5.  
  6. </script>
  7.  
  8. <asp:Content ID="Content1" runat="server"
  9.     contentplaceholderid="ContentPlaceHolder1">
  10.     <asp:ScriptManager ID="ScriptManager1" runat="server">
  11.             </asp:ScriptManager>
  12.    
  13.             <div class="style1">
  14.                 <a href="PW_Approval.aspx" style="text-align: left">Policy Watch Approval Page</a>
  15.             </div>
  16.         <table style=" table-layout:fixed "><tr><td>
  17.            
  18.             <asp:SqlDataSource ID="SqlDataSource1" runat="server"
  19.                 ConnectionString="<%$ ConnectionStrings:GoAutoTestDataConnectionString2 %>"
  20.                
  21.                
  22.                 SelectCommand="SELECT DISTINCT [EmailAddress] FROM [PolicyWatch_Registration]">
  23.             </asp:SqlDataSource>
  24.             <asp:Label ID="Label1" runat="server" Text="Registration Email"
  25.                 style="font-weight: 700"></asp:Label>
  26.             <br />
  27.             <asp:UpdatePanel ID="UpdatePanel1" runat="server">
  28.         <ContentTemplate>
  29.             <asp:ListBox ID="lb_Emails" runat="server"
  30.                 DataTextField="EmailAddress" DataValueField="EmailAddress"
  31.                 AutoPostBack="True"
  32.                 DataSourceID="SqlDataSource1"></asp:ListBox>
  33.                   </ContentTemplate>
  34.     </asp:UpdatePanel>
  35.            
  36.             </td></tr>
  37.             <tr><td style="overflow:scroll; height:400px;">
  38.              
  39.                 <asp:Label ID="Label3" runat="server" style="font-weight: 700"
  40.                     Text="List of Lienholders"></asp:Label>
  41.              
  42.             <asp:UpdatePanel ID="UpdatePanel3" runat="server">
  43.     <ContentTemplate>
  44.            
  45.                 <asp:ListBox ID="gv_AllLeins" runat="server"
  46.                     DataTextField="LienName" Height="301px"
  47.                     Width="260px" SelectionMode="Multiple"
  48.                     DataSourceID="SqlDataSource3" DataValueField="LienName"
  49.                     AutoPostBack="True">
  50.                 </asp:ListBox>
  51.                 <asp:SqlDataSource ID="SqlDataSource3" runat="server"
  52.                    
  53.                     ConnectionString="<%$ ConnectionStrings:GoAutoTestDataConnectionString2 %>" SelectCommand="create table #LienList (LienName varchar(64))
  54.  
  55.  
  56.  
  57. insert into #LienList
  58.  
  59.    select distinct LienName from Vehicle (nolock)
  60.  
  61.    union
  62.  
  63.    select distinct Lien2Name from Vehicle (nolock)
  64.  
  65.    
  66.  
  67. select distinct LienName as LienName
  68. from #LienList
  69. where LienName is not null and LienName &lt;&gt; '0' and LienName &lt;&gt; '' order by LienName asc
  70.  
  71. "></asp:SqlDataSource>
  72. </ContentTemplate>
  73. </asp:UpdatePanel>
  74.                         </td>
  75.             <td>
  76.                 <asp:Button ID="btnAdd" runat="server" Text="Add Lienholder" />
  77.                 <br /> <br />
  78.                 <asp:Button ID="btnRemove" runat="server" Text="Remove Lienholder"
  79.                     Width="124px" /></td>
  80.             <td>
  81.                 <asp:Label ID="Label2" runat="server" Text="Attached Liens"
  82.                     style="font-weight: 700"></asp:Label>
  83.             <asp:UpdatePanel ID="UpdatePanel2" runat="server">
  84.         <ContentTemplate>
  85.            
  86.                  
  87.            
  88.                 <asp:ListBox ID="gv_Selected" runat="server" Height="300px" Width="260px"
  89.                     AutoPostBack="True">
  90.                 </asp:ListBox></ContentTemplate>
  91.     </asp:UpdatePanel>
  92.                 </td></tr>
  93.             </table>
  94.      
  95. </asp:Content>
  96.  
  97.  
  98.  
  99. <asp:Content ID="Content2" runat="server" contentplaceholderid="head">
  100.  
  101.     <style type="text/css">
  102.         .style1
  103.         {
  104.             text-align: left;
  105.         }
  106.     </style>
  107.  
  108. </asp:Content>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement