Click here to Skip to main content
15,919,774 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Weird Warning Pin
#realJSOP1-Mar-08 12:07
professional#realJSOP1-Mar-08 12:07 
GeneralRe: Weird Warning Pin
N a v a n e e t h2-Mar-08 1:00
N a v a n e e t h2-Mar-08 1:00 
GeneralShowing Div Pin
.NET- India 1-Mar-08 0:17
.NET- India 1-Mar-08 0:17 
GeneralSame question again - ignore it Pin
Not Active1-Mar-08 2:03
mentorNot Active1-Mar-08 2:03 
Questionhow to use javascript with masterpage in asp.net2.0? Pin
puspendra napit1-Mar-08 0:03
puspendra napit1-Mar-08 0:03 
GeneralRe: how to use javascript with masterpage in asp.net2.0? Pin
pmarfleet1-Mar-08 1:38
pmarfleet1-Mar-08 1:38 
QuestionProblem With AddHeader in modalDialog.. Pin
Arun Jacob29-Feb-08 22:51
Arun Jacob29-Feb-08 22:51 
GeneralJavascript validation(s) Pin
.NET- India 29-Feb-08 22:38
.NET- India 29-Feb-08 22:38 
Hello Friends,

I'm providing the Javascript validation(s) in the Content Page of the Master Page

So my Javascript validation's code is given below :-

function validation()

{

if(document.getElementById("<%=ddlProgramme.ClientID %>").value=="Select")

{

window.alert("Please Select Your Programme");

document.getElementById("<%=ddlProgramme.ClientID %>").focus();

return false;

}

if(document.getElementById("<%=txtName.ClientID %>").value=="")

{

window.alert("Please Enter Your Name");

document.getElementById("<%=txtName.ClientID %>").focus();

return false;

}

}



and also provide the path for this js file in the Master Page as given below

<script language="javascript" src="../Script/JScript2.js"></script>

But my validation is not being fired as it must be....and also not throwing any error.............



But if i put my js code given above in the content page directly then it works perfectly...........................

But i want to call my validation in js file and want to call them from master page or content page........
GeneralRe: Javascript validation(s) Pin
Christian Graus29-Feb-08 22:46
protectorChristian Graus29-Feb-08 22:46 
GeneralRe: Javascript validation(s) Pin
.NET- India 29-Feb-08 22:54
.NET- India 29-Feb-08 22:54 
GeneralRe: Javascript validation(s) Pin
Christian Graus29-Feb-08 23:00
protectorChristian Graus29-Feb-08 23:00 
GeneralStop asking the same question Pin
Not Active1-Mar-08 2:06
mentorNot Active1-Mar-08 2:06 
Questioncan we set value of a text box from selection of items from the listbox by javascript Pin
Vishnu Narayan Mishra29-Feb-08 21:05
Vishnu Narayan Mishra29-Feb-08 21:05 
AnswerRe: can we set value of a text box from selection of items from the listbox by javascript Pin
Christian Graus29-Feb-08 21:50
protectorChristian Graus29-Feb-08 21:50 
GeneralForm Authentication Help Required [modified] Pin
Mujahid Ullah Shaik29-Feb-08 20:22
Mujahid Ullah Shaik29-Feb-08 20:22 
GeneralRe: Form Authentication Help Required Pin
Christian Graus29-Feb-08 21:51
protectorChristian Graus29-Feb-08 21:51 
Questionasp.net Pin
venkat2429-Feb-08 20:20
venkat2429-Feb-08 20:20 
GeneralRe: asp.net Pin
sulabh202029-Feb-08 20:28
sulabh202029-Feb-08 20:28 
GeneralRe: asp.net Pin
yogesh_kumar_agarwal29-Feb-08 20:46
yogesh_kumar_agarwal29-Feb-08 20:46 
GeneralRe: asp.net Pin
Christian Graus29-Feb-08 21:46
protectorChristian Graus29-Feb-08 21:46 
GeneralProblem in selecting a item in dropdown list box of a .aspx page.. Pin
Balagurunathan S29-Feb-08 20:19
Balagurunathan S29-Feb-08 20:19 
GeneralRe: Problem in selecting a item in dropdown list box of a .aspx page.. [modified] Pin
Mujahid Ullah Shaik29-Feb-08 20:27
Mujahid Ullah Shaik29-Feb-08 20:27 
GeneralRe: Problem in selecting a item in dropdown list box of a .aspx page.. Pin
Christian Graus29-Feb-08 21:53
protectorChristian Graus29-Feb-08 21:53 
GeneralRe: Problem in selecting a item in dropdown list box of a .aspx page.. Pin
Balagurunathan S2-Mar-08 19:08
Balagurunathan S2-Mar-08 19:08 
Generalencoding Pin
ptvce29-Feb-08 19:02
ptvce29-Feb-08 19:02 

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.