Md. Mizanur Rahman
<%@ Page Language="C#" MasterPageFile="~/MasterPages/Registration.Master" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" CodeBehind="WPReg_BasicInfo.aspx.cs" Inherits="KAFWeb.Pages.StudentRegistration.WPReg_BasicInfo" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<%@ Register assembly="KAF.WebFramework" namespace="KAF.WebFramework.Pager" tagprefix="cc1"%>
<%@ Register src="../DragAndDropUpload/UCDragAndDropUploadFiles.ascx" tagname="UCDragAndDropUploadFiles" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<script type="text/javascript">
function pageLoad() {
initInputFields();
initGridEvents();
dragDropFile();
toggleServingMilitaryInfo();
}
function toggleServingMilitaryInfo() {
//$('span.chkservedmilitarybefore input[type=checkbox]').each(function () {
// $(this).addClass('chkservedmilitarybefore');
// if ($(this).is(':checked')) {
// $('.served-military-info').show();
// }
// else {
// $('.served-military-info').hide();
// }
//});
//$('input.chkservedmilitarybefore').click(function () {
// if ($(this).is(':checked')) {
// $('.served-military-info').show();
// }
// else {
// $('.served-military-info').hide();
// }
//});
$('select.ddlservedmilitarybefore').each(function () {
if ($(this).val() == 'yes') {
$('tr.served-military-info').show();
}
else {
$('tr.served-military-info').hide();
}
});
$('select.ddlservedmilitarybefore').change(function () {
if ($(this).val() == 'yes') {
$('tr.served-military-info').show();
}
else {
$('tr.served-military-info').hide();
}
});
$('select.ddlisacceptedincollegebefore').each(function () {
if ($(this).val() == 'yes') {
$('tr.is-accepted-college-before').show();
}
else {
$('tr.is-accepted-college-before').hide();
}
});
$('select.ddlisacceptedincollegebefore').change(function () {
if ($(this).val() == 'yes') {
$('tr.is-accepted-college-before').show();
}
else {
$('tr.is-accepted-college-before').hide();
}
});
}
$(document).ready(function () {
//var $modalDialog = $('<div/>', {
// 'class': 'exampleModal',
// 'id': 'exampleModal1'
//})
//.appendTo('body')
//.dialog({
// resizable: true,
// autoOpen: false,
// height: 300,
// width: 350,
// show: 'fold',
// buttons: {
// "Close": function () {
// $modalDialog.dialog("close");
// }
// },
// modal: true
//});
//$(function () {
// $('a.modalDialoge').on('click', function (e) {
// e.preventDefault();
// // TODO: Undo comments, below
// //var url = $('a.exampleLink:first').attr('href');
// $modalDialog.load("WPReg_EducationInfo.aspx?KAF=Rm9ybUlEPTMyOCZCYXNpY1Byb2ZpbGVJRD04MQ2");
// $modalDialog.dialog("open");
// });
//});
});
</script>
<%--<div id="dialog1" />
<a href="#" id="modalDialoge" class="modalDialoge" >Modal Dialoge</a>--%>
<!-- row -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default" id="tbl_reg_basicinfo">
<div class="panel-heading">
<table class="table table-striped table-bordered table-hover">
<tr>
<td>
<asp:Label ID="lblHeader" runat="server" CssClass="page-header labelHeader" Text="Basic Information" meta:resourcekey="lblHeaderResource1" />
</td>
<td>
<div style="float: right;">
<asp:Image ID="imgProfilePhoto" runat="server" style="width: 80px; height: 80px; padding: 3px;" AlternateText=" Profile Photo " />
</div>
</td>
</tr>
</table>
</div>
<!-- /.panel-heading -->
<div class="panel-body">
<asp:Panel ID="formPanel" runat="server" CssClass=" formPanel table-responsive" meta:resourcekey="formPanelResource1">
<asp:HiddenField ID="hddbasicinfoid" runat="server" />
<asp:HiddenField ID="hddstudentid" runat="server" />
<asp:HiddenField ID="hdduserid" runat="server" />
<table class="table table-striped table-bordered table-hover">
<tr>
<td colspan="2">
<asp:Panel ID="pnlError" runat="server" CssClass="pnlError" meta:resourcekey="pnlErrorResource1">
<asp:Label ID="lblException" runat="server" CssClass="labelException" meta:resourcekey="lblExceptionResource1"></asp:Label>
<asp:Label ID="lblResult" runat="server" CssClass="labelResult" meta:resourcekey="lblResultResource1" ></asp:Label>
</asp:Panel>
</td>
</tr>
<tr>
<td>
<div class="form-group">
<label>
<asp:Label ID="lblcivilid" runat="server" Text=" Civil ID" CssClass="labelNormal" meta:resourcekey="lblcivilidResource1" />
<asp:Label ID="lblValcivilid" runat="server" Font-Bold="True" Font-Size="Medium" ForeColor="#FF3300" Text="*" meta:resourcekey="lblValcivilidResource1" />
</label>
<asp:TextBox ID="txtcivilid" MaxLength="50" runat="server" ReadOnly="true" CssClass=" form-control textboxNormalLeftAligned inputField required integer " meta:resourcekey="txtcivilidResource1" />
</div>
</td>
<td>
<div class="form-group">
<label>
<asp:Label ID="lblpassportno" runat="server" CssClass="labelNormal" Text="National No." meta:resourcekey="lblpassportnoResource1" />
<asp:Label ID="lblValpassportno" runat="server" Font-Bold="True" Font-Size="Medium" ForeColor="#FF3300" Text="*" meta:resourcekey="lblValpassportnoResource1" />
</label>
<asp:TextBox ID="txtpassportno" runat="server" ReadOnly="true" CssClass=" form-control textboxNormalLeftAligned inputField required integer " MaxLength="11" meta:resourcekey="txtpassportnoResource1" />
</div>
</td>
</tr>
<tr>
<td>
<div class="form-group">
<label>
<asp:Label ID="lblname1" runat="server" Text="First Name" CssClass="labelNormal" meta:resourcekey="lblname1Resource1" />
<asp:Label ID="lblValname1" runat="server" Font-Bold="True" Font-Size="Medium" ForeColor="#FF3300" Text="*" meta:resourcekey="lblValname1Resource1" />
</label>
<asp:TextBox ID="txtname1" max_val="250" runat="server" CssClass=" form-control textboxNormalLe