Click here to Skip to main content
15,892,298 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Owner of a file Pin
Jon Rista3-Feb-09 9:49
Jon Rista3-Feb-09 9:49 
QuestionDistributed computing and multithreaded primers Pin
Member 260377229-Jan-09 18:39
Member 260377229-Jan-09 18:39 
NewsRe: Distributed computing and multithreaded primers Pin
Eddy Vluggen30-Jan-09 11:09
professionalEddy Vluggen30-Jan-09 11:09 
Questiondeleting row Pin
vedharadha29-Jan-09 18:39
vedharadha29-Jan-09 18:39 
AnswerRe: deleting row Pin
vaghelabhavesh30-Jan-09 10:19
vaghelabhavesh30-Jan-09 10:19 
Questioni need java script for validating the empty textbox Pin
vinothtamilarasan29-Jan-09 17:27
vinothtamilarasan29-Jan-09 17:27 
AnswerRe: i need java script for validating the empty textbox Pin
vaghelabhavesh30-Jan-09 10:14
vaghelabhavesh30-Jan-09 10:14 
AnswerRe: i need java script for validating the empty textbox Pin
Ranjit Viswakumar2-Feb-09 11:07
Ranjit Viswakumar2-Feb-09 11:07 
You can use something like this-
function validateEmpty(fld) {
  var error = "";
  if (fld.value.length == 0) {
    fld.style.background = 'Yellow'; 
    error = "The required field has not been filled in.\n"
  }
  else {
      fld.style.background = 'White';
  }
  return error;  
}

function validateFormOnSubmit(theForm) {
  var reason = "";
  reason += validateEmpty(theForm.field1);
  reason += validateEmpty(theForm.field2);
  reason += validateEmpty(theForm.field3);
  if (reason != "") {
    alert("Some fields need correction:\n" + reason);
    return false;
  }

  return true;
}

Replace 'field1', 'field2', and 'field3' with the correct names. You can add and subtract as well. The alert box will output a line delimited list of all error messages. Call the function like this-

<form name="demo" onsubmit="return validateFormOnSubmit(this)" action="action.aspx">


Try that out. Good luck!

Ranjit Viswakumar
Professional Services Specialist
HostMySite.com[^]
QuestionProblem with reflection Pin
Wilson Carchi A.29-Jan-09 11:19
Wilson Carchi A.29-Jan-09 11:19 
AnswerRe: Problem with reflection Pin
PIEBALDconsult29-Jan-09 12:30
mvePIEBALDconsult29-Jan-09 12:30 
QuestionCombobox not Responsive Pin
bobbymale7729-Jan-09 2:15
bobbymale7729-Jan-09 2:15 
AnswerRe: Combobox not Responsive Pin
Wendelius29-Jan-09 10:57
mentorWendelius29-Jan-09 10:57 
GeneralRe: Combobox not Responsive Pin
bobbymale7729-Jan-09 11:52
bobbymale7729-Jan-09 11:52 
GeneralRe: Combobox not Responsive Pin
Wendelius29-Jan-09 11:59
mentorWendelius29-Jan-09 11:59 
GeneralRe: Combobox not Responsive Pin
bobbymale7729-Jan-09 12:01
bobbymale7729-Jan-09 12:01 
GeneralRe: Combobox not Responsive Pin
Wendelius29-Jan-09 12:06
mentorWendelius29-Jan-09 12:06 
GeneralRe: Combobox not Responsive Pin
bobbymale7729-Jan-09 12:10
bobbymale7729-Jan-09 12:10 
GeneralRe: Combobox not Responsive Pin
Wendelius29-Jan-09 12:18
mentorWendelius29-Jan-09 12:18 
QuestionExport to MS Word form MS access database or Datagridview Pin
ivo7529-Jan-09 1:28
ivo7529-Jan-09 1:28 
AnswerRe: Export to MS Word form MS access database or Datagridview Pin
Eddy Vluggen29-Jan-09 1:57
professionalEddy Vluggen29-Jan-09 1:57 
GeneralRe: Export to MS Word form MS access database or Datagridview Pin
ivo7529-Jan-09 2:04
ivo7529-Jan-09 2:04 
GeneralRe: Export to MS Word form MS access database or Datagridview Pin
EliottA29-Jan-09 5:20
EliottA29-Jan-09 5:20 
JokeRe: Export to MS Word form MS access database or Datagridview Pin
ivo7529-Jan-09 7:59
ivo7529-Jan-09 7:59 
AnswerRe: Export to MS Word form MS access database or Datagridview Pin
ivo7529-Jan-09 8:03
ivo7529-Jan-09 8:03 
QuestionHarddisk Serial Number using VB.net Pin
VikashGohil28-Jan-09 21:51
VikashGohil28-Jan-09 21:51 

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.