Wednesday, August 18, 2010

javascript validation for special charater/password

http://stackoverflow.com/questions/839483/need-to-handle-special-character-validation-using-javascript
function isSpclChar() {
var iChars = "!@#$%^&*()+=[]\\\';,./{}|\":<>?";
var val = document.getElementById('<%=txtdocNo.ClientID%>').value;
for (var i = 0; i < val.length; i++) {
if (iChars.indexOf(val.charAt(i)) != -1) {
{
alert("The box has special characters. \nThese are not allowed.\n");
document.getElementById('<%=txtdocNo.ClientID%>').value = '';
return false;
}


}
}
}


source from
http://www.dotnetspider.com/resources/28200-Special-character-Validation.aspx

function chkSpecialChars(input)
{
var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?"; for (var i = 0; i < input.length; i++)
{
if (iChars.indexOf(input.charAt(i)) != -1)
{
alert ("You are using special characters. \nThese are not allowed.\n Please remove them and try again.");
return false;
}
}
return true;
}


//password validation





Registration










Login:
Password:





source from
http://p2p.wrox.com/java-gui/3396-validation-special-character.html

Monday, August 2, 2010

jquery blog

http://geekswithblogs.net/vladimirl/archive/2010/01/27/asp.net-treeview---scroll-to-the-expanded-node.aspx

http://jquery-howto.blogspot.com/search/label/javascript

Sunday, August 1, 2010

jQuery Multiselect DropDown

http://www.codeproject.com/KB/webforms/MultiSelect.aspx
http://www.codeproject.com/KB/webforms/MultiSelect.aspx

javascript lnks
http://search.wareseeker.com/javascript/script-os/


jquery link
http://abeautifulsite.net/blog/2008/04/jquery-multiselect/
best

Javascript PopUP Window

string popupScript = "";

Page.RegisterStartupScript("PopupScript", popupScript);

Tuesday, July 27, 2010

Refresh Grid

var isrefresh = false;
function RefrshGrid() {
if (isrefresh)
document.getElementById('<%=btnrefresh.ClientID%>').click();

}

--on Close Call this function
if (typeof (window.parent.RefrshGrid) != 'undefined') {
window.parent.RefrshGrid();
}

Sunday, July 25, 2010

Using JavaScript and UpdatePanels ,read,write xml

http://www.ajaxtutorials.com/ajax-tutorials/using-javascript-and-updatepanels-in-asp-net-3-5/

client side validation

Client Side Validation with JavaScript in ASP.

http://www.dotnetheaven.com/UploadFile/purankaushal/103292006010736AM/1.aspx