This is a new font of Indian rupees I found and Apply it on the Repeater control as like this.
asp:Label ID="lblFees" runat="server" Text='<%#Eval("SemFees","`{0}") %>' Font-Names="Rupee Foradian" asp:Label
Also check the link for how to apply and download rupee foridian font.
http://www.indianweb2.com/2010/07/how-to-type-indian-rupee-symbol-download-indian-rupee-font/
http://www.codeproject.com/KB/silverlight/NewIndianRupeeSymbolDemo.aspx
Monday, October 24, 2011
Thursday, October 13, 2011
Validate Number by Javascript function
by this function simply call this function on onkeypress event and get mast functionality.
function isNumberKey(e) {
var charCode = (e.which) ? e.which : event.keyCode
if ((charCode > 31) && (charCode < 48 || charCode > 57)) {
return false;
}
}
//call on onkeypress event in textbox
asp:TextBox ID="txtbox1" runat="server" CssClass="input_big" MaxLength="15"
onkeypress="return isNumberKey(event)"/asp:TextBox
function isNumberKey(e) {
var charCode = (e.which) ? e.which : event.keyCode
if ((charCode > 31) && (charCode < 48 || charCode > 57)) {
return false;
}
}
//call on onkeypress event in textbox
asp:TextBox ID="txtbox1" runat="server" CssClass="input_big" MaxLength="15"
onkeypress="return isNumberKey(event)"/asp:TextBox
Wednesday, October 12, 2011
Find any Control in Repeater using Javascript
I used Javascript function to check count of checkboxes into repeater which are checked.And on that count I performed some action on it on my client side perfomance.
function checkAll(cb)
{
var ctrls = document.getElementsByTagName('input');
var count=0;
for (var i = 0; i < ctrls.length; i++)
{
var cbox = ctrls[i];
if (cbox.type == "checkbox")
{
if(cbox.checked)
{
count++;
}
//cbox.checked = cb.checked;
}
}
}
Call this function on aspx contol
asp:CheckBox ID="chkPaper" runat="server" onclick="return checkAll(this)"
enjoy coding...
function checkAll(cb)
{
var ctrls = document.getElementsByTagName('input');
var count=0;
for (var i = 0; i < ctrls.length; i++)
{
var cbox = ctrls[i];
if (cbox.type == "checkbox")
{
if(cbox.checked)
{
count++;
}
//cbox.checked = cb.checked;
}
}
}
Call this function on aspx contol
asp:CheckBox ID="chkPaper" runat="server" onclick="return checkAll(this)"
enjoy coding...
Subscribe to:
Posts (Atom)