datagrid paging

D

dodgeyb

I'm using the datagrid control, and if I bind it to an sqldata adapter
which returns more records than is specified in the PageSize attribute
of the datagrid it gives runtime error:

"Control 'dgTemplate_ctl14_ctl01' of type 'DataGridLinkButton' must be
placed inside a form tag with runat=server"

If I take out the attributes ; AllowPaging="true" PageSize="10", then
it works fine.
If I ensure the recordset returns 10 records or less it works, if it
returns >10 it crashes.

It just doesn't seem to be paging properly.

I'm using datagrids on other pages fine with no probs at all, &
similar code.
Anyone shed any light ?

Cheers
Chris
 
C

Cowboy \(Gregory A. Beamer\)

Post the tags from the ASPX page. I have a clue, but the tags will give me a
better idea.
 
D

dodgeyb

Thanks Gregory, was about to post, then I noticed I hadn't done
exactly what it was telling me; no form tag !

Added and all working now!

thanks for the pointer !
rgds
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,709
Latest member
AustinMudi

Latest Threads

Top