Click here to Skip to main content
15,888,401 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhave a problem in custom control with javascript Pin
Member 1207470715-Feb-16 18:57
Member 1207470715-Feb-16 18:57 
SuggestionRe: have a problem in custom control with javascript Pin
Kornfeld Eliyahu Peter15-Feb-16 20:06
professionalKornfeld Eliyahu Peter15-Feb-16 20:06 
QuestionTelerik TreeList Child Level Items are not retrievable by using FindItemByKeyValue method Pin
indian14312-Feb-16 16:53
indian14312-Feb-16 16:53 
Questionproper use of System.Web.HttpContext.Current.User Pin
jkirkerx12-Feb-16 12:56
professionaljkirkerx12-Feb-16 12:56 
AnswerRe: proper use of System.Web.HttpContext.Current.User [Not Solved but I get it now] Pin
jkirkerx13-Feb-16 13:53
professionaljkirkerx13-Feb-16 13:53 
SuggestionRe: proper use of System.Web.HttpContext.Current.User [Not Solved but I get it now] Pin
Richard Deeming15-Feb-16 2:26
mveRichard Deeming15-Feb-16 2:26 
GeneralRe: proper use of System.Web.HttpContext.Current.User [Not Solved but I get it now] Pin
jkirkerx15-Feb-16 7:15
professionaljkirkerx15-Feb-16 7:15 
QuestionASP .NET Custom Validation client side code not Working Pin
Member 1218422112-Feb-16 9:24
Member 1218422112-Feb-16 9:24 
Hi,
I am trying to validate below input type using custom validator and client side validation. If I am using the Javascript code in the asp .net page ..its working fine. But if I am using same code in separate JavaScript file it is not working. I need help
Thank You
.....................................................
Javascript code:


function FirstNameValidate(sender, args) {
//do your validation logic
if (document.getElementById("txtFirstName").value == '')
args.IsValid = false;
if (!args.IsValid)
var ctrl = $("#" + sender.controltovalidate);
if (ctrl) {
ctrl.css({ "border": "1px solid red" });
sender.innerHTML = "Please enter First Name.";
}
}

...................................
<asp:customvalidator id="firstNameValidator" runat="server" errormessage="" display="Dynamic"
controltovalidate="txtFirstName" forecolor="red" validationgroup="registerButton"
onservervalidate="firstNameValidator_ServerValidate" validateemptytext="True"
clientvalidationfunction="FirstNameValidate" setfocusonerror="true">

<asp:textbox id="txtFirstName" class="form-control" placeholder="First name" runat="server">

AnswerRe: ASP .NET Custom Validation client side code not Working Pin
JHizzle14-Feb-16 23:36
JHizzle14-Feb-16 23:36 
GeneralRe: ASP .NET Custom Validation client side code not Working Pin
Member 1218422115-Feb-16 4:15
Member 1218422115-Feb-16 4:15 
GeneralRe: ASP .NET Custom Validation client side code not Working Pin
JHizzle16-Feb-16 1:07
JHizzle16-Feb-16 1:07 
AnswerRe: ASP .NET Custom Validation client side code not Working Pin
Wayne Stewart_17-Feb-16 3:41
Wayne Stewart_17-Feb-16 3:41 
Questionhow to implement unit measrements using asp.net webservices Pin
Member 1231070411-Feb-16 23:41
Member 1231070411-Feb-16 23:41 
AnswerRe: how to implement unit measrements using asp.net webservices Pin
Nathan Minier12-Feb-16 1:49
professionalNathan Minier12-Feb-16 1:49 
AnswerRe: how to implement unit measrements using asp.net webservices Pin
aarif moh shaikh15-Feb-16 19:59
professionalaarif moh shaikh15-Feb-16 19:59 
QuestionAccess the Public Property of User Control in the ASP.Net web farms page Pin
indian14310-Feb-16 14:01
indian14310-Feb-16 14:01 
AnswerRe: Access the Public Property of User Control in the ASP.Net web farms page Pin
Richard Deeming11-Feb-16 0:45
mveRichard Deeming11-Feb-16 0:45 
GeneralRe: Access the Public Property of User Control in the ASP.Net web farms page Pin
indian14312-Feb-16 13:01
indian14312-Feb-16 13:01 
GeneralRe: Access the Public Property of User Control in the ASP.Net web farms page Pin
Richard Deeming15-Feb-16 1:49
mveRichard Deeming15-Feb-16 1:49 
QuestionChange attributes value of web form user control in div by using jquery Pin
koklimabc10-Feb-16 6:47
koklimabc10-Feb-16 6:47 
AnswerRe: Change attributes value of web form user control in div by using jquery Pin
ZurdoDev10-Feb-16 9:44
professionalZurdoDev10-Feb-16 9:44 
QuestionError "Access to the path 'D:\Projects\SXXXXX\Source\SH.XXXXXXX.WebUI\App_GlobalResources\Glossary.resx' is denied." Pin
indian1438-Feb-16 20:38
indian1438-Feb-16 20:38 
AnswerRe: Error "Access to the path 'D:\Projects\SXXXXX\Source\SH.XXXXXXX.WebUI\App_GlobalResources\Glossary.resx' is denied." Pin
Richard MacCutchan8-Feb-16 21:51
mveRichard MacCutchan8-Feb-16 21:51 
AnswerRe: Error "Access to the path 'D:\Projects\SXXXXX\Source\SH.XXXXXXX.WebUI\App_GlobalResources\Glossary.resx' is denied." Pin
Afzaal Ahmad Zeeshan9-Feb-16 9:10
professionalAfzaal Ahmad Zeeshan9-Feb-16 9:10 
GeneralRe: Error "Access to the path 'D:\Projects\SXXXXX\Source\SH.XXXXXXX.WebUI\App_GlobalResources\Glossary.resx' is denied." Pin
indian14310-Feb-16 13:54
indian14310-Feb-16 13:54 

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.