I would like to use JavaScript to have the current month selected in a dropdown list created in C#. The dropdown list has the twelve months as items. The name of the ddl is cmbMonth. It needs to show the current month when another dropdown list (cmbSearch) changes. Here is the C# code that...
I case anyone is interested, here is the answer to my above question:
<script language="JavaScript">
function SetSearchIndexChanged()
if (window.document.Form1.MemberSearchControl1_ddListSearchFor.selectedIndex == 1)
{
window.document.Form1.MemberSearchControl1_txtSearch2.style.visibility =...
Perhaps this is the wrong forum, but I'll try it anway. Can anyone tell what is wrong with the code below? The statement setting txtSearch2 to "hidden" works. The one below it changing the lblDefine text to "ID" does not work. I know that the problem is how I am going about referencing the...
The missing quotes were probably from carelessly copying & pasting. I believe text should be lower case. I'm posting my question in several forums. My problem seems to be getting the JavaScript to access a label created in C#. That is why I'm posting here.
I did get the code to work using...
I am unable to clear or change text for a label created in C# using JavaScript. I am able to hide a text box and a drop down list.
Here is the function (placed in the head). The statement for the textbox works fine. The one for the label does not.
<script language="JavaScript>
function Test() {...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.