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

Problem with top_all.ascx

1 Answer 17 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thomas Feaster
Top achievements
Rank 1
Thomas Feaster asked on 10 Sep 2008, 02:59 PM
I am currently using several Telerik controls on a form within my asp.net app.  When starting to debug my application, I get errors from a file called "top_all.ascx".  Ido not have a file that I use under this name, so i know it is created by Telerik.  The error happens on the line "daselect.fill (ds, "dept")".  The same thing happens later in the sequence with a file called "nav_all.ascx".  It also fails when trying to fill a dataset.  The line is "daselect.fill (dsnav, "nav").  Again, I haven't created any of these files, so I know they were created by Telerik controls

Does anyone have any idea how I can resolve this?  I've posted some of the code from these files below.

Thanks

Sub

Page_Load(sender As Object, e As EventArgs)

if parmcatid = "" then

parmcatid = request.querystring(

"parmcatid")

end if

dim strconn as String=ConfigurationSettings.appSettings("strconn1")

dim objconn as new sqlconnection(strconn)

dim strselect as String= "Select * from links where link_inactive=0 and cat_id=" & parmcatid & " order by sortKey "

strselect +=

"select dept_navheading from departments where dept_code= (select cat_dept from category where cat_id=" & parmcatid & ")"

dim daSelect as New sqldataadapter(strselect,objconn)

daselect.tablemappings.add(

"nav", "links")

daselect.tablemappings.add(

"nav1","dept")

daselect.fill(dsnav,

"nav")

NavLinks.datasource=dsnav.tables(

"links").defaultview

NavLinks.databind()

Dim dr as datarow

If dsnav.tables("dept").Rows.count > 0 Then

dr = dsnav.tables(

"dept").rows(0)

head.text = dr.item(

"dept_Navheading")

Else

head.text =

""

End If

end

sub

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 10 Sep 2008, 03:10 PM
Hi Thomas,

I'm afraid that top_all.ascx is not a part of any Telerik product.

All the best,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Thomas Feaster
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or