Add a dataset control to a ASP.NET 2005 app

D

D Witherspoon

How do I add a dataset control to a ASP.NET 2005 app?

It was easy in 2003. I would just drag a control onto the form. In an
ASP.NET web project VS.2005 project the control doesnt seem to exist.

What do I do ?
 
C

Cor Ligthert [MVP]

Hi Scrooge,

You can add from your solution explorer a dataset, in that you can click on
the lower part to get the connection. Than a wizard something as you was
used to see will start.

I hope this helps,

Cor
 
D

D Witherspoon

no, I am talking about a dataset control not a .XSD dataset file.

I can do it by going into the component designer or something like that for
the web form

Who is Scrooge?
 
C

Cor Ligthert [MVP]

Did you tried what I told.

The connection is now a part from the strongly typed dataset .

If you don't want to use that, than you have to create that by hand or I
though drag a table from the Server Explorer to your page. (The last I am
not totally sure of, therefore it is to new for me as well).

I hope this helps,

Cor
 
D

D Witherspoon

yes I already had the dataset created just couldnt get the control on the
form.

i don't really like the idea of having to bind the daatset to a connection
object at design time... since we like to do it all in the runtime.

especially since we don't store our connection strings on the server, and
never would we store a connection string in a web.config file. we have
another component we call that retrieves our connection strings for us in
runtime
 

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

Top