Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

BC30456: not a member of 'ASP.default_aspx" - ASP.NET

Question posted by: polymorphic (Newbie) on March 28th, 2008 02:56 PM
I have a javascript function which I am trying to call in an ASP.NET page but I receive the following error:

"BC30456: 'FixComboHeight is not a member of 'ASP.default_aspx"

Javascript Function:

Code: ( text )
  1. <script type="text/javascript">
  2. function FixComboHeight() 
  3. {
  4. var combo =<%=cbMSDivision.ClientID%>;   
  5. combo.FixUp(combo.InputDomElement,true);     
  6. }         
  7. </script>

...........
ComboBox Code:

Code: ( text )
  1. <td align="left" style="width: 325px" valign="middle">
  2.  
  3. <radC:RadComboBox ID="cbBusDivision" runat="server" OnLoad="FixComboHeight" Skin="Office2007" SkinsPath="~/Telerik/RadControls/ComboBox/Skins" Width="300px" DataSourceID="BusinessDivisionDS" DataTextField="Bus_Div_Name" DataValueField="Bus_Div_ID" Enabled="False" ToolTip="Microsoft Business Division">                                       
  4. </radC:RadComboBox>
  5. </td>


What do I need to do to assure that "FixComboHeight" is registered or called properly?
Last edited by jhardman : April 1st, 2008 at 11:02 PM. Reason: moved to .Net forum. ASP forum is for "classic" ASP
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
DrBunchman's Avatar
DrBunchman
Moderator
601 Posts
March 28th, 2008
04:17 PM
#2

Re: BC30456: not a member of 'ASP.default_aspx" - ASP.NET
Hi polymorphic,

Just so as you know, this is a Classic ASP forum - the .NET forum is where all ASP.NET questions should go.

It looks to me like you're trying to call a javascript function from a server event which isn't possible. Remember that javascript is a client side language but your combo box is created on the server.

What is it you're actually trying to do? Change the height of the combobox dynamically?

Dr B

Reply
polymorphic's Avatar
polymorphic
Newbie
28 Posts
March 28th, 2008
04:46 PM
#3

Re: BC30456: not a member of 'ASP.default_aspx" - ASP.NET
Quote:
Originally Posted by DrBunchman
Hi polymorphic,

Just so as you know, this is a Classic ASP forum - the .NET forum is where all ASP.NET questions should go.

It looks to me like you're trying to call a javascript function from a server event which isn't possible. Remember that javascript is a client side language but your combo box is created on the server.

What is it you're actually trying to do? Change the height of the combobox dynamically?

Dr B


Ok, thanks. I'm still transitioning into ASP.NET.

I have a comboBox that I need to modify the height. I do not know where to all the JavaScript from. I tried using the "RegisterClientScriptBlock" in the code-behind but was unable to get that to work due to my lack of experience.

Reply
Reply
Not the answer you were looking for? Post your question . . .
173,515 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top .NET Forum Contributors