DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 15 Aug 2007 11:28:00 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    AlBruAn .(donotspam)
          2    Alexey Smirnov
          3    AlBruAn .(donotspam)
          4    Alexey Smirnov


Page can't find JavaScript function   
I can't for the life of me figure out why my aspx can't find a JS function 
that's in the same file.  For instance, immediately after the info describing 
the page and the registration of some assemblies, I have a function called 
populateEntityDropdown used to populate a non-ASP combobox written entirely 
in JavaScript, defined as follows:

function populateEntityDropdown() {
    debugger
    var x = 1; //checking to see if we can reach this spot
    }

I've set the OnSelectedIndexChanged attribute of another ASP dropdown equal 
to populateEntityDropdown() as 
OnSelectedIndexChanged="populateEntityDropdown()".  When I try to build the 
site, I get an 'populateEntityDropdown' is not a member of 
'ASP.CreateLetterTemplate_aspx' error.

Why won't ASP recognize my JavaScript function?
Date:Wed, 15 Aug 2007 11:28:00 -0700   Author:  

Re: Page can't find JavaScript function   
On Aug 15, 8:28 pm, AlBruAn <albr...@hotmail.com.(donotspam)> wrote:

> I can't for the life of me figure out why my aspx can't find a JS function
> that's in the same file.  For instance, immediately after the info describing
> the page and the registration of some assemblies, I have a function called
> populateEntityDropdown used to populate a non-ASP combobox written entirely
> in JavaScript, defined as follows:
>
> function populateEntityDropdown() {
>     debugger
>     var x = 1; //checking to see if we can reach this spot
>     }
>
> I've set the OnSelectedIndexChanged attribute of another ASP dropdown equal
> to populateEntityDropdown() as
> OnSelectedIndexChanged="populateEntityDropdown()".  When I try to build the
> site, I get an 'populateEntityDropdown' is not a member of
> 'ASP.CreateLetterTemplate_aspx' error.
>
> Why won't ASP recognize my JavaScript function?


It's supposed to have server-side method.
Date:Wed, 15 Aug 2007 18:52:24 -0000   Author:  

RE: Page can't find JavaScript function   
Just wanted to state that the attribute I'm using to try to tie into the 
JavaScript function is actually like this --> 
OnSelectedIndexChanged="populateEntityDropdown();"

"AlBruAn" wrote:


> I can't for the life of me figure out why my aspx can't find a JS function 
> that's in the same file.  For instance, immediately after the info describing 
> the page and the registration of some assemblies, I have a function called 
> populateEntityDropdown used to populate a non-ASP combobox written entirely 
> in JavaScript, defined as follows:
> 
> function populateEntityDropdown() {
>     debugger
>     var x = 1; //checking to see if we can reach this spot
>     }
> 
> I've set the OnSelectedIndexChanged attribute of another ASP dropdown equal 
> to populateEntityDropdown() as 
> OnSelectedIndexChanged="populateEntityDropdown()".  When I try to build the 
> site, I get an 'populateEntityDropdown' is not a member of 
> 'ASP.CreateLetterTemplate_aspx' error.
> 
> Why won't ASP recognize my JavaScript function?
Date:Wed, 15 Aug 2007 11:52:06 -0700   Author:  

Re: Page can't find JavaScript function   
On Aug 15, 8:52 pm, AlBruAn <albr...@hotmail.com.(donotspam)> wrote:

> Just wanted to state that the attribute I'm using to try to tie into the
> JavaScript function is actually like this -->
> OnSelectedIndexChanged="populateEntityDropdown();"
>
>
>
> "AlBruAn" wrote:
> > I can't for the life of me figure out why my aspx can't find a JS function
> > that's in the same file.  For instance, immediately after the info describing
> > the page and the registration of some assemblies, I have a function called
> > populateEntityDropdown used to populate a non-ASP combobox written entirely
> > in JavaScript, defined as follows:
>
> > function populateEntityDropdown() {
> >     debugger
> >     var x = 1; //checking to see if we can reach this spot
> >     }
>
> > I've set the OnSelectedIndexChanged attribute of another ASP dropdown equal
> > to populateEntityDropdown() as
> > OnSelectedIndexChanged="populateEntityDropdown()".  When I try to build the
> > site, I get an 'populateEntityDropdown' is not a member of
> > 'ASP.CreateLetterTemplate_aspx' error.
>
> > Why won't ASP recognize my JavaScript function?- Hide quoted text -
>
> - Show quoted text -


It occurs when the selection from the dropdownlist changes between
posts(!) to the server.
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.listcontrol.selectedindexchanged.aspx

If you want to have client event fired, use

DropDownList1.Attributes.Add("onchange","populateEntityDropdown()");
Date:Wed, 15 Aug 2007 19:02:17 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us