TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Akhter HUssain
713
1.3k
103.2k
How to increase height of Popup window ?
Sep 11 2019 1:12 AM
i want to increase height of popup window here is screen shot
here is my html
<
%@ Page
Language
=
"C#"
AutoEventWireup
=
"true"
CodeBehind
=
"MasterFilemp.aspx.cs"
Inherits
=
"WebApplication1.MasterFilemp"
%
>
<
%@ Register
Assembly
=
"AjaxControlToolkit"
Namespace
=
"AjaxControlToolkit"
TagPrefix
=
"cc1"
%
>
<!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"
>
<
link
href
=
"CSS/CSS.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
script
src
=
"scripts/jquery-1.3.2.min.js"
type
=
"text/javascript"
>
</
script
>
<
script
src
=
"scripts/jquery.blockUI.js"
type
=
"text/javascript"
>
</
script
>
</
head
>
<
body
style
=
"margin:500;padding:500"
>
<
form
id
=
"form1"
runat
=
"server"
>
<
asp:ScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
>
</
asp:ScriptManager
>
<
asp:UpdatePanel
ID
=
"UpdatePanel1"
runat
=
"server"
>
<
ContentTemplate
>
<
title
>
GridView Add, Edit, Delete AJAX Way
</
title
>
<
asp:GridView
ID
=
"GridView1"
runat
=
"server"
Width
=
"550px"
AutoGenerateColumns
=
"false"
AlternatingRowStyle-BackColor
=
"#C2D69B"
HeaderStyle-BackColor
=
"green"
AllowPaging
=
"true"
OnPageIndexChanging
=
"OnPaging"
PageSize
=
"15"
>
<
Columns
>
<
asp:BoundField
DataField
=
"EnrollNumber"
HeaderText
=
"Employee ID"
HtmlEncode
=
"true"
/>
<
asp:BoundField
DataField
=
"EmpName"
HeaderText
=
"Employee Name"
HtmlEncode
=
"true"
/>
<
asp:BoundField
DataField
=
"FatherName"
HeaderText
=
"Father Name"
HtmlEncode
=
"true"
/>
<
asp:BoundField
DataField
=
"CNIC"
HeaderText
=
"CNIC"
HtmlEncode
=
"true"
/>
<
asp:BoundField
DataField
=
"SecNam"
HeaderText
=
"Section"
HtmlEncode
=
"true"
/>
<
asp:BoundField
DataField
=
"JoinDate"
HeaderText
=
"Join Date"
HtmlEncode
=
"true"
/>
<
asp:BoundField
DataField
=
"LeftDate"
HeaderText
=
"Left Date"
HtmlEncode
=
"true"
/>
<
asp:TemplateField
ItemStyle-Width
=
"30px"
HeaderText
=
"EnrollNumber"
>
<
ItemTemplate
>
<
asp:LinkButton
ID
=
"lnkEdit"
runat
=
"server"
Text
=
"Edit"
OnClick
=
"Edit"
>
</
asp:LinkButton
>
</
ItemTemplate
>
</
asp:TemplateField
>
</
Columns
>
<
AlternatingRowStyle
BackColor
=
"#C2D69B"
/>
</
asp:GridView
>
<
asp:Button
ID
=
"btnAdd"
runat
=
"server"
Text
=
"Add"
OnClick
=
"Add"
/>
<
asp:Panel
ID
=
"pnlAddEdit"
runat
=
"server"
CssClass
=
"modalPopup"
style
=
"display:none"
>
<
asp:Label
Font-Bold
=
"true"
ID
=
"Label4"
runat
=
"server"
Text
=
"Employee Details"
>
</
asp:Label
>
<
br
/>
<
table
align
=
"center"
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text
=
"EnrollNumber"
>
</
asp:Label
>
</
td
>
<
td
>
<
asp:TextBox
ID
=
"txtEmpID"
Width
=
"40px"
MaxLength
=
"5"
runat
=
"server"
>
</
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label2"
runat
=
"server"
Text
=
"Employee Name"
>
</
asp:Label
>
</
td
>
<
td
>
<
asp:TextBox
ID
=
"txtEmpName"
runat
=
"server"
>
</
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label3"
runat
=
"server"
Text
=
"Father Name"
>
</
asp:Label
>
</
td
>
<
td
>
<
asp:TextBox
ID
=
"txtFahterName"
runat
=
"server"
>
</
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label7"
runat
=
"server"
Text
=
"CNIC"
>
</
asp:Label
>
</
td
>
<
td
>
<
asp:TextBox
ID
=
"txtCNIC"
runat
=
"server"
>
</
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label5"
runat
=
"server"
Text
=
"Section"
>
</
asp:Label
>
</
td
>
<
td
>
<
asp:DropDownList
id
=
"ddlSecID"
runat
=
"server"
>
</
asp:DropDownList
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label6"
runat
=
"server"
Text
=
"Join Date"
>
</
asp:Label
>
</
td
>
<
td
>
<
asp:TextBox
ID
=
"txtjdate"
runat
=
"server"
ReadOnly
=
"true"
CssClass
=
"textbox"
>
</
asp:TextBox
>
<
cc1:CalendarExtender
ID
=
"txtrechargedate_CalendarExtender"
runat
=
"server"
Enabled
=
"True"
TargetControlID
=
"txtjdate"
PopupPosition
=
"BottomLeft"
>
</
cc1:CalendarExtender
>
<
asp:TextBox
ID
=
"txtldate"
runat
=
"server"
ReadOnly
=
"false"
CssClass
=
"textbox"
>
</
asp:TextBox
>
<
cc1:CalendarExtender
ID
=
"CalendarExtender1"
runat
=
"server"
Enabled
=
"True"
TargetControlID
=
"txtldate"
PopupPosition
=
"BottomLeft"
>
</
cc1:CalendarExtender
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Button
ID
=
"btnSave"
runat
=
"server"
Text
=
"Save"
OnClick
=
"Save"
/>
</
td
>
<
td
>
<
asp:Button
ID
=
"btnCancel"
runat
=
"server"
Text
=
"Cancel"
OnClientClick
=
"return Hidepopup()"
/>
</
td
>
</
tr
>
</
table
>
</
asp:Panel
>
<
asp:LinkButton
ID
=
"lnkFake"
runat
=
"server"
>
</
asp:LinkButton
>
<
cc1:ModalPopupExtender
ID
=
"popup"
runat
=
"server"
DropShadow
=
"false"
PopupControlID
=
"pnlAddEdit"
TargetControlID
=
"lnkFake"
BackgroundCssClass
=
"modalBackground"
>
</
cc1:ModalPopupExtender
>
</
ContentTemplate
>
<
Triggers
>
<
asp:AsyncPostBackTrigger
ControlID
=
"GridView1"
/>
<
asp:AsyncPostBackTrigger
ControlID
=
"btnSave"
/>
</
Triggers
>
</
asp:UpdatePanel
>
<
script
type
=
"text/javascript"
>
function BlockUI(elementID) {
var
prm
=
Sys
.WebForms.PageRequestManager.getInstance();
prm.add_beginRequest(function() {
$("#" + elementID).block({ message: '
<
table
align
=
"center"
>
<
tr
>
<
td
>
' +
'
<
img
src
=
"images/loadingAnim.gif"
/>
</
td
>
</
tr
>
</
table
>
',
css: {},
overlayCSS: { backgroundColor: '#000000', opacity: 0.6
}
});
});
prm.add_endRequest(function() {
$("#" + elementID).unblock();
});
}
$(document).ready(function() {
BlockUI("
<
%=pnlAddEdit.ClientID %
>
");
$
.blockUI.defaults.css
= {};
});
function Hidepopup() {
$find("popup").hide();
return false;
}
});
//CNIC
$(function() {
$("#txtCNIC").attr('maxlength', '10');
$('#txtCNIC').on('keyup', function() {
var
inp
= $('#txtCNIC').val();
var
n
=
inp
.indexOf("-");
if ((
inp.length
== 2) || (
inp.length
== 5) || (
inp.length
== 8) && inp.length
<
9
) {
$('#txtCNIC').val(inp + '-');
}
else {
}
});
</
script
>
</
form
>
</
body
>
</
html
>
Reply
Answers (
2
)
Xamarin Form’s GMAPS Route
How to get months difference between two dates in c#