New to ASP.NET but oldtime ASP classic developer

  • Thread starter Thread starter JackV
  • Start date Start date
J

JackV

Hi all,

Just starting in ASP.NET finnally. I have a basic question.

I want to simply display data from a SQLSever table on to the webpage.
Simple enough?

I created an app on the ASP server and added the a Data Web Form, found my
table and fields and then...

When I go and build and show the page, it is blank.....

Um, No complie errors or warnings so what happened? I then placed a simple
label on the form to make sure I am viewing the right page. And yes the
label came up.

So somehow the page is not pulling the data...

Any helpful ideas or easy step by step samples will be helpful. Thanks
 
You have to have a control that accepts your data to display it to the client or you manually iterate thru the data and compose a HTML table to send to the client

In ASP.NET you can use the DataGrid control and bind the data to it and it will take care of displaying the data on the client browser

For sample code visit
http://samples.gotdotnet.com/quicks...rt/aspplus/samples/webforms/data/datagrid1.sr

Suresh

----- JackV wrote: ----

Hi all

Just starting in ASP.NET finnally. I have a basic question

I want to simply display data from a SQLSever table on to the webpage
Simple enough

I created an app on the ASP server and added the a Data Web Form, found m
table and fields and then..

When I go and build and show the page, it is blank....

Um, No complie errors or warnings so what happened? I then placed a simpl
label on the form to make sure I am viewing the right page. And yes th
label came up

So somehow the page is not pulling the data..

Any helpful ideas or easy step by step samples will be helpful. Thank
 
Thanks for the help. The samples made a real difference...




Suresh said:
You have to have a control that accepts your data to display it to the
client or you manually iterate thru the data and compose a HTML table to
send to the client.
In ASP.NET you can use the DataGrid control and bind the data to it and it
will take care of displaying the data on the client browser.
 

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

Back
Top