473,473 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Path for Missing Class in VWD2010 Express

2 New Member
Hi all.

I have an issue using Ajax Control Toolkit ComboBox.
Here is my test markup page:

Expand|Select|Wrap|Line Numbers
  1. <%@ Page Language="C#" 
  2.     AutoEventWireup="true" 
  3.     CodeFile="Default2.aspx.cs" 
  4.     Inherits="Default2" %> 
  5. <%@ Register Assembly="AjaxControlToolkit"
  6.     Namespace="AjaxControlToolkit"
  7.     TagPrefix="asp" %> 
  8.  
  9. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  10. <html xmlns="http://www.w3.org/1999/xhtml"> 
  11. <head runat="server"> 
  12.   <title></title> 
  13. </head> 
  14. <body> 
  15. <form id="form1" runat="server"> 
  16.   <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager> 
  17.   <div> 
  18.     <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" /> 
  19.     <% if (CheckBox1.Checked)
  20. { %>
  21.     <asp:ComboBox ID="ComboBox1" runat="server">
  22.     </asp:ComboBox> 
  23. <% } %> 
  24.   </div> 
  25. </form> 
  26. </body> 
  27. </html>
After CheckBox1 rises PostBack I get a NullReferenceException in the method AjaxControlToolKit.ComboBox.System.Web.UI.IPostBac kDataHandler.LoadPostData(stringpostDataKey, System.Collections.Specialized.Name.ValueCollectio n postCollection) and Visual Web Developer 2010 Express asks me the path of the Class ComboBox.cs that I don't have.

Without <% if { } %> the ComboBox works fine.

Can anyone help me?

Thank you.
Oct 17 '12 #1
1 1483
Frinavale
9,735 Recognized Expert Moderator Expert
Instead of using the <%if{}%>, consider setting the ComboBox'sVisible property to the Checked property of the CheckBox in the method that handles the CheckBox1's CheckedChanged event.


-Frinny
Oct 25 '12 #2

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

Similar topics

3
by: handlim | last post by:
I am trying to make some program with XML in class library by C#. I read XML file in my program by using oXmlDoc.Load(xmlfilename); But, It occured error... It read from C:\windows\system32,,, But...
17
by: Ed Bitzer | last post by:
I apologize for this obvious neophyte question but why do I not see the templates for Class Library and Windows Control Library in my New Project window. Is this not part of Visual Basic .Net...
1
by: pinplacement | last post by:
I don't get what is left out of VB express to be released 5 weeks from now. Suggested customers are students and hobbyists, so is there some full featured version that will be released around the...
0
by: chris.atlee | last post by:
Hi there, I haven't seen this topic pop up in a while, so I thought I'd raise it again... What is the status of the path module/class PEP? Did somebody start writing one, or did it die? I...
1
by: peterbe | last post by:
This is a hard question to ask because I can't reproduce the problem other than restarting several times over until it happens again. I'm using Zope and Plone for a website on this debian linux...
4
by: mecej4 | last post by:
DB2 Express C (Fixpack 10, WR21362_15462) seems to be lacking some of the OLAP functions available in other editions, such as ROW_NUMBER, RANK and DENSE_RANK, but does provide sum(..) over...
0
by: dba123 | last post by:
I'm trying to implement my own Virtual Path Provider class. http://msdn2.microsoft.com/en-us/library/system.web.hosting.virtualpathprovider.aspx ...
2
by: rengaraj | last post by:
i want to ask should i put the class file for this Applet in the same folder of the HTML or JSP page or it is possible to put it in any place and write the path when i did that the Applet could...
4
chathura86
by: chathura86 | last post by:
i have created some php classes in deferent folders which requires each other i have given relative paths relative to those files i used require_once() but when i use those class in a file...
0
mickey0
by: mickey0 | last post by:
Hello, I wrote this and it doens't find the proper path: String userDir = System.getProperty("user.dir"); Class c = Class.forName(userDir + "\\" + "Page"); either: Class c =...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.