or
<%@ Page Title="Campaign Finance - Create New Petition" Language="C#" MasterPageFile="~/Masters/EPSDev2.master" AutoEventWireup="true" CodeFile="NewPetition.aspx.cs" Inherits="NewPetition" %><asp:Content ID="Content1" ContentPlaceHolderID="PageHeadContent" Runat="Server"></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="PageContent" Runat="Server"> <div style="width: 100%;"> <div style="float: left; background-color: White; padding: 10px;"> <table cellpadding="20" cellspacing="0" border="0" > <tr> <td width="5%"> </td> <td align="center" width="90%" nowrap="nowrap"> <table cellpadding="0" cellspacing="15" id="TABLE1" > <tr> <td colspan="2" align="center" > <h2> <asp:Label ID="VoterAuthenticationLabel" runat="server" Text="Create New Petition"></asp:Label> </h2> </td> </tr> <tr> <td colspan="2" align="center" style="font-weight: normal; height: 12px;"> <asp:Label ID="InfoLabel" runat="server" Text="(Please enter the information requested below and then click on the SUBMIT button)"></asp:Label> </td> </tr> <tr> <td colspan="2" align="center" style="font-weight: normal; height: 12px;"> </td> </tr> <tr> <td colspan="2" align="left" style="font-weight: normal; height: 12px;"> <asp:Label ID="Label6" runat="server" Font-Bold="true" Text="CANDIDATE INFORMATION:"></asp:Label> </td> </tr> <tr> <td align="left"> <asp:Label ID="CycleLabel" runat="server" Text="Cycle:"></asp:Label> </td> <td align="left"> <telerik:RadComboBox ID="ElectionCycleList" runat="server" TabIndex="1" EnableEmbeddedSkins="true" Skin="Default" OnClientSelectedIndexChanging="LoadPoliticalRaceList" > </telerik:RadComboBox> <img alt="Required field" src="<%=ResolveUrl("images/required2.gif")%>" /> <asp:RequiredFieldValidator ID="ElectionCycleListReqd" ControlToValidate="ElectionCycleList" ValidationGroup="DEForm" Display="Dynamic" runat="server" ErrorMessage="<br>You must select an Election Cycle from the list" ForeColor="Red"> </asp:RequiredFieldValidator> <asp:CustomValidator ID="CustomValidator5" runat="server" ControlToValidate="ElectionCycleList" ClientValidationFunction="validateCombo5" ErrorMessage="<br>You must select an Election Cycle from the list" ValidationGroup="DEForm" Display="Dynamic" ForeColor="Red" > </asp:CustomValidator> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label14" runat="server" Text="Election:"></asp:Label> </td> <td align="left"> <telerik:RadComboBox ID="ElectionList" runat="server" TabIndex="1" OnClientItemsRequested="SearchItemsLoaded" OnItemsRequested="ElectionList_ItemsRequested" EnableEmbeddedSkins="true" Skin="Default" EnableViewState="true" ViewStateMode="Enabled" > </telerik:RadComboBox> <img alt="Required field" src="<%=ResolveUrl("images/required2.gif")%>" /> <asp:RequiredFieldValidator ID="ElectionListReqd" ControlToValidate="ElectionList" ValidationGroup="DEForm" Display="Dynamic" runat="server" ErrorMessage="<br>You must select an Election from the list." ForeColor="Red"> </asp:RequiredFieldValidator> <asp:CustomValidator ID="CustomValidator4" runat="server" ControlToValidate="ElectionList" ClientValidationFunction="validateCombo4" ErrorMessage="<br>You must select an Election from the list" ValidationGroup="DEForm" Display="Dynamic" ForeColor="Red" > </asp:CustomValidator> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label1" runat="server" Text="Political Race:"></asp:Label> </td> <td align="left"> <telerik:RadComboBox ID="PoliticalRaceList" Width="250px" runat="server" TabIndex="2" OnClientItemsRequested="SearchItemsLoaded" OnItemsRequested="PoliticalRaceList_ItemsRequested" EnableEmbeddedSkins="true" Skin="Default" > </telerik:RadComboBox> <img alt="Required field" src="<%=ResolveUrl("images/required2.gif")%>" /> <asp:RequiredFieldValidator ID="PoliticalRaceListReqd" ControlToValidate="PoliticalRaceList" ValidationGroup="DEForm" Display="Dynamic" runat="server" ErrorMessage="<br>You must select a Political Race from the list" ForeColor="Red"> </asp:RequiredFieldValidator> <asp:CustomValidator ID="CustomValidator3" runat="server" ControlToValidate="PoliticalRaceList" ClientValidationFunction="validateCombo3" ErrorMessage="<br>You must select a Political Race from the list" ValidationGroup="DEForm" Display="Dynamic" ForeColor="Red" > </asp:CustomValidator> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label12" runat="server" Text="Political Party:"></asp:Label> </td> <td align="left"> <telerik:RadComboBox ID="PoliticalPartyList" runat="server" TabIndex="3" EnableEmbeddedSkins="true" Skin="Default"> </telerik:RadComboBox> <img alt="Required field" src="<%=ResolveUrl("images/required2.gif")%>" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="PoliticalPartyList" ValidationGroup="DEForm" Display="Dynamic" runat="server" ErrorMessage="<br>You must select a Political Party from the list" ForeColor="Red"> </asp:RequiredFieldValidator> <asp:CustomValidator ID="CustomValidator2" runat="server" ControlToValidate="PoliticalPartyList" ClientValidationFunction="validateCombo2" ErrorMessage="<br>You must select a Political Party from the list" ValidationGroup="DEForm" Display="Dynamic" ForeColor="Red" > </asp:CustomValidator> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label2" runat="server" Text="Name:"></asp:Label> </td> <td align="left"> <telerik:RadTextBox ID="CandidateName" runat="server" MaxLength="50" Width="200px" TabIndex="4" EnableEmbeddedSkins="true" Skin="Default" ></telerik:RadTextBox> <img alt="Required field" src="<%=ResolveUrl("images/required2.gif")%>" /> <asp:RequiredFieldValidator ID="CandidateNameReqd" ControlToValidate="CandidateName" ValidationGroup="DEForm" Display="Dynamic" runat="server" ErrorMessage="<br>You must enter the Candidate's Name" ForeColor="Red"></asp:RequiredFieldValidator> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label3" runat="server" Text="Address:"></asp:Label> </td> <td align="left"> <telerik:RadTextBox ID="CandidateAddress1" runat="server" MaxLength="50" Width="200px" TabIndex="5" EnableEmbeddedSkins="true" Skin="Default"></telerik:RadTextBox> <img alt="Required field" src="<%=ResolveUrl("images/required2.gif")%>" /> <asp:RequiredFieldValidator ID="CandidateAddress1Reqd" ControlToValidate="CandidateAddress1" ValidationGroup="DEForm" Display="Dynamic" runat="server" ErrorMessage="<br>You must enter the Candidate's Address" ForeColor="Red"></asp:RequiredFieldValidator> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label13" runat="server" Text="Address 2:"></asp:Label> </td> <td align="left"> <telerik:RadTextBox ID="CandidateAddress2" runat="server" MaxLength="50" Width="200px" TabIndex="5" EnableEmbeddedSkins="true" Skin="Default" ></telerik:RadTextBox> <br /> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label4" runat="server" Text="City, State, Zip Code:"></asp:Label> </td> <td align="left"> <telerik:RadTextBox ID="CandidateCity" runat="server" MaxLength="50" Width="200px" TabIndex="6" EnableEmbeddedSkins="true" Skin="Default"></telerik:RadTextBox> <img alt="Required field" src="<%=ResolveUrl("images/required2.gif")%>" /> <telerik:RadTextBox ID="CandidateState" runat="server" MaxLength="2" Width="30px" TabIndex="7" Text="AZ" EnableEmbeddedSkins="true" Skin="Default"></telerik:RadTextBox> <img alt="Required field" src="<%=ResolveUrl("images/required2.gif")%>" /> <telerik:RadTextBox ID="CandidateZipCode" runat="server" TabIndex="8" MaxLength="10" Width="75px" EnableEmbeddedSkins="true" Skin="Default"></telerik:RadTextBox> <img alt="Required field" src="<%=ResolveUrl("images/required2.gif")%>" /> <asp:RequiredFieldValidator ID="CandidateCityReqd" ControlToValidate="CandidateCity" ValidationGroup="DEForm" Display="Dynamic" runat="server" ErrorMessage="<br>You must enter the Candidate's City" ForeColor="Red"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="CandidateStateReqd" ControlToValidate="CandidateState" ValidationGroup="DEForm" Display="Dynamic" runat="server" ErrorMessage="<br>You must enter the Candidate's State" ForeColor="Red"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="CandidateZipCodeReqd" ControlToValidate="CandidateZipCode" ValidationGroup="DEForm" Display="Dynamic" runat="server" ErrorMessage="<br>You must enter the Candidate's Zip Code" ForeColor="Red"></asp:RequiredFieldValidator> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label5" runat="server" Text="County:"></asp:Label> </td> <td align="left"> <telerik:RadComboBox ID="CandidateCountyList" runat="server" TabIndex="9" EnableEmbeddedSkins="true" Skin="Default"> </telerik:RadComboBox> <img alt="Required field" src="<%=ResolveUrl("images/required2.gif")%>" /> <asp:RequiredFieldValidator ID="CandidateCountyListReqd" ControlToValidate="CandidateCountyList" ValidationGroup="DEForm" Display="Dynamic" runat="server" ErrorMessage="<br>You must select the Candidate's County from the list" ForeColor="Red"> </asp:RequiredFieldValidator> <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="CandidateCountyList" ClientValidationFunction="validateCombo1" ErrorMessage="<br>You must select the Candidate's County" ValidationGroup="DEForm" Display="Dynamic" ForeColor="Red" > </asp:CustomValidator> </td> </tr> <tr> <td colspan="2" align="center" style="font-weight: normal; height: 12px;"> </td> </tr> <tr> <td colspan="2" align="left" style="font-weight: normal; height: 12px;"> <asp:Label ID="Label7" runat="server" Font-Bold="true" Text="CONTACT INFORMATION:"></asp:Label> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label8" runat="server" Text="Name:"></asp:Label> </td> <td align="left"> <telerik:RadTextBox ID="ContactName" runat="server" MaxLength="50" Width="200px" TabIndex="10" EnableEmbeddedSkins="true" Skin="Default"></telerik:RadTextBox> <img alt="Required field" src="<%=ResolveUrl("images/required2.gif")%>" /> <asp:RequiredFieldValidator ID="ContactNameReqd" ControlToValidate="ContactName" ValidationGroup="DEForm" Display="Dynamic" runat="server" ErrorMessage="<br>You must enter the Contact's Name" ForeColor="Red"></asp:RequiredFieldValidator> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label9" runat="server" Text="Telephone:"></asp:Label> </td> <td align="left"> <telerik:RadTextBox ID="ContactPhone" runat="server" MaxLength="25" Width="100px" TabIndex="11" EnableEmbeddedSkins="true" Skin="Default" ></telerik:RadTextBox><br /> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label10" runat="server" Text="Email Address:"></asp:Label> </td> <td align="left"> <telerik:RadTextBox ID="ContactEmailAddress" runat="server" MaxLength="256" Width="300px" TabIndex="12" EnableEmbeddedSkins="true" Skin="Default" ></telerik:RadTextBox><br /> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label11" runat="server" Text="Web Site URL:"></asp:Label> </td> <td align="left"> <telerik:RadTextBox ID="ContactWebSiteURL" runat="server" MaxLength="50" Width="200px" TabIndex="13" EnableEmbeddedSkins="true" Skin="Default" ></telerik:RadTextBox> <asp:CustomValidator ID="ContactWebSiteURLCustom" ControlToValidate="ContactWebSiteURL" ValidationGroup="DEForm" Display="Dynamic" runat="server" ErrorMessage="<br>If provided, the web site URL must be present on the Internet." ForeColor="Red" OnServerValidate="ValidateURL" ></asp:CustomValidator> </td> </tr> <tr> <td colspan="2" align="center" style="font-weight: normal; height: 12px;"> <asp:Button ID="CreateButton" runat="server" Text="Create Petition" TabIndex="15" ValidationGroup="DEForm" onclick="CreateButton_Click" /> <asp:Button ID="CancelButton" runat="server" Text="Cancel Petition" TabIndex="16" onclick="CancelButton_Click" /> </td> </tr> <tr> <td colspan="2" align="center" style="font-weight: normal; height: 12px;"> <img alt="Required field" src="<%=ResolveUrl("images/required2.gif")%>" /> - <asp:Label ID="IndicatesRequiredLabel" runat="server" Text="Indicates a required field"></asp:Label> <br /> <asp:Label ID="StatusLabel" ForeColor="Red" runat="server" /> <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="DEForm" DisplayMode="List" ForeColor="Red" ShowSummary="False" runat="server" /> </td> </tr> </table> </td> <td width="5%"> </td> </tr> </table> </div> <div class="clear"> </div> </div> <script type="text/javascript"> function LoadPoliticalRaceList(combo, eventArqs) { var searchcycleCombo = $find("<%=ElectionCycleList.ClientID%>"); var searchraceCombo = $find("<%=PoliticalRaceList.ClientID%>"); var searchelectionCombo = $find("<%=ElectionList.ClientID%>"); var item = eventArqs.get_item(); searchraceCombo.set_text("Loading..."); // if a cycle is selected if (item.get_index() > 0) { // this will fire the ItemsRequested event of the // property type combobox passing the transaction type as a parameter searchraceCombo.requestItems(item.get_value(), false); } else { // the -Select a cycle- item was chosen searchraceCombo.set_text(" "); searchraceCombo.clearItems(); } var item = eventArqs.get_item(); searchelectionCombo.set_text("Loading..."); // if a cycle is selected if (item.get_index() > 0) { // this will fire the ItemsRequested event of the // property type combobox passing the transaction type as a parameter searchelectionCombo.requestItems(item.get_value(), false); } else { // the -Select a cycle- item was chosen searchelectionCombo.set_text(" "); searchelectionCombo.clearItems(); } } function SearchItemsLoaded(combo, eventArqs) { if (combo.get_items().get_count() > 0) { // pre-select the first item combo.set_text(combo.get_items().getItem(0).get_text()); combo.get_items().getItem(0).highlight(); } } function validateCombo1(source, args) { args.IsValid = false; var combo = $find("<%= CandidateCountyList.ClientID %>"); var text = combo.get_text(); if (text.length < 1) { args.IsValid = false; } else { var node = combo.findItemByText(text); if (node) { var value = node.get_value(); if (value.length > 0) { args.IsValid = true; } } else { args.IsValid = false; } } } function validateCombo2(source, args) { args.IsValid = false; var combo = $find("<%= PoliticalPartyList.ClientID %>"); var text = combo.get_text(); if (text.length < 1) { args.IsValid = false; } else { var node = combo.findItemByText(text); if (node) { var value = node.get_value(); if (value.length > 0) { args.IsValid = true; } } else { args.IsValid = false; } } } function validateCombo3(source, args) { args.IsValid = false; var combo = $find("<%= PoliticalRaceList.ClientID %>"); var text = combo.get_text(); if (text.length < 1) { args.IsValid = false; } else { var node = combo.findItemByText(text); if (node) { var value = node.get_value(); if (value.length > 0) { args.IsValid = true; } } else { args.IsValid = false; } } } function validateCombo4(source, args) { args.IsValid = false; var combo = $find("<%= ElectionList.ClientID %>"); var text = combo.get_text(); if (text.length < 1) { args.IsValid = false; } else { var node = combo.findItemByText(text); if (node) { var value = node.get_value(); if (value.length > 0) { args.IsValid = true; } } else { args.IsValid = false; } } } function validateCombo5(source, args) { args.IsValid = false; var combo = $find("<%= ElectionCycleList.ClientID %>"); var text = combo.get_text(); if (text.length < 1) { args.IsValid = false; } else { var node = combo.findItemByText(text); if (node) { var value = node.get_value(); if (value.length > 0) { args.IsValid = true; } } else { args.IsValid = false; } } } </script></asp:Content>using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Telerik.Web.UI;using System.Data.SqlClient;using System.Configuration;using System.Data;using System.Text;using System.Net;using System.IO;public partial class NewPetition : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { // The purpose of this page is to initiate the creation of a new petition. // We need to check for the presence of the query string member '19' and if its value is 'edt'. // If yes to both of these questions, then the user has already entered the data for a new petition but // clicked the edit button on the next confirmation page. // If the answer to either of these is no, then we will give the user an empty page to enter data into // except for the three (3) combo boxes --the Election Cycle, Political Party and the County combo boxes. // The Political Race combo box will be dynamically loaded after the user selects an Election Cycle. if (!Page.IsPostBack) { // If this is the new petition data coming back for edit from the confirmation page, // then load the screen controls up with the data if (Request.QueryString["19"] == "edt") { this.CandidateName.Text = Request.QueryString["4"]; this.CandidateAddress1.Text = Request.QueryString["5"]; this.CandidateAddress2.Text = Request.QueryString["6"]; this.CandidateCity.Text = Request.QueryString["7"]; this.CandidateState.Text = Request.QueryString["8"]; this.CandidateZipCode.Text = Request.QueryString["9"]; this.ContactName.Text = Request.QueryString["11"]; this.ContactPhone.Text = Request.QueryString["12"]; this.ContactEmailAddress.Text = Request.QueryString["13"]; this.ContactWebSiteURL.Text = Request.QueryString["14"]; LoadElectionCycleList2(this.ElectionCycleList, Request.QueryString["1"]); LoadPoliticalRaceList2(this.PoliticalRaceList, Request.QueryString["2"]); LoadPoliticalPartyList2(this.PoliticalPartyList, Request.QueryString["3"]); LoadCountyList2(this.CandidateCountyList, Request.QueryString["10"]); LoadElectionList2(this.ElectionList, Request.QueryString["20"]); } else // This is a new page request so only load the combo boxes, // there is nothing else to do { this.CandidateName.Text = Convert.ToString(Session["CandidateFullName"]); LoadElectionCycleList(this.ElectionCycleList); LoadPoliticalPartyList(this.PoliticalPartyList); LoadCountyList(this.CandidateCountyList); } } else { string sCB1 = Convert.ToString(this.ElectionList.SelectedValue); string sCB2 = Convert.ToString(this.PoliticalRaceList.SelectedValue); string a = "abc"; } } protected void ElectionList_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) { // The user-selected Election Cycle value is passed to us so can correctly populate this list LoadElectionList(this.ElectionList, e.Text); } private void LoadElectionList2(RadComboBox combobox, string cbval) { LoadElectionList(this.ElectionList, Request.QueryString["1"]); this.ElectionList.SelectedValue = cbval; } private void LoadElectionCycleList2(RadComboBox combobox, string cbval) { LoadElectionCycleList(this.ElectionCycleList); this.ElectionCycleList.SelectedValue = cbval; } private void LoadPoliticalRaceList2(RadComboBox combobox, string cbval) { LoadPoliticalRaceList(this.PoliticalRaceList, Request.QueryString["1"]); //LoadPoliticalRaceList(this.PoliticalRaceList, Request.QueryString["15"]); this.PoliticalRaceList.SelectedValue = cbval; } private void LoadPoliticalPartyList2(RadComboBox combobox, string cbval) { LoadPoliticalPartyList(this.PoliticalPartyList); this.PoliticalPartyList.SelectedValue = cbval; } private void LoadCountyList2(RadComboBox combobox, string cbval) { LoadCountyList(this.CandidateCountyList); this.CandidateCountyList.SelectedValue = cbval; } private void LoadElectionList(RadComboBox combobox, string electioncycleno) { SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ElectronicPetitionSystemConnectionString"].ConnectionString); SqlDataAdapter adapter = new SqlDataAdapter("SELECT TOP (100) PERCENT ElectionName, ElectionId, CycleId, ElectionDate FROM dbo.Elections WHERE (CycleId = " + electioncycleno + ") ORDER BY ElectionDate", connection); DataTable dt = new DataTable(); adapter.Fill(dt); combobox.DataTextField = "ElectionName"; combobox.DataValueField = "ElectionId"; combobox.DataSource = dt; combobox.DataBind(); // Insert the first item. combobox.Items.Insert(0, new RadComboBoxItem("- Select an election -")); } protected void ElectList_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) { // The user-selected Election Cycle value is passed to us so can correctly populate this list LoadElectionList(this.ElectionList, e.Text); } private void LoadElectionCycleList(RadComboBox combobox) { SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ElectronicPetitionSystemConnectionString"].ConnectionString); SqlDataAdapter adapter = new SqlDataAdapter("SELECT CycleId, CycleName FROM Cycles WHERE EndDate > GETDATE() ORDER By CycleName", connection); DataTable dt = new DataTable(); adapter.Fill(dt); combobox.DataTextField = "CycleName"; combobox.DataValueField = "CycleId"; combobox.DataSource = dt; combobox.DataBind(); // Insert the first item. combobox.Items.Insert(0, new RadComboBoxItem("- Select a cycle -")); } protected void PoliticalRaceList_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) { // The user-selected Election Cycle value is passed to us so can correctly populate this list LoadPoliticalRaceList(this.PoliticalRaceList, e.Text); } private void LoadPoliticalRaceList(RadComboBox combobox, string electioncycleno) { if (electioncycleno.Length > 0) { SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ElectronicPetitionSystemConnectionString"].ConnectionString); string sqlcode = "SELECT Cycles.CycleId, Cycles.CycleName, Cycles.BeginDate, Races.RaceId, Offices.OfficeId, Offices.OfficeDescription FROM Cycles INNER JOIN Races ON Cycles.CycleId = Races.CycleId INNER JOIN Offices ON Races.OfficeId = Offices.OfficeId WHERE Cycles.CycleId = " + electioncycleno + " ORDER BY OfficeDescription"; SqlDataAdapter adapter = new SqlDataAdapter(sqlcode, connection); DataTable dt = new DataTable(); adapter.Fill(dt); combobox.DataTextField = "OfficeDescription"; combobox.DataValueField = "RaceId"; combobox.DataSource = dt; combobox.DataBind(); // Insert the first item. combobox.Items.Insert(0, new RadComboBoxItem("- Select a race")); } } private void LoadPoliticalPartyList(RadComboBox combobox) { SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ElectronicPetitionSystemConnectionString"].ConnectionString); SqlDataAdapter adapter = new SqlDataAdapter("SELECT PartyId, PartyName, DisplayOrder FROM Parties ORDER By DisplayOrder", connection); DataTable dt = new DataTable(); adapter.Fill(dt); combobox.DataTextField = "PartyName"; combobox.DataValueField = "PartyId"; combobox.DataSource = dt; combobox.DataBind(); // Insert the first item. combobox.Items.Insert(0, new RadComboBoxItem("- Select a party -")); } private void LoadCountyList(RadComboBox combobox) { SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ElectronicPetitionSystemConnectionString"].ConnectionString); SqlDataAdapter adapter = new SqlDataAdapter("SELECT CountyId, CountyName FROM Counties ORDER By CountyName", connection); DataTable dt = new DataTable(); adapter.Fill(dt); combobox.DataTextField = "CountyName"; combobox.DataValueField = "CountyId"; combobox.DataSource = dt; combobox.DataBind(); // Insert the first item. combobox.Items.Insert(0, new RadComboBoxItem("- Select a county -")); } protected void CreateButton_Click(object sender, EventArgs e) { // Create the new petition if the input validates if (Page.IsValid) { // If the data entered is valid, then send the user (and the data) to the Confirmation page to make // certain that they actually do want to create the new petition before doing it, otherwise .NET will // send them back to correct the data string sQueryString = ""; sQueryString += "1=" + this.ElectionCycleList.SelectedValue; sQueryString += "&2=" + this.PoliticalRaceList.SelectedValue; sQueryString += "&3=" + this.PoliticalPartyList.SelectedValue; sQueryString += "&4=" + this.CandidateName.Text; sQueryString += "&5=" + this.CandidateAddress1.Text; sQueryString += "&6=" + this.CandidateAddress2.Text; sQueryString += "&7=" + this.CandidateCity.Text; sQueryString += "&8=" + this.CandidateState.Text; sQueryString += "&9=" + this.CandidateZipCode.Text; sQueryString += "&10=" + this.CandidateCountyList.SelectedValue; sQueryString += "&11=" + this.ContactName.Text; sQueryString += "&12=" + this.ContactPhone.Text; sQueryString += "&13=" + this.ContactEmailAddress.Text; sQueryString += "&14=" + this.ContactWebSiteURL.Text; sQueryString += "&15=" + this.ElectionCycleList.Text; sQueryString += "&16=" + this.PoliticalRaceList.Text; sQueryString += "&17=" + this.PoliticalPartyList.Text; sQueryString += "&18=" + this.CandidateCountyList.Text; sQueryString += "&20=" + this.ElectionList.SelectedValue; sQueryString += "&21=" + this.ElectionList.Text; Response.Redirect("NewPetitionConf.aspx?" + sQueryString); } } protected void CancelButton_Click(object sender, EventArgs e) { // If the user cancels the new petition, then we need to back to MyeDocs.aspx Response.Redirect("MyEDocs.aspx"); } protected void ValidateURL(object source, ServerValidateEventArgs args) { args.IsValid = true; WebRequest webRequest = null; WebResponse webResponse = null; try { webRequest = WebRequest.Create(this.ContactWebSiteURL.Text); webResponse = webRequest.GetResponse(); } catch (UriFormatException ex) { ContactWebSiteURLCustom.ErrorMessage = ex.Message; args.IsValid = false; } catch (WebException ex) { ContactWebSiteURLCustom.ErrorMessage = ex.Message; args.IsValid = false; if (ex.Response != null && ex.Response.Headers != null) { ContactWebSiteURLCustom.ErrorMessage = ex.Message; //+ " - Web Exception - " + ex.Response.Headers.ToString(); args.IsValid = false; } ContactWebSiteURLCustom.ErrorMessage = ex.Message; //+ " - \nStack Trace Error - " + ex.ToString(); args.IsValid = false; } catch (Exception ex) { ContactWebSiteURLCustom.ErrorMessage = ex.Message; //+ " - \nStack Trace Error - " + ex.ToString(); args.IsValid = false; } finally { if (webResponse != null) { webResponse.Close(); } } Boolean bFlag = args.IsValid; }}Public Class WebForm4 Inherits System.Web.UI.Page Private Sub WebForm4_InitComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.InitComplete End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Session("NumberBorrowers") = "0" Then Borrower2.Visible = False End If If Session("NumberBorrowers") = "1" Then Borrower2.Visible = True End If End Sub Sub BlankCredit(ByVal Borrower, ByVal AssetNumber) Session("B" & Borrower & "CardLimit" & AssetNumber) = 0 Session("B" & Borrower & "CardOwing" & AssetNumber) = 0 Session("B" & Borrower & "CardProvider" & AssetNumber) = "" Session("B" & Borrower & "CardConsolidate" & AssetNumber) = 0 End Sub Protected Sub B1CardName1_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B1CardName1.SelectedIndexChanged Session("B1CardName1") = B1CardName1.SelectedIndex If B1CardName1.SelectedIndex = 0 Then BlankCredit(1, 1) End If End Sub Protected Sub B1CardName2_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B1CardName2.SelectedIndexChanged Session("B1CardName2") = B1CardName2.SelectedIndex If B1CardName2.SelectedIndex = 0 Then BlankCredit(1, 2) End If End Sub Protected Sub B1CardName3_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B1CardName3.SelectedIndexChanged Session("B1CardName3") = B1CardName3.SelectedIndex If B1CardName3.SelectedIndex = 0 Then BlankCredit(1, 3) End If End Sub Protected Sub B1CardName4_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B1CardName4.SelectedIndexChanged Session("B1CardName4") = B1CardName4.SelectedIndex If B1CardName4.SelectedIndex = 0 Then BlankCredit(1, 4) End If End Sub Protected Sub B1CardName5_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B1CardName5.SelectedIndexChanged Session("B1CardName5") = B1CardName5.SelectedIndex If B1CardName5.SelectedIndex = 0 Then BlankCredit(1, 5) End If End Sub Protected Sub B1CardLimit1_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardLimit1.TextChanged Session("B1CardLimit1") = B1CardLimit1.Text End Sub Protected Sub B1CardLimit2_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardLimit2.TextChanged Session("B1CardLimit2") = B1CardLimit2.Text End Sub Protected Sub B1CardLimit3_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardLimit3.TextChanged Session("B1CardLimit3") = B1CardLimit3.Text End Sub Protected Sub B1CardLimit4_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardLimit4.TextChanged Session("B1CardLimit4") = B1CardLimit4.Text End Sub Protected Sub B1CardLimit5_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardLimit5.TextChanged Session("B1CardLimit5") = B1CardLimit5.Text End Sub Protected Sub B1CardOwing1_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardOwing1.TextChanged Session("B1CardOwing1") = B1CardOwing1.Text End Sub Protected Sub B1CardOwing2_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardOwing2.TextChanged Session("B1CardOwing2") = B1CardOwing2.Text End Sub Protected Sub B1CardOwing3_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardOwing3.TextChanged Session("B1CardOwing3") = B1CardOwing3.Text End Sub Protected Sub B1CardOwing4_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardOwing4.TextChanged Session("B1CardOwing4") = B1CardOwing4.Text End Sub Protected Sub B1CardOwing5_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardOwing5.TextChanged Session("B1CardOwing5") = B1CardOwing5.Text End Sub Protected Sub B1CardProvider1_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardProvider1.TextChanged Session("B1CardProvider1") = B1CardProvider1.Text End Sub Protected Sub B1CardProvider2_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardProvider2.TextChanged Session("B1CardProvider2") = B1CardProvider2.Text End Sub Protected Sub B1CardProvider3_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardProvider3.TextChanged Session("B1CardProvider3") = B1CardProvider3.Text End Sub Protected Sub B1CardProvider4_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardProvider4.TextChanged Session("B1CardProvider4") = B1CardProvider4.Text End Sub Protected Sub B1CardProvider5_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B1CardProvider5.TextChanged Session("B1CardProvider5") = B1CardProvider5.Text End Sub Protected Sub B1CardConsolidate1_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B1CardConsolidate1.SelectedIndexChanged Session("B1CardConsolidate1") = B1CardConsolidate1.SelectedIndex End Sub Protected Sub B1CardConsolidate2_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B1CardConsolidate2.SelectedIndexChanged Session("B1CardConsolidate2") = B1CardConsolidate2.SelectedIndex End Sub Protected Sub B1CardConsolidate3_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B1CardConsolidate3.SelectedIndexChanged Session("B1CardConsolidate3") = B1CardConsolidate3.SelectedIndex End Sub Protected Sub B1CardConsolidate4_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B1CardConsolidate4.SelectedIndexChanged Session("B1CardConsolidate4") = B1CardConsolidate4.SelectedIndex End Sub Protected Sub B1CardConsolidate5_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B1CardConsolidate5.SelectedIndexChanged Session("B1CardConsolidate5") = B1CardConsolidate5.SelectedIndex End Sub Protected Sub B2CardName1_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B2CardName1.SelectedIndexChanged Session("B2CardName1") = B2CardName1.SelectedIndex If B2CardName1.SelectedIndex = 0 Then BlankCredit(2, 1) End If End Sub Protected Sub B2CardName2_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B2CardName2.SelectedIndexChanged Session("B2CardName2") = B2CardName2.SelectedIndex If B2CardName2.SelectedIndex = 0 Then BlankCredit(2, 2) End If End Sub Protected Sub B2CardName3_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B2CardName3.SelectedIndexChanged Session("B2CardName3") = B2CardName3.SelectedIndex If B2CardName3.SelectedIndex = 0 Then BlankCredit(2, 3) End If End Sub Protected Sub B2CardName4_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B2CardName4.SelectedIndexChanged Session("B2CardName4") = B2CardName4.SelectedIndex If B2CardName4.SelectedIndex = 0 Then BlankCredit(2, 4) End If End Sub Protected Sub B2CardName5_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B2CardName5.SelectedIndexChanged Session("B2CardName5") = B2CardName5.SelectedIndex If B2CardName5.SelectedIndex = 0 Then BlankCredit(2, 5) End If End Sub Protected Sub B2CardLimit1_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardLimit1.TextChanged Session("B2CardLimit1") = B2CardLimit1.Text End Sub Protected Sub B2CardLimit2_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardLimit2.TextChanged Session("B2CardLimit2") = B2CardLimit2.Text End Sub Protected Sub B2CardLimit3_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardLimit3.TextChanged Session("B2CardLimit3") = B2CardLimit3.Text End Sub Protected Sub B2CardLimit4_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardLimit4.TextChanged Session("B2CardLimit4") = B2CardLimit4.Text End Sub Protected Sub B2CardLimit5_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardLimit5.TextChanged Session("B2CardLimit5") = B2CardLimit5.Text End Sub Protected Sub B2CardOwing1_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardOwing1.TextChanged Session("B2CardOwing1") = B2CardOwing1.Text End Sub Protected Sub B2CardOwing2_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardOwing2.TextChanged Session("B2CardOwing2") = B2CardOwing2.Text End Sub Protected Sub B2CardOwing3_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardOwing3.TextChanged Session("B2CardOwing3") = B2CardOwing3.Text End Sub Protected Sub B2CardOwing4_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardOwing4.TextChanged Session("B2CardOwing4") = B2CardOwing4.Text End Sub Protected Sub B2CardOwing5_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardOwing5.TextChanged Session("B2CardOwing5") = B2CardOwing5.Text End Sub Protected Sub B2CardProvider1_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardProvider1.TextChanged Session("B2CardProvider1") = B2CardProvider1.Text End Sub Protected Sub B2CardProvider2_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardProvider2.TextChanged Session("B2CardProvider2") = B2CardProvider2.Text End Sub Protected Sub B2CardProvider3_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardProvider3.TextChanged Session("B2CardProvider3") = B2CardProvider3.Text End Sub Protected Sub B2CardProvider4_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardProvider4.TextChanged Session("B2CardProvider4") = B2CardProvider4.Text End Sub Protected Sub B2CardProvider5_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles B2CardProvider5.TextChanged Session("B2CardProvider5") = B2CardProvider5.Text End Sub Protected Sub B2CardConsolidate1_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B2CardConsolidate1.SelectedIndexChanged Session("B2CardConsolidate1") = B2CardConsolidate1.SelectedIndex End Sub Protected Sub B2CardConsolidate2_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B2CardConsolidate2.SelectedIndexChanged Session("B2CardConsolidate2") = B2CardConsolidate2.SelectedIndex End Sub Protected Sub B2CardConsolidate3_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B2CardConsolidate3.SelectedIndexChanged Session("B2CardConsolidate3") = B2CardConsolidate3.SelectedIndex End Sub Protected Sub B2CardConsolidate4_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B2CardConsolidate4.SelectedIndexChanged Session("B2CardConsolidate4") = B2CardConsolidate4.SelectedIndex End Sub Protected Sub B2CardConsolidate5_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B2CardConsolidate5.SelectedIndexChanged Session("B2CardConsolidate5") = B2CardConsolidate5.SelectedIndex End Sub Private Sub WebForm4_LoadComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadComplete B1CardName1.SelectedIndex = Session("B1CardName1") B1CardName2.SelectedIndex = Session("B1CardName2") B1CardName3.SelectedIndex = Session("B1CardName3") B1CardName4.SelectedIndex = Session("B1CardName4") B1CardName5.SelectedIndex = Session("B1CardName5") B1CardLimit1.Text = Session("B1CardLimit1") B1CardLimit2.Text = Session("B1CardLimit2") B1CardLimit3.Text = Session("B1CardLimit3") B1CardLimit4.Text = Session("B1CardLimit4") B1CardLimit5.Text = Session("B1CardLimit5") B1CardOwing1.Text = Session("B1CardOwing1") B1CardOwing2.Text = Session("B1CardOwing2") B1CardOwing3.Text = Session("B1CardOwing3") B1CardOwing4.Text = Session("B1CardOwing4") B1CardOwing5.Text = Session("B1CardOwing5") B1CardProvider1.Text = Session("B1CardProvider1") B1CardProvider2.Text = Session("B1CardProvider2") B1CardProvider3.Text = Session("B1CardProvider3") B1CardProvider4.Text = Session("B1CardProvider4") B1CardProvider5.Text = Session("B1CardProvider5") B1CardConsolidate1.SelectedIndex = Session("B1CardConsolidate1") B1CardConsolidate2.SelectedIndex = Session("B1CardConsolidate2") B1CardConsolidate3.SelectedIndex = Session("B1CardConsolidate3") B1CardConsolidate4.SelectedIndex = Session("B1CardConsolidate4") B1CardConsolidate5.SelectedIndex = Session("B1CardConsolidate5") B2CardName1.SelectedIndex = Session("B2CardName1") B2CardName2.SelectedIndex = Session("B2CardName2") B2CardName3.SelectedIndex = Session("B2CardName3") B2CardName4.SelectedIndex = Session("B2CardName4") B2CardName5.SelectedIndex = Session("B2CardName5") B2CardLimit1.Text = Session("B2CardLimit1") B2CardLimit2.Text = Session("B2CardLimit2") B2CardLimit3.Text = Session("B2CardLimit3") B2CardLimit4.Text = Session("B2CardLimit4") B2CardLimit5.Text = Session("B2CardLimit5") B2CardOwing1.Text = Session("B2CardOwing1") B2CardOwing2.Text = Session("B2CardOwing2") B2CardOwing3.Text = Session("B2CardOwing3") B2CardOwing4.Text = Session("B2CardOwing4") B2CardOwing5.Text = Session("B2CardOwing5") B2CardProvider1.Text = Session("B2CardProvider1") B2CardProvider2.Text = Session("B2CardProvider2") B2CardProvider3.Text = Session("B2CardProvider3") B2CardProvider4.Text = Session("B2CardProvider4") B2CardProvider5.Text = Session("B2CardProvider5") B2CardConsolidate1.SelectedIndex = Session("B2CardConsolidate1") B2CardConsolidate2.SelectedIndex = Session("B2CardConsolidate2") B2CardConsolidate3.SelectedIndex = Session("B2CardConsolidate3") B2CardConsolidate4.SelectedIndex = Session("B2CardConsolidate4") B2CardConsolidate5.SelectedIndex = Session("B2CardConsolidate5") B1CreditDefaults.SelectedIndex = Session("B1CreditDefaults") B2CreditDefaults.SelectedIndex = Session("B2CreditDefaults") B1CreditArrears.SelectedIndex = Session("B1CreditArrears") B2CreditArrears.SelectedIndex = Session("B2CreditArrears") End Sub Protected Sub B1CreditDefaults_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B1CreditDefaults.SelectedIndexChanged Session("B1CreditDefaults") = B1CreditDefaults.SelectedIndex End Sub Protected Sub B2CreditDefaults_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B2CreditDefaults.SelectedIndexChanged Session("B2CreditDefaults") = B2CreditDefaults.SelectedIndex End Sub Protected Sub B1CreditArrears_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B1CreditArrears.SelectedIndexChanged Session("B1CreditArrears") = B1CreditArrears.SelectedIndex End Sub Protected Sub B2CreditArrears_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles B2CreditArrears.SelectedIndexChanged Session("B2CreditArrears") = B2CreditArrears.SelectedIndex End Sub Private Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate Dim htmlGenericControl As New HtmlGenericControl("P") If InStr(e.TargetControlID, "Name") > 0 Then htmlGenericControl.InnerText = "Ensure you enter ALL credit cards AND store cards (e.g Ge Money, Creditline etc.)" ElseIf InStr(e.TargetControlID, "Limit") > 0 Then htmlGenericControl.InnerText = "The limit must be entered accurately for us to be able to provide a correct quote. If you are finding you can borrow less than you thought try cancelling large credit cards before you apply." ElseIf InStr(e.TargetControlID, "Provider") > 0 Then htmlGenericControl.InnerText = "Enter the provider (bank name, branded credit card or store card provider)" ElseIf InStr(e.TargetControlID, "Consoli") > 0 Then htmlGenericControl.InnerText = "If you wish to pay out your credit card with this loan select 'Yes'. This generally only works in your favour if you have more than a 20% deposit for house purchase or 20% equity when refinancing." ElseIf InStr(e.TargetControlID, "Default") > 0 Then htmlGenericControl.InnerText = "If you are aware of any defaults in your credit history this will limit the loans available to you. However, we can find very competitive loans in any case. You can get your credit report free at mycreditfile.com.au." ElseIf InStr(e.TargetControlID, "Arrears") > 0 Then htmlGenericControl.InnerText = "If you are in arrears for any of your current loans this will limit the loans available to you. However, we can find very competitive loans in any case." End If e.UpdatePanel.ContentTemplateContainer.Controls.Add(htmlGenericControl) End SubEnd Class<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Credit.aspx.vb" Inherits="RadControlsWebApp1.WebForm4" %><!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 id="Head1" runat="server"> <title></title> <style type="text/css"> .radPane { text-align: center; } .radPane { text-align: center; } .style1 { width: 175px; } .style2 { color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; padding-left: 40px; padding-right: 40px; width: 70px; } .tablewidth { width: 70px; text-align: center; } .style5 { color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; padding-left: 40px; padding-right: 40px; width: 108px; } .style6 { width: 108px; } .style7 { font-size: xx-small; } </style> <link rel="stylesheet" type="text/css" href="Styles.css" /></head><body bgcolor=#000000> <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> function pageLoad(sender, eventArgs) { if (!eventArgs.get_isPartialLoad()) { $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("InitialPageLoad"); } } </script> </telerik:RadCodeBlock> <form id="form1" runat="server"> <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server"> </telerik:RadStyleSheetManager> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadSplitter1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadSplitter1" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Black"> </telerik:RadAjaxLoadingPanel> <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" Skin="Black" /> <telerik:RadInputManager ID="RadInputManager1" runat="server"> </telerik:RadInputManager> <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="925px" Height="530px" Skin="Black" top="0" left="0" BorderSize="0" PanesBorderSize="0" Orientation="Horizontal" ResizeWithBrowserWindow="False" ResizeWithParentPane="False"> <telerik:RadPane ID="Borrower1Pane" runat="server" Width="925px" Height="270px" style="text-align: center" CssClass="radPane" Scrolling="None"> <table class="center"> <tr> <center class="h3"> <caption> <br /> Credit and Store Cards <br /><span class="style7">(for pre-approval or application the limits must be accurate)</span></caption> </center> <br /> </tr> <tr> <td class="style2"> Borrower 1</td> <td class="style2"> Limit</td> <td class="style5"> Amount Owing</td> <td class="text"> Provider </td> <td class="text">Consolidate?</td> </tr> <tr> <td class="style1"> <telerik:RadComboBox ID="B1CardName1" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="" Value="" Owner="B1CardName1" /> <telerik:RadComboBoxItem runat="server" Text="Credit Card" Value="Credit Card" Owner="B1CardName1" /> <telerik:RadComboBoxItem runat="server" Text="Store Card" Value="Investment Property" Owner="B1CardName1" /> </Items> </telerik:RadComboBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B1CardLimit1" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B1CardOwing1" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadTextBox ID="B1CardProvider1" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadTextBox> </td> <td class="tablewidth"> <telerik:RadComboBox ID="B1CardConsolidate1" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="No" Value="No" Owner="B1CardConsolidate1" /> <telerik:RadComboBoxItem runat="server" Text="Yes" Value="Yes" Owner="B1CardConsolidate1" /> </Items> </telerik:RadComboBox> </td> </tr> <tr> <td class="style1"> <telerik:RadComboBox ID="B1CardName2" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="" Value="" Owner="B1CardName2" /> <telerik:RadComboBoxItem runat="server" Text="Credit Card" Value="Credit Card" Owner="B1CardName2" /> <telerik:RadComboBoxItem runat="server" Text="Store Card" Value="Investment Property" Owner="B1CardName2" /> </Items> </telerik:RadComboBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B1CardLimit2" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B1CardOwing2" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadTextBox ID="B1CardProvider2" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadTextBox> </td> <td class="tablewidth"> <telerik:RadComboBox ID="B1CardConsolidate2" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="No" Value="No" Owner="B1CardConsolidate2" /> <telerik:RadComboBoxItem runat="server" Text="Yes" Value="Yes" Owner="B1CardConsolidate2" /> </Items> </telerik:RadComboBox> </td> </tr> <tr> <td class="style1"> <telerik:RadComboBox ID="B1CardName3" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="" Value="" Owner="B1CardName3" /> <telerik:RadComboBoxItem runat="server" Text="Credit Card" Value="Credit Card" Owner="B1CardName3" /> <telerik:RadComboBoxItem runat="server" Text="Store Card" Value="Investment Property" Owner="B1CardName3" /> </Items> </telerik:RadComboBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B1CardLimit3" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B1CardOwing3" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadTextBox ID="B1CardProvider3" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadTextBox> </td> <td class="tablewidth"> <telerik:RadComboBox ID="B1CardConsolidate3" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="No" Value="No" Owner="B1CardConsolidate3" /> <telerik:RadComboBoxItem runat="server" Text="Yes" Value="Yes" Owner="B1CardConsolidate3" /> </Items> </telerik:RadComboBox> </td> </tr> <tr> <td class="style1"> <telerik:RadComboBox ID="B1CardName4" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="" Value="" Owner="B1CardName4" /> <telerik:RadComboBoxItem runat="server" Text="Credit Card" Value="Credit Card" Owner="B1CardName4" /> <telerik:RadComboBoxItem runat="server" Text="Store Card" Value="Investment Property" Owner="B1CardName4" /> </Items> </telerik:RadComboBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B1CardLimit4" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B1CardOwing4" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadTextBox ID="B1CardProvider4" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadTextBox> </td> <td class="tablewidth"> <telerik:RadComboBox ID="B1CardConsolidate4" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="No" Value="No" Owner="B1CardConsolidate4" /> <telerik:RadComboBoxItem runat="server" Text="Yes" Value="Yes" Owner="B1CardConsolidate4" /> </Items> </telerik:RadComboBox> </td> </tr> <tr> <td class="style1"> <telerik:RadComboBox ID="B1CardName5" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="" Value="" Owner="B1CardName5" /> <telerik:RadComboBoxItem runat="server" Text="Credit Card" Value="Credit Card" Owner="B1CardName5" /> <telerik:RadComboBoxItem runat="server" Text="Store Card" Value="Investment Property" Owner="B1CardName5" /> </Items> </telerik:RadComboBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B1CardLimit5" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B1CardOwing5" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadTextBox ID="B1CardProvider5" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadTextBox> </td> <td class="tablewidth"> <telerik:RadComboBox ID="B1CardConsolidate5" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="No" Value="No" Owner="B1CardConsolidate5" /> <telerik:RadComboBoxItem runat="server" Text="Yes" Value="Yes" Owner="B1CardConsolidate5" /> </Items> </telerik:RadComboBox> </td> </tr> <tr> <td> </td> </tr> </table> <telerik:RadTextBox ID="RadTextBox1" Runat="server" ReadOnly="True" Skin="Black" Text="Are you aware of any defaults on your credit file?" Width="265px"> </telerik:RadTextBox> <telerik:RadComboBox ID="B1CreditDefaults" Runat="server" AutoPostBack="True" Skin="Black" Width="88px"> <Items> <telerik:RadComboBoxItem runat="server" Owner="B1CreditDefaults" Text="No" Value="No" /> <telerik:RadComboBoxItem runat="server" Owner="B1CreditDefaults" Text="Yes" Value="Yes" /> </Items> </telerik:RadComboBox> <telerik:RadTextBox ID="RadTextBox2" Runat="server" ReadOnly="True" Skin="Black" Text="Are any of your current loans in arrears?" Width="265px"> </telerik:RadTextBox> <telerik:RadComboBox ID="B1CreditArrears" Runat="server" AutoPostBack="True" Skin="Black" Width="88px"> <Items> <telerik:RadComboBoxItem runat="server" Owner="B1CreditArrears" Text="No" Value="No" /> <telerik:RadComboBoxItem runat="server" Owner="B1CreditArrears" Text="Yes" Value="Yes" /> </Items> </telerik:RadComboBox> </telerik:RadPane> <telerik:RadPane ID="Borrower2Pane" runat="server" Width="925px" Height="260px" style="text-align: center" CssClass="radPane" Scrolling="None"> <div id="Borrower2" runat="server"> <table class="center"> <tr> <td class="style2"> Borrower 2</td> <td class="style2"> Limit</td> <td class="style5"> Amount Owing</td> <td class="text"> Provider </td> <td class="text">Consolidate?</td> </tr> <tr> <td class="style1"> <telerik:RadComboBox ID="B2CardName1" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="" Value="" Owner="B2CardName1" /> <telerik:RadComboBoxItem runat="server" Text="Credit Card" Value="Credit Card" Owner="B2CardName1" /> <telerik:RadComboBoxItem runat="server" Text="Store Card" Value="Investment Property" Owner="B2CardName1" /> </Items> </telerik:RadComboBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B2CardLimit1" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B2CardOwing1" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadTextBox ID="B2CardProvider1" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadTextBox> </td> <td class="tablewidth"> <telerik:RadComboBox ID="B2CardConsolidate1" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="No" Value="No" Owner="B2CardConsolidate1" /> <telerik:RadComboBoxItem runat="server" Text="Yes" Value="Yes" Owner="B2CardConsolidate1" /> </Items> </telerik:RadComboBox> </td> </tr> <tr> <td class="style1"> <telerik:RadComboBox ID="B2CardName2" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="" Value="" Owner="B2CardName2" /> <telerik:RadComboBoxItem runat="server" Text="Credit Card" Value="Credit Card" Owner="B2CardName2" /> <telerik:RadComboBoxItem runat="server" Text="Store Card" Value="Investment Property" Owner="B2CardName2" /> </Items> </telerik:RadComboBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B2CardLimit2" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B2CardOwing2" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadTextBox ID="B2CardProvider2" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadTextBox> </td> <td class="tablewidth"> <telerik:RadComboBox ID="B2CardConsolidate2" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="No" Value="No" Owner="B2CardConsolidate2" /> <telerik:RadComboBoxItem runat="server" Text="Yes" Value="Yes" Owner="B2CardConsolidate2" /> </Items> </telerik:RadComboBox> </td> </tr> <tr> <td class="style1"> <telerik:RadComboBox ID="B2CardName3" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="" Value="" Owner="B2CardName3" /> <telerik:RadComboBoxItem runat="server" Text="Credit Card" Value="Credit Card" Owner="B2CardName3" /> <telerik:RadComboBoxItem runat="server" Text="Store Card" Value="Investment Property" Owner="B2CardName3" /> </Items> </telerik:RadComboBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B2CardLimit3" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B2CardOwing3" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadTextBox ID="B2CardProvider3" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadTextBox> </td> <td class="tablewidth"> <telerik:RadComboBox ID="B2CardConsolidate3" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="No" Value="No" Owner="B2CardConsolidate3" /> <telerik:RadComboBoxItem runat="server" Text="Yes" Value="Yes" Owner="B2CardConsolidate3" /> </Items> </telerik:RadComboBox> </td> </tr> <tr> <td class="style1"> <telerik:RadComboBox ID="B2CardName4" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="" Value="" Owner="B2CardName4" /> <telerik:RadComboBoxItem runat="server" Text="Credit Card" Value="Credit Card" Owner="B2CardName4" /> <telerik:RadComboBoxItem runat="server" Text="Store Card" Value="Investment Property" Owner="B2CardName4" /> </Items> </telerik:RadComboBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B2CardLimit4" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B2CardOwing4" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadTextBox ID="B2CardProvider4" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadTextBox> </td> <td class="tablewidth"> <telerik:RadComboBox ID="B2CardConsolidate4" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="No" Value="No" Owner="B2CardConsolidate4" /> <telerik:RadComboBoxItem runat="server" Text="Yes" Value="Yes" Owner="B2CardConsolidate4" /> </Items> </telerik:RadComboBox> </td> </tr> <tr> <td class="style1"> <telerik:RadComboBox ID="B2CardName5" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="" Value="" Owner="B2CardName5" /> <telerik:RadComboBoxItem runat="server" Text="Credit Card" Value="Credit Card" Owner="B2CardName5" /> <telerik:RadComboBoxItem runat="server" Text="Store Card" Value="Investment Property" Owner="B2CardName5" /> </Items> </telerik:RadComboBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B2CardLimit5" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadNumericTextBox ID="B2CardOwing5" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadNumericTextBox> </td> <td class="tablewidth"> <telerik:RadTextBox ID="B2CardProvider5" Runat="server" AutoPostBack="True" Skin="Black"> </telerik:RadTextBox> </td> <td class="tablewidth"> <telerik:RadComboBox ID="B2CardConsolidate5" Runat="server" AutoPostBack="True" Skin="Black"> <Items> <telerik:RadComboBoxItem runat="server" Text="No" Value="No" Owner="B2CardConsolidate5" /> <telerik:RadComboBoxItem runat="server" Text="Yes" Value="Yes" Owner="B2CardConsolidate5" /> </Items> </telerik:RadComboBox> </td> </tr> </table> <telerik:RadTextBox ID="lblFirstHomeBuyer1" Runat="server" ReadOnly="True" Skin="Black" Text="Are you aware of any defaults on your credit file?" Width="265px"> </telerik:RadTextBox> <telerik:RadComboBox ID="B2CreditDefaults" Runat="server" AutoPostBack="True" Skin="Black" Width="88px"> <Items> <telerik:RadComboBoxItem runat="server" Owner="B2CreditDefaults" Text="No" Value="No" /> <telerik:RadComboBoxItem runat="server" Owner="B2CreditDefaults" Text="Yes" Value="Yes" /> </Items> </telerik:RadComboBox> <telerik:RadTextBox ID="lblFirstHomeBuyer2" Runat="server" ReadOnly="True" Skin="Black" Text="Are any of your current loans in arrears?" Width="265px"> </telerik:RadTextBox> <telerik:RadComboBox ID="B2CreditArrears" Runat="server" AutoPostBack="True" Skin="Black" Width="88px"> <Items> <telerik:RadComboBoxItem runat="server" Owner="B2CreditArrears" Text="No" Value="No" /> <telerik:RadComboBoxItem runat="server" Owner="B2CreditArrears" Text="Yes" Value="Yes" /> </Items> </telerik:RadComboBox> </div> </telerik:RadPane> </telerik:RadSplitter> <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Animation="Fade" Skin="Black" Title="Tips" AutoCloseDelay="10000" OffsetY="3" Position="BottomRight" RelativeTo="Element" AnimationDuration="100"> <TargetControls> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardName1" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardName2" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardName3" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardName4" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardName5" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardLimit1" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardLimit2" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardLimit3" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardLimit4" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardLimit5" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardProvider1" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardProvider2" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardProvider3" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardProvider4" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardProvider5" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardConsolidate1" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardConsolidate2" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardConsolidate3" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardConsolidate4" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CardConsolidate5" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardName1" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardName2" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardName3" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardName4" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardName5" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardLimit1" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardLimit2" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardLimit3" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardLimit4" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardLimit5" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardProvider1" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardProvider2" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardProvider3" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardProvider4" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardProvider5" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardConsolidate1" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardConsolidate2" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardConsolidate3" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardConsolidate4" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CardConsolidate5" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CreditDefaults" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CreditDefaults" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B1CreditArrears" /> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="B2CreditArrears" /> </TargetControls> </telerik:RadToolTipManager> </form></body></html>
<telerik:TextBoxSetting ErrorMessage="Required..." Validation-IsRequired="true"
ReadOnlyCssClass="DisabledControl" > <TargetControls> <telerik:TargetInput ControlID="txtYearBuilt" /> <telerik:TargetInput ControlID="txtModel" /> </TargetControls> <Validation IsRequired="True"></Validation> </telerik:TextBoxSetting>DisabledControl class is in module.css I'm changing textbox to readonly on pageloadprotected void radgridUpdate(Object source, Telerik.Web.UI.GridCommandEventArgs e){ RadTextBox track = (RadTextBox)e.Item.FindControl("trackNameInputGrid"); Response.Write(track.Text);}//radgridUpdate<telerik:GridTemplateColumn DataField="trackName" HeaderText="Track Name" SortExpression="trackName" UniqueName="trackName" > <ItemTemplate> <asp:Label ID="trackNameOutput" runat="server" Text='<%# Bind("trackName") %>'></asp:Label> </ItemTemplate> <EditItemTemplate> <telerik:RadTextBox ID="trackNameInputGrid" Runat="server" Value='<%# Eval("trackName") %>' > </telerik:RadTextBox> </EditItemTemplate> </telerik:GridTemplateColumn><%@ Page Title="Find Location" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FindLocation.aspx.cs" Inherits="Project1.FindLocation" %> <br><%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><br><%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %><br><asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContentPH" runat="server"><br></asp:Content><br><asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPH" runat="server"><br> <div style="float: left; padding: 15px;"><br> <h2><br> Find Location</h2><br> <asp:UpdatePanel ID="FindLocationUpdatePnl" runat="server" UpdateMode="Conditional"><br> <ContentTemplate><br> <table><br> <tr><br> <td><br> <fieldset><br> <legend>General</legend><br> <table width="100%"><br> <tr><br> <td><br> Custom Identifier<br> </td><br> <td><br> <telerik:RadTextBox ID="m_oCustomIdTextBox" runat="server"><br> </telerik:RadTextBox><br> </td><br> </tr><br> <tr><br> <td><br> Owned by<br> </td><br> <td><br> <telerik:RadComboBox ID="m_oOwnedByComboBox" runat="server" AutoPostBack="false"<br> EnableViewState="true"><br> </telerik:RadComboBox><br> </td><br> </tr><br> <tr><br> <td><br> Maintained by<br> </td><br> <td><br> <telerik:RadComboBox ID="m_oMaintainedByComboBox" runat="server" OnSelectedIndexChanged="MaintainedByChanged"<br> EnableViewState="true" AutoPostBack="true"><br> </telerik:RadComboBox><br> </td><br> </tr><br> </table><br> </fieldset><br> </td><br> <td><br> <fieldset><br> <legend>Has Route</legend><br> <table width="100%"><br> <tr><br> <td><br> Type<br> </td><br> <td><br> <telerik:RadComboBox ID="m_oHasRouteTypeComboBox" runat="server" AutoPostBack="true"<br> EnableViewState="true" /><br> </td><br> </tr><br> <tr><br> <td><br> Name or Number<br> </td><br> <td><br> <telerik:RadComboBox ID="m_oNameOrNumber1" runat="server" AutoPostBack="true" EnableViewState="true" /><br> </td><br> </tr><br> </table><br> </fieldset><br> </td><br> </tr><br> <tr><br> <td><br> <fieldset><br> <legend>Region</legend><br> <table width="100%"><br> <tr><br> <td><br> County<br> </td><br> <td><br> <telerik:RadComboBox ID="m_oCountyComboBox" runat="server" OnSelectedIndexChanged="CountyChanged"<br> AutoPostBack="true" EnableViewState="true" /><br> </td><br> </tr><br> <tr><br> <td><br> City<br> </td><br> <td><br> <telerik:RadComboBox ID="m_oCityComboBox" runat="server" OnSelectedIndexChanged="CityChanged"<br> AutoPostBack="true" EnableViewState="true" /><br> </td><br> </tr><br> <tr><br> <td><br> <br> </td><br> </tr><br> </table><br> </fieldset><br> </td><br> <td><br> <fieldset><br> <legend>And Has Route</legend><br> <table width="100%"><br> <tr><br> <td><br> Type<br> </td><br> <td><br> <telerik:RadComboBox ID="m_oAndHasRouteTypeComboBox" runat="server" AutoPostBack="true"<br> EnableViewState="true" /><br> </td><br> </tr><br> <tr><br> <td><br> Name or Number<br> </td><br> <td><br> <telerik:RadComboBox ID="m_oNameOrNumber2" runat="server" AutoPostBack="true" EnableViewState="true" /><br> </td><br> </tr><br> </table><br> </fieldset><br> </td><br> </tr><br> </table><br> </ContentTemplate><br> </asp:UpdatePanel><br> <!-- Buttons --><br> <asp:UpdatePanel runat="server" UpdateMode="Conditional"><br> <ContentTemplate><br> <div><br> <telerik:RadButton ID="m_oSearchBtn" runat="server" Text="Search" OnClick="FindLocations" /><br> </div><br> </div><br> <div style="float: left; padding: 15px;"><br> <telerik:RadGrid ID="m_oRadGrid" AllowPaging="true" PageSize="3" runat="server" AutoGenerateColumns="False"<br> DataSourceID="m_oFoundLocationsSource" HorizontalAlign="NotSet"><br> <MasterTableView DataSourceID="m_oFoundLocationsSource"><br> <Columns><br> <telerik:GridBoundColumn DataField="CustomIdentifier" HeaderText="Custom Identifier"<br> DataType="System.String" UniqueName="CustomIdentifier"><br> </telerik:GridBoundColumn><br> </Columns><br> </MasterTableView><br> </telerik:RadGrid><br> </ContentTemplate><br> </asp:UpdatePanel><br> <asp:ObjectDataSource ID="m_oFoundLocationsSource" runat="server" SelectMethod="GetFoundLocations"<br> EnablePaging="true" StartRowIndexParameterName="iStartRecord" MaximumRowsParameterName="iMaxRecords"<br> SortParameterName="sSortColumns" DataObjectTypeName="PersistenceLayer.Location"<br> TypeName="Project1.FindLocation" OldValuesParameterFormatString="original_{0}"></asp:ObjectDataSource><br> </div><br></asp:Content>using System;<br>using System.Collections.Generic;<br>using System.Linq;using System.Web;using System.Web.UI;<br>using System.Web.UI.WebControls;<br>using PersistenceLayer;<br>using Project1.Helpers;<br>using <font style="font-size: 14px; ">Project1</font>.Cache;<br>using System.Collections.ObjectModel;<br>using Telerik.Web.UI;<br><br><br>namespace Project1<br>{<br> public partial class FindLocation : System.Web.UI.Page<br> {<br> #region Event Handlers<br><br><br> #region Page Init<br><br><br> protected void Page_Load(object sender, EventArgs e)<br> {<br> if (IsPostBack == false)<br> {<br><font class="Apple-tab-span" style="white-space: pre; "> </font>//initialize drop down content<br> }<br> }<br><br><br> #endregion<br><br><br> #region Filter Logic<br><br><br> protected void MaintainedByChanged(object sender, EventArgs e)<br> {<br> //change dropdown content<br> }<br><br><br> protected void CountyChanged(object sender, EventArgs e)<br> {<br> //change dropdown content<br> }<br><br><br> protected void CityChanged(object sender, EventArgs e)<br> {<br> //change dropdown content<br> }<br><br><br> protected void FindLocations(object sender, EventArgs e)<br> {<br><font class="Apple-tab-span" style="white-space: pre; "> </font>//get data from drop downs<br> ServerSessionCache.FoundLocations = PerformSearch(sCustomId, gOwnedById, gMaintainedById, gCountyId, gCityId);<br> m_oRadGrid.Rebind();<br> }<br><br><br> #endregion<br><br><br> #region RadGrid Logic<br><br><br> public static IList<Location> GetFoundLocations(string sSortColumns, int iMaxRecords, int iStartRecord)<br> {<br> return ServerSessionCache.FoundLocations;<br> }<br><br><br> #endregion<br><br><br> #endregion<br><br><br> #region Methods<br><br><br> public IList<Location> PerformSearch(string sCustomId, Guid gOwnedById, Guid gMaintainedById, Guid gCountyId, Guid gCityId)<br> {<br> //use data to perform query, store in oLocations<br><br><br> return oLocations;<br> }<br><br><br> #endregion<br> }<br>}