This is a migrated thread and some comments may be shown as answers.

MultiCombo box demo code...

2 Answers 163 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
R2
Top achievements
Rank 1
R2 asked on 14 Jan 2009, 05:09 PM
Hi,

I am trying to do the demo Multiple ComboBoxes in VB.  I created a new website in VS.Net and copy & paste code in respective ASPX, VB.Net, and CSS pages.  It is throwing all sorts of errors.  There are squiggly lines everywhere.  Could someone please help me with this?

 

Line 1<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
Line 2<%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
Line 3<%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
Line 4<%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>

 



  • Squiggly lines under entire Line 1. 
    Error
    'Context' is not member of 'multi_combo'  ("multi_combo" is the name of the .aspx page and collateral codebehind page)


  • Squiggly lines under entire Line 2 - 4.  Specifically all files located in the  "~/Common/<filename>.ascx"  folder.  What is the full path for these?


  • Squiggly lines under "head" in <head runat="server"> tag

 



  • Squiggly line under "headtag" in <qsf:headtag runat="server" ID="Headtag1"></qsf:headtag>  
        Error:  
       "Element 'headtag' is not a known element. This can occur if tere is a compilation error in the Web site, or the web.config file
        is missing."




  • Squiggly line under 'header' in <qsf:header runat="server" ID="Header1" NavigationLanguage="VB"></qsf:header>
       Error:  
       "Element 'header' is not a known element. This can occur if tere is a compilation error in the Web site, or the web.config file
        is missing."



  • Squiggly line under 'footer' in <qsf:footer runat="server" ID="Footer1"></qsf:footer>
       Error:  
       "Element 'footer' is not a known element. This can occur if tere is a compilation error in the Web site, or the web.config file
        is missing."




  • On the VB.Net page, every reference to a RadComboBox control (i.e.: RadComboBox1, RadComboBox2, RadComboBox3) has a squiggly line under it saying it is not declared.  How can this be when the controls are listed on the page?  Why aren't these controls recognized as 'declared' in the code behind file?
       Error:
        Name 'RadCombBox1' is not declared.
        Name 'RadCombBox2' is not declared.
        Name 'RadCombBox3' is not declared.



Thanks for your anticipated help!
R2

 

2 Answers, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 14 Jan 2009, 09:00 PM
Hey R2,

The Common folder is located around:

C:\Program Files (x86)\Telerik\RadControls for ASPNET AJAX Q3 2008\Live Demos\Common

I'm on a x64 machine, so yours is probably just in c:\Program Files\....  That is the common folder for all sorts of goodness that is shared by the demos.  If you wanna use those QSF files, I'd recommend copying them from the above directory and putting them into the directory your website is in and removing the "/Common" so it'll load them into your site.

As far as the other problem, have you added a reference to Telerik.Web.UI to your project?  If you're just copying and pasting the code, it won't add the reference (while, on the other hand, if you dragged something out of the Toolbox it would take care of that for you).  One easy fix to a that which I use all the time when modifying demos is to drag a single control from the toolbox to an arbitrary spot on my page, which takes care of the DLL reference, then I just delete that control and everything else gets access to the dll they are looking for. 



0
R2
Top achievements
Rank 1
answered on 15 Jan 2009, 03:04 PM
Thanks, Serrin, much appreciated answers. 

I did find the "common" folder yesterday (via search in windows explorer) and I copied & pasted the files I needed into my project.  I kept the folder name "Common" however, and corrected the path.

Yes, I always add the "Imports Telerik.Web.UI" namespace to my projects.  In the RadControls Courseware PDF, that's one of the first steps it instructs one to do.  Thank you for pointing that out.

I thought about dragging a control onto the page (like rebuilding the page instead of copy&paste the code), but did not take that step yet.  Your advice makes sense, and I will follow your suggestions.

Sincerely,
R2
Tags
ComboBox
Asked by
R2
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
R2
Top achievements
Rank 1
Share this question
or