.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

need java script

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :ASP.Net

I am having 3 drop down controls and all the three drop down are having same values , say 1,2,3,4. Now i want a java script which validates such that if i select 1 from 1st drop down control then on the remaining three i cannot select value 1. If i select , then the i need to pop up with validation error. 

I am asking for java script because i need client side validation.

View Complete Post

More Related Resource Links

write a java script to show a msg wan to colse yes or no

 write a java script to show a msg wan to colse yes or no.if user select yes then another function is call then he select no then nothing happend

ssrs 2008 R2 - report parameter with no default set throws java script error

We have recently upgraded from SQL Server 2008 to SQL Server 2008 R2....I am experiencing a problem with my report parameters on my SSRS reports. It seems that my report parameters that I do not have a specified 'default' value throws a java script error when I try and run/render the report under R2.  As soon as I put a 'default' value on the report param, everything is fine.  However, that is not the behavior we need for our reports...the user needs to pick their selection. Can anyone shed some light on this, it seems to be an AJAX problem...I need to be able to have report parameters with a list of values, but no 'default' value on the parameter.

accesing controls on cotent pages using java script

i had a webform which used javascript for calander <head> <script language="javascript" src="Calendar.js" type="text/javascript"></script> </head> . . . <asp:TextBox ID="txtDateLeaving" runat="server" Enabled="false"></asp:TextBox> <a onclick="showCalendarControl(txtDateLeaving);" href="#"> <img src="calendar.gif" style="width: 20px; height: 20px" border="0" alt="cal" /></a> it was wrking perfectly . .but i am not able to run it using master pages.. when i try to access control on the content pageit says txtDateLeaving is not defined..can anybdy tell me how shld i achieve the same functionality using master n content pages..

Calendar.aspx page Refresh only Once + Java Script

Hi Experts, Following script works perfect (refresh only once after 5 seconds and stops but for some reason if somebody clicks next month then it keeps refreshing for 5 seconds. Can you please put the following code in your calendar.aspx page and check if you can get rid of the continuous refresh if somebody selects next month otherwise it works fine. Please provide the updated script <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>Refresh test</title> <script type="text/javascript">   window.onload=function(){     url = window.location.href;     qIndex = url.indexOf("?");     if( qIndex != -1 ){       getData = url.substr(qIndex+1, url.length-1);       if(getData != "refreshed=1"){         refresh();       } else {         myDiv = document.getElementById('content');         myDiv.innerHTML = "This is the second and final time the page loaded.";       }    

java script problem !

hi.i have this code : <asp:TextBox ID="TextBox1" runat="server" Width="92px"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="ok" Width="64px" /> <asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Value="1"></asp:ListItem> <asp:ListItem Value="2"></asp:ListItem> <asp:ListItem Value="3"></asp:ListItem> </asp:CheckBoxList> and in button i have this code : If TextBox1.Text.Contains("1").ToString Then CheckBoxList1.Items.Item(0).Selected = True Else CheckBoxList1.Items.Item(0).Selected = False End If If TextBox1.Text.Contains("2").ToString Then CheckBoxList1.Items.Item(1).Selected = True Else CheckBoxList1.Items.Item(1).Selected = False End If If TextBox1.Text.Contains("3").ToString Then CheckBoxList1.Items.Item(2).Selected = True Else CheckBoxList1.Items.Item(2).Selected = False End If how i can do this code with javascript instead of vb code ?

Problem with java script basic script constraint.

 hi my code isfunction checkValue(){ if(''==document.getElementById ('textbox1').value) { alert('Please enter a value'); } }   and i am calling it on a button click event but its not responding. html code:  <asp:Button ID="btnButton" runat="server" Text="Button" onclick="checkValue()"/>   please help.

how to check one time java script file download not every session

how to check one time java script file download not every session

form sliding using java script

how can we use sliding forms in asp.net

java script to call serverside function

hi i want java script by which i can call my asp.net (vb) function which i have written in aspx.vbi just using the vb function to change and check value of hiddenfild and other controln dont want to use ajax control toolkit , i wat to perform some action after spefic time interval

How to call java script in grid rowdatabound event

Guys I want some help on this issue my code goes like this protected void grdResults_RowDataBound(object sender, GridViewRowEventArgs e)    {        if (e.Row.RowType == DataControlRowType.DataRow)        {                       TextBox txtQty = e.Row.Cells[1].FindControl("txtQty") as TextBox;            Label lblTWeight = e.Row.Cells[9].FindControl("lblTWeight") as Label;            Label lblTMHRS = e.Row.Cells[10].FindControl("lblTMHRS") as Label;            Label lblTLabor = e.Row.Cells[11].FindControl("lblTLabor") as Label;            Label lblTMaterial = e.Row.Cells[12].FindControl("lblTMaterial") as Label;            Label lblTCost = e.Row.Cells[13].FindControl("lblTCost") as Label;            string onComp = "getTotalComplete(document.getElementById('" + txtQty.ClientID + "'));&q

Wizard Control and Java Script

Hi!Does enyone know if it is possible to get wizards next active step (that can be allso previous step when going back) width and height values in JavaScript?

Force report viewer to refresh through java script

I have a Report Viewer in Modal Popup Extender and I need to call refresh on the report viewer or simulate a postback. I have hidden fields tied to the Report viewer parameters, so I put my the report viewer in an update panel. And I need to find a way to refresh the report. My code is below...thanks for helping.

Problem with IndexOf function in Java script?


Hi all,  i have one problem while using Index Of function in java script. I am using this in this way:

var ss=(document.getElementById('<%=HiddenField1.ClientID%>').value.indexOf(","+document.getElementById('<%=yyy.ClientID%>').value+"-"+document.getElementById(str).value,20));                       

Disabling the popup blocker using java script



My application cotains many popup windows, popub blocker blocks the windows so...

can any one help me to disable the popupblocker by java script or using C#......

Thank you....

Namespace Conflict while accessing webservice from java script






Hi All,

I am using Asp.Net with C# , I am trying to access web service from java script using below code


DCen.RC.RController.Update(_User, _UserId, _ContObjId, _IsUnrAllowed, _UserRatiowed, _Localed,  SucceededCallback, FailedCallback);<br/>

The above line is working fine in my local env. but when i am trying to deploy it on server it through exception and said "DCen not Defined "

Plese help me out


Thanks in advance

ASP.net Website - Styles and Java script not working on Mozilla firefox



       I developed a ASP.NET website. The style sheets are loading and the site is working well on Internet explorer. But When I open in Mozilla firefox/ google chorme The sytle sheets doesnt work and the javascript also doesnt work. I am not sure what to do to make my website compatible with firefox/chrome. Can someone tell me what needs to changed or where the problem usually arises in this kind of scenarios?



Session variable in Java script


Please tell me how to read a session variable on to a Java script which is defined externally.

We can read this within the page.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend