Getting error: 'TabContainer' is ambiguous in the namespace 'AjaxControlToolkit'

I'm using VB.Net 2005, ASP.Net 2.0 - In my ASP.Net code I have 

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

In my VB.Net I am connecting to a function that calls an RPC from COBOL - the function is working correctly (returning "0000") but I am getting an error on these lines of code:

Dim ajax_tab_container As New AjaxControlToolkit.TabContainer
Dim tabpanel_cat1 As New AjaxControlToolkit.TabPanel

Both lines are returning "Ambiguous namespace" and niether is defined in the ASP.Net code, only in the VB.Net code Behind.  Here is the complete code:  

Dim ajax_tab_container As New AjaxControlToolkit.TabContainer
        ajax_tab_container.ID = "DetTranTabContainer"
        ajax_tab_container.Height = Unit.Parse("300px")
        Dim lo_rpc_mngr As New DMVConnect.RPCManager
        Dim lo_dmv_comm As New DMVCOMM.misc_func
        Dim ls_key_txt, ls_key_txt1, ls_data_txt, ls_data_txt1 As String
        lo_rpc_mngr.ProgramName = "AZRF002A"
        lo_rpc_mngr.OriginIndicator = "W"
        lo_rpc_mngr.RequestHeaderAsArray = New String() {"", "3319".ToString, ""}

        If lo_rpc_mngr.CallRPC Then
            If lo_rpc_mngr.DCIErrorCode.Equals("0000") Then
                Dim ldt_reply_data As DataTable = lo_rpc_mngr.ReplyData
                Dim ldt_distinct_cat_1 As DataTable = lo_rpc_mngr.SelectDistinctRows(ldt_reply_data, "MSTRTRAN_CATG_1")
                Dim ldt_distinct_cat_1_2 As DataTable = lo_rpc_mngr.SelectDistinctRows(ldt_reply_data, "MSTRTRAN_CATG_1, MSTRTRAN_CATG_2")
                Dim li_indx1 As Integer = 0
                Dim li_col As Integer = 0
                For li_indx1 = 0 To ldt_distinct_cat_1.Rows.Count - 1
                    Dim tabpanel_cat1 As New AjaxControlToolkit.TabPanel
                    Dim li_row As Integer = 0
                    ls_key_txt = ldt_distinct_cat_1.Rows(li_indx1)("MSTRTRAN_CATG_1").ToString.Trim
                    ls_data_txt = lo_dmv_comm.uf_rtdata("GCA1", ls_key_txt).ToString.Trim
                    tabpanel_cat1.ID = "tabpanel_" & ls_key_txt
                    tabpanel_cat1.HeaderText = ls_data_txt
                    Dim ldr_cat2() As DataRow = ldt_distinct_cat_1_2.Select("MSTRTRAN_CATG_1 = '" & _
                        ls_key_txt & "'")
                    Dim li_indx2 As Integer = 0
                    Dim li_indx3 As Integer = 0
                    For li_indx2 = 0 To ldr_cat2.Length - 1
                        ls_key_txt1 = ldr_cat2(li_indx2)("MSTRTRAN_CATG_2").ToString.Trim
                        ls_data_txt1 = lo_dmv_comm.uf_rtdata("GCA2", ls_key_txt1).ToString.Trim
                        'ldt_display.Columns(1).Caption = ls_data_txt1
                        Dim lbl_cat2, lbl_emp As New Label
                        lbl_cat2.ID = "lbl_" & ls_key_txt1
                        lbl_cat2.Text = ls_data_txt1
                        lbl_cat2.Font.Bold = True
                        lbl_cat2.Font.Underline = True
                        lbl_emp.ID = "lbl_emp" & ls_key_txt1
                        lbl_emp.Text = "<br />"
                        Dim ldr_tran() As DataRow = ldt_reply_data.Select("MSTRTRAN_CATG_1 = '" & _
                        ls_key_txt & "' and MSTRTRAN_CATG_2 = '" & ls_key_txt1 & "'", "MSTRTRAN_DESC")
                        For li_indx3 = 0 To ldr_tran.Length - 1
                            Dim lbl_tran, lbl_emp_tran As New Label
                            lbl_tran.ID = "lbl_" & ls_key_txt & ls_key_txt1
                            lbl_tran.Text = ldr_tran(li_indx3)("MSTRTRAN_DESC")
                            lbl_emp_tran.ID = "lbl_emp" & ls_key_txt & ls_key_txt1
                            lbl_emp_tran.Text = "<br />"
            End If
        End If
    End Sub 
 Any suggestions on why I am getting an Ambiguous error?  TIA,

"We Develop Webs"
10/15/2007 5:13:46 PM 17816 articles. 1 followers. Follow

2 Replies

Similar Articles

[PageSpeed] 16

Well, just for everyone's info, I got rid of the Ambiguous error by deleting my reference to the Ajax Control Toolkit and re-installing it.  I guess there has been an update to the Ajax Control Toolkit since I originally downloaded it and the person I am working with had gotten the newest version and I had not, so I removed all my references to the old version and re-installed the current version and I no longer get the Ambiguous Namespace error; however, I still can not get any of the controls to display dynamically.  This works perfectly on the other person’s machine, but not on mine.  I will keep searching to see if he has a newer version of some of the other classes as well.  Any other suggestions on how to get this to display dynamically would be appreciated.  Thanks!


"We Develop Webs"
10/15/2007 6:41:53 PM

I found the problem with the Display!  I was missing 1 line of code...


Missed it at the bottom of the IF statements!  It should be:


            End If
        End If


Now it works!  Not only was I able to get rid of the "Ambiguous error" message, but I also found my missing line of code.  If anyone else has this issue (of either Ambiguous errors or dynamic content not displaying) please check that your version of the AJAX Control Toolkit is the correct/current version and also check that you have the Page.Form.Controls.Add()  in your page!

"We Develop Webs"
10/15/2007 9:18:48 PM

Similar Artilces:

Name: haznen Email: haznenatyahoodotcom Product: Gran Paradiso Alpha 8 Summary: '''''''''''''''''''' Comments: '''''''''''''''''''''''''''''''''''' Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061204 UGES/ GranParadiso/3.0a1 From URL: Note to readers: Hendrix gives...

Name: mario Email: ramar17atfastwebnetdotit Product: Gran Paradiso Alpha 2 Summary: ''''' Comments: K: Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2) Gecko/20070206 GranParadiso/3.0a2 ...

VS2005 VB.Net 'EventArgs' is ambiguous in the namespace 'System'. Errors.
Hi guys,  I've searched and searched and can't find the fix for this.  I am recieving the max number of errors for my ASP.Net project.  The errors are simply stated as something like the title.  Other ones are: 'DebuggerNonUserCodeAttribute' is ambiguous in the namespace 'System.Diagnostics'. 'EventArgs' is ambiguous in the namespace 'System''CompilierGlobalScopeAttribute' is ambiguous in the namespace 'System.Runtime.CompilierServices'.'SerializationInfo' is ambiguous in the namespace 'System.Runtime.Serialization'  Most of the errors are comming up in files th...

'do' won't 'do' if '/'
Greetings to All from Au, Have a NetWare Perl 5.8.4 and wanted to tweak File\Spec\ to try and standardise on '/' separators. If I run a test script (t/uni/lower.t) with an unmodified, it calls t/uni/, that, in, (when the path separators are '\'), the $file is '..\lib\unicore\To\' and the following code portion works, with $simple getting a returned table: sub casetest { my ($base, $spec, $func) = @_; my $file = File::Spec->catfile(File::Spec->catdir(File::Spec->updir, "lib", &qu...

Name: L Lachowsky Email: e2brutus_10atyahoodotcom Product: Firefox Summary: ''' Comments: why duddn this surprise me... I change default server from IE to Mozilla, and then i get error messages. well, shud I decide to not get on my computer with Mozilla..or shud I risk security breeches with IE....hmmm at least i can get on the internet with IE Browser Details: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/2008120122 Firefox/3.0.5 From URL: Note to readers: Hendrix gives no expectation of a response to this fee...

Cast from type ''''DBNull'''' to type ''''String'''' is not valid.
How do I avoid getting this error: Cast from type ''''DBNull'''' to type ''''String'''' is not valid. I am trying to get values from the database into a form for updating using a Datareader, SQL is set to allow nulls for certain fields as they are not required but the only way I can get the form to display is by adding a space in SQL. Is there another way around this? Check if it is equal to DBNull.Value first and if it is, don't do the cast.Stanley Tan theSpoke Blog Where in the code does it need to go? I am using the following and it's the profile that isn't always requi...

