Non-existent datagrid?

P

Paul W

On a brand new aspx page I dragged a table from my local SQLServer in the
'Server Explorer' and it created the SqlConnection1 and SqlDataAdapter1. I
then used 'Generate Dataset' to create a simple dataset.

I created a datagrid and set its DataSource to 'DataSet11' and its
DataMember to 'TblEvents' (the name of the table). In the page designer it
correctly shows the column names from this table.

In the Page_Load I have

SqlDataAdapter1.Fill(DataSet11)

which matches the names of my objects. When I run this I see (from a SQL
trace) that it is querying the db, however, the page is blank and when I
look at the html source its basically 'empty'.

Yes, there is data in the table, and I can even see this data from within
the Server Explorer.

Any ideas what might be the problem? I've repeated this a few times, and
still can't get it to work (same with other data-bound controls)

Thanks, Paul.
 
P

Paul W

Hi - do you mean you prefer to declare everything in code? Can you give me
some reasons (security, etc.)?

Thanks

Paul.
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top