Click here to Skip to main content
15,892,643 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAccess permission for ASPNET process to inetpub after Deployment using MSI Pin
siva4553-Feb-09 1:24
siva4553-Feb-09 1:24 
AnswerRe: Access permission for ASPNET process to inetpub after Deployment using MSI Pin
Kamranit3-Feb-09 1:42
Kamranit3-Feb-09 1:42 
GeneralRe: Access permission for ASPNET process to inetpub after Deployment using MSI Pin
siva4553-Feb-09 1:47
siva4553-Feb-09 1:47 
QuestionIs there a way to get the contendId (cid) from mail message Pin
Sebastian T Xavier3-Feb-09 1:02
Sebastian T Xavier3-Feb-09 1:02 
QuestionPassword Validation.... Pin
pranavcool3-Feb-09 0:45
pranavcool3-Feb-09 0:45 
AnswerRe: Password Validation.... Pin
tasumisra3-Feb-09 0:56
tasumisra3-Feb-09 0:56 
AnswerRe: Password Validation.... Pin
Paddy Boyd3-Feb-09 2:07
Paddy Boyd3-Feb-09 2:07 
AnswerRe: Password Validation.... Pin
Ranjit Viswakumar3-Feb-09 5:29
Ranjit Viswakumar3-Feb-09 5:29 
Here you go. I used this script on one of my sites-

function validatePassword(fld) {
  var error ="";
  var pwdFilter = /^\w*(?=\w*\d)(?=\w*[a-z])(?=\w*[A-Z])\w*$/ ;

  if (fld.value.length < 7 || fld.value.length > 20) {
    error += "-Password must be 7-20 characters\n";
  }
  if (!pwdFilter.test(tfld)) {
    error += "-Password must contain at least 1 number, lowercase, and uppercase\n";
  }

  if (error != "") {  
    alert("Some fields need correction:\n" + error);
      return false;
  }
  return true;
}


That is the Javascript validation. You can call it onSubmit of a form-

<form method=POST action=register.aspx name=demo onSubmit='return validateForm(this)'>

Try that out. Good luck!

Ranjit Viswakumar
Professional Services Specialist
HostMySite.com[^]
GeneralRe: Password Validation.... Pin
J4amieC3-Feb-09 5:45
J4amieC3-Feb-09 5:45 
GeneralRe: Password Validation.... Pin
johnpro774-Feb-09 0:34
johnpro774-Feb-09 0:34 
QuestionRender Another Form Pin
mehrdadc483-Feb-09 0:27
mehrdadc483-Feb-09 0:27 
AnswerRe: Render Another Form Pin
Jon Rista3-Feb-09 10:21
Jon Rista3-Feb-09 10:21 
QuestionURGENT, Web base data logger Pin
mehdy_1373-Feb-09 0:22
mehdy_1373-Feb-09 0:22 
AnswerRe: URGENT, Web base data logger Pin
N a v a n e e t h3-Feb-09 0:30
N a v a n e e t h3-Feb-09 0:30 
GeneralRe: URGENT, Web base data logger Pin
mehdy_1373-Feb-09 0:50
mehdy_1373-Feb-09 0:50 
GeneralRe: URGENT, Web base data logger Pin
N a v a n e e t h3-Feb-09 1:04
N a v a n e e t h3-Feb-09 1:04 
GeneralRe: URGENT, Web base data logger Pin
mehdy_1373-Feb-09 1:21
mehdy_1373-Feb-09 1:21 
GeneralRe: URGENT, Web base data logger Pin
Paddy Boyd3-Feb-09 2:06
Paddy Boyd3-Feb-09 2:06 
QuestionHow can i call C# function Through javascript on aspx page Pin
gautamamit82-Feb-09 23:20
gautamamit82-Feb-09 23:20 
AnswerRe: How can i call C# function Through javascript on aspx page Pin
sarang_k2-Feb-09 23:38
sarang_k2-Feb-09 23:38 
GeneralRe: How can i call C# function Through javascript on aspx page Pin
gautamamit82-Feb-09 23:56
gautamamit82-Feb-09 23:56 
AnswerRe: How can i call C# function Through javascript on aspx page Pin
N a v a n e e t h2-Feb-09 23:42
N a v a n e e t h2-Feb-09 23:42 
GeneralRe: How can i call C# function Through javascript on aspx page Pin
gautamamit82-Feb-09 23:58
gautamamit82-Feb-09 23:58 
GeneralRe: How can i call C# function Through javascript on aspx page Pin
J4amieC3-Feb-09 2:23
J4amieC3-Feb-09 2:23 
AnswerRe: How can i call C# function Through javascript on aspx page Pin
vaghelabhavesh3-Feb-09 4:24
vaghelabhavesh3-Feb-09 4:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.