| Current Path : G:/PleskVhosts/mpcdp.in/cmamp.mpcdp.in/cdpp2/ |
Windows NT SG2NWVPWEB022 10.0 build 17763 (Windows Server 2016) i586 |
| Current File : G:/PleskVhosts/mpcdp.in/cmamp.mpcdp.in/cdpp2/frm_adddistrict.aspx |
<%@ page language="VB" masterpagefile="~/MasterPage.master" autoeventwireup="false" inherits="frm_adddistrict, App_Web_ptpliqvi" title="Add District" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPCDP" runat="Server">
<script type="text/javascript">
function ValidateDropDown() {
var cmbID = "<%=DD_CompanyName.ClientID %>";
var cmdDistr="<%=DD_Division.ClientID %>";
if (document.getElementById(cmbID).selectedIndex == 0) {
alert("Please Select the Company");
return false;
}
if (document.getElementById(cmdDistr).selectedIndex == 0) {
alert("Please Select the Division");
return false;
}
return true;
}
function Confirm() {
var myBoolean=new Boolean();
var myBoolean= ValidateDropDown();
if (myBoolean==true)
{
var confirm_value = document.createElement("INPUT");
confirm_value.type = "hidden";
confirm_value.name = "confirm_value";
if (confirm("Do you want to save data?")) {
confirm_value.value = "Yes";
} else {
confirm_value.value = "No";
}
document.forms[0].appendChild(confirm_value);
}
}
</script>
<div style="padding-left: 8px; padding-right: 8px">
<div id="BasicInfo">
<table border="0" cellpadding="1" cellspacing="0" style="width: 969px;">
<tr>
<td class="required" style="height: 18px" valign="top" colspan="7">
</td>
</tr>
<tr>
<td class="required" style="width: 3px; height: 18px" valign="top">
</td>
<td class="normal" style="width: 127px; height: 18px" valign="top">
</td>
<td style="width: 35px; height: 18px" valign="top">
</td>
<td style="width: 122px; height: 18px" valign="top">
</td>
<td style="width: 113px; height: 18px" valign="top">
</td>
<td class="normal" style="width: 105px; height: 18px" valign="top">
</td>
<td style="height: 18px; width: 120px;" valign="top">
</td>
</tr>
<tr>
<td class="required" style="width: 3px; height: 18px" valign="top">
</td>
<td class="normal" style="width: 127px; height: 18px" valign="top">
Company Name </td>
<td style="height: 18px; width: 35px;" valign="top">
<asp:DropDownList ID="DD_CompanyName" runat="server" Width="173px" AutoPostBack="True">
</asp:DropDownList></td>
<td style="height: 18px; width: 122px;" valign="top">
Division Name<span id="cname" style="color: red; display: none" class="normal"></span></td>
<td style="width: 113px; height: 18px" valign="top">
<asp:DropDownList ID="DD_Division" runat="server" Width="173px">
</asp:DropDownList></td>
<td class="normal" style="width: 105px; height: 18px" valign="top">
District</td>
<td style="height: 18px; width: 120px;" valign="top">
<asp:TextBox ID="Txt_District" runat="server" Width="171px" BorderColor="Silver"
CssClass="TextBox" Height="20px" MaxLength="100"></asp:TextBox></td>
</tr>
<tr>
<td class="required" style="width: 3px; height: 14px" valign="top">
</td>
<td class="normal" style="width: 127px; height: 14px" valign="top">
</td>
<td style="height: 14px; width: 35px;" valign="top">
</td>
<td style="height: 14px; width: 122px;" valign="top">
<span id="curl" style="color: red; display: none" class="normal"> </span></td>
<td style="width: 113px; height: 14px" valign="top">
</td>
<td class="normal" style="width: 105px; height: 14px" valign="top">
</td>
<td style="height: 14px; width: 120px;" valign="top">
</td>
</tr>
<tr>
<td class="required" style="width: 3px; height: 14px" valign="top">
</td>
<td class="normal" style="width: 127px; height: 14px" valign="top">
</td>
<td style="width: 35px; height: 14px" valign="top">
</td>
<td style="width: 122px; height: 14px" valign="top">
<!-- <a href="<%=SetUrlForDuplicatCompny()%>" runat="server" id="LnkOpencompany1" target="_blank" visible ="false" >Duplicate URL Company</a>
<a href="<%=SetDuplicatUrlForCompny()%>" runat="server" id="LnkOpencompany2" target="_blank" visible ="false" >Duplicate URL Company List</a>-->
</td>
<td style="width: 113px; height: 14px" valign="top">
</td>
<td class="normal" style="width: 105px; height: 14px" valign="top">
</td>
</tr>
<tr>
<td class="required" style="width: 3px; height: 15px" valign="top">
</td>
<td class="normal" style="width: 127px; height: 15px" valign="top">
<asp:Button ID="BtnAssignTo" runat="server" Text="Save Company" CssClass="normal"
Width="106px" OnClick = "OnConfirm" OnClientClick = "Confirm()" /></td>
<td style="width: 35px; height: 15px" valign="bottom">
<asp:Button ID="Button1" runat="server" Text="Button" Visible="False" /></td>
<td style="width: 122px; height: 15px" valign="top">
</td>
<td style="width: 113px; height: 15px" valign="top">
</td>
<td class="normal" style="width: 105px; height: 15px" valign="top">
</td>
<td align="left" style="height: 15px; width: 120px;" valign="top">
</td>
</tr>
<tr runat="server" id="passhide" style="display: none;">
<td class="required" style="height: 1px" valign="top" colspan="7">
<br />
<br />
<br />
<br />
<br />
<br />
</td>
</tr>
<tr runat="server" style="display: none;">
<td class="required" style="width: 3px; height: 2px" valign="top">
</td>
<td class="normal" style="width: 127px; height: 2px" valign="top">
</td>
<td style="width: 35px; height: 2px" valign="top">
</td>
<td style="width: 122px; height: 2px" valign="top">
</td>
<td style="width: 113px; height: 2px" valign="top">
</td>
<td class="normal" style="width: 105px; height: 2px" valign="top">
</td>
<td style="height: 2px; width: 120px;" valign="top">
</td>
</tr>
</table>
</div>
</div>
<asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#3366CC"
BorderStyle="None" BorderWidth="1px" CellPadding="4">
<FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
<RowStyle BackColor="White" ForeColor="#003399" />
<SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
<PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
<HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
</asp:GridView>
</asp:Content>