473,761 Members | 3,542 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

polymorphic
28 New Member
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_as px"

Javascript Function:

Expand|Select|Wrap|Line Numbers
  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:

Expand|Select|Wrap|Line Numbers
  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?
Mar 28 '08 #1
2 7221
DrBunchman
979 Recognized Expert Contributor
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
Mar 28 '08 #2
polymorphic
28 New Member
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 "RegisterClient ScriptBlock" in the code-behind but was unable to get that to work due to my lack of experience.
Mar 28 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2678
by: Nimmi Srivastav | last post by:
When I was learning C, I learned that the data type of a function name by itself is a function pointer. For example int someFunction(char* str) { .... }
0
511
by: Ari Royce Hidayat | last post by:
Dear ALL, Is there some one ever faces this problem? And fix it? The scenario is: There's an html page that hosts a .net object (using object tag), and this page opens the second html page that also hosts a .net object (e.g. by click a hyperlink).
2
1856
by: Andy Norman | last post by:
I have a strange problem. When I try to call the input property of the MSXML processor object from VBScript in an ASPX page I get the error "Member not found". The same code (with a few "set" statements added) works find in ASP. What on earth is going on ? I can't find anything in the knowledge base on it.
9
8256
by: tropostropos | last post by:
On Solaris, using the Sun compiler, I get annoying warnings from the following code. The problem is that I am passing a C++ member function pointer to the C library function qsort. Is there a solution? Declaring the function extern "C" fails, because linkage declarations must be made at file scope. #include <stdlib.h> //for qsort template <class T> class Sorter
3
5962
by: Dave | last post by:
Greetings All, I have never seen this error before, and after an extensive search of Groups, I cannot find a satisfactory answer to my basic question. What exactly does "is not a member of 'String'" mean specifically? I am developing in VB.NET and I was using the Collection datatype to store property and object values. However, another group where I work decided to use C#, and they want to use my base library objects. From
2
7606
by: johkar | last post by:
Why does if(win==null || win.closed) return true after one PDF is open. Something very wierd going on with IE 6. I also get a member not found error if a child window is already open. This script works fine if the child window contains HTML, just not a PDF. Ideas? Note: These are not my PDFs, I just found some on the Net so you could test. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
22
7212
by: kkk1979 | last post by:
I am not an experienced programmer. I am getting an error as "method or data member not found" when i entered the following code in buttonclick procedure of the toolbar. select case button.key case "btn1" msgbox "" case "btn2" msgbox "" end end select Can anybody help me in figuring out this problem
2
9016
by: snester | last post by:
Hi, I am using visual studio 2005 and recently created a new web service project. I seem to have edited the global config file (inadvertently) somewhere along the line. All new projects I have created since the above web service project have generated two errors while debugging. The first error, I believe I have fixed but I cannot fix the second error. I mention the first error below incase it is the cause of the second error.. 1)...
3
18237
by: andersond | last post by:
I want input objects to have a light yellow background when they have focus. Here's how I call my function: input name="monthsVacant" id="monthsVacant" disabled="disabled" onFocus="yellowOn('monthsVacant')" And here's my function. function yellowOn(vObject){
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9989
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9925
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7358
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5266
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3913
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.