table_info('','','','%') cannot return any types
I was recently confirming table_info special cases and discovered the case for getting table_types cannot work. table_info('','','','%') should return a list of table types but it returns a list of empty strings instead: my @types = $h->tables('', '', '', '%'); print "all types:\n", join("xxx\n", @types), "\n"; # should output something like: # "dbo" # "INFORMATION_SCHEMA" # "sys" # and actually outputs: xxx xxx It seems to be down to the following ...

error in ''%'' operator
hi... friends    i got this error (Syntax error: Missing operand after ''%'' operator)below statement. dtBtnScr.DefaultView.RowFilter = "LOCATION_CITY'" + txtCity.Text.Trim() + "%'AND LOCATION_STATE '" + ddlState.SelectedValue + "%'AND UNIT_ID'" + txtUnitCode + "%'AND UNIT_NAME '" + txtUnitName.Text.Trim() + "%'";   thnax friends It thinks you are trying to use the modulo operator: %. Look at the RowFilter string after you build it should see the prob...

'or' or 'union'
Hello I was just wondering, in general what is better to use, an 'or' clause in a select or a 'union' to join two selects together. Do both statements create work tables? Many thanks Alex I think OR will be better than union. because suppose u have 3 tables and using OR u can join table a and table b and table c so each table will have only one read. but using union you will join table a and table b and in another query of union u will use table (a or b) and table c so ur one read is more in union . Ramdas Alex Cheung wrote: > Hello > >...

'msgbox' ambiguous in the namespace ' bunnybear'
I brought in a server control 'msgbox'(downloaded from codeproject), added the server control executable dll to my project. The code for this control is written in c#. However in my project, vb .net is what I have been using. I have seperated the vb code and cs code into sub directories under App_code folder. Also added the code for web.config file to handle both compilers. <compilation debug="true" strict="false" explicit="true" > <codeSubDirectories> <add directoryName="VB_Code"/> <add directoryName="CS_Code"/> </codeSubDirectories> &...

'ItemVB' is ambiguous in the namespace 'CustomParsingControlSamples'
Hi all!  I am executing a sample program "customParse2.aspx" from the Microsoft ASP.NET website located at  However, I am encountering the error which I have mentioned in the subject line above.  The error is encountered at the following line:<customitem Message="One"/>Compilation was successful.  This is a run-time error.  Could someone let me know what could be the problem? Can you tell us which of the QuickStart Tutorials you are following? Can you also show us your own code in full?Alister I assume it i...

Hello. I'm using defferent 5.6.0's for Win32. I wonder wheter following behaviour is intentional or not: d:\>perl -e "print 'b'..'c'" bc d:\>perl -e "print 'b'..'a'" bcdefghijklmnopqrstuvwxyz I expected empty list in latter case, like in perl -e "print 'bb'..'a'" <!ENTITY Vadim REALLIFE "Vadim V.Konovalov, St.Petersburg, Russia"> &Vadim; On Wed, Sep 20, 2000 at 03:14:41PM +0400, Konovalov, Vadim wrote: > Hello. > > I'm using defferent 5.6.0'...

'IN' Clause or 'OR'
Hello, [1]: select * from TABLEA where COL1 IN('value1','value2''valu3'....) [2]:select * from TABLEA where COL1 = 'value1' OR COL1= 'value2' OR COL1='valu3'. TABLEA is a huge table and it has non-clustered index on COL1. Among the above 2 queries, which query will give me the better performance or fast response and WHY? What is the difference between 'IN' and 'OR' clauses as for as Sybase Optimization is concerned. Which is the better one to be used on huge tables. Thanks. Mac An IN list is treated ...

'AddressLabel_ascx' is ambiguous in the namespace '_ASP'.
Hello,I've been modifying an application on my local computer and then uploading it to our development server when it's finished.  The alterations I've made work fine on my computer, but when I copy the files up I get this error message:'AddressLabel_ascx' is ambiguous in the namespace '_ASP'I've checked all the relevant files and they are identical on the two computers.  I've tried resetting IIS on my local computer, deleting the dll's and recompiling the dll's.  I've tried stopping iis on the dev server, deleting the bin directory, copying the new files up again and res...

Web resources about - Getting error: 'TabContainer' is ambiguous in the namespace 'AjaxControlToolkit' -

Resources last updated: 1/5/2016 12:20:41 AM