473,387 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

New to ASP.NET but oldtime ASP classic developer

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
Nov 18 '05 #1
3 904
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/quickst...a/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

Nov 18 '05 #2
> When I go and build and show the page, it is blank.....

Are you using VS.NET? If so, are you hitting F5 to do this (or going to
Start/Debug)?

Is the code to bind the data to your data Web control in the Page_Load
event handler? What does your code-behind class look like?

Thanks.

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!

"JackV" <vi****@consumer.org> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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

Nov 18 '05 #3
Thanks for the help. The samples made a real difference...


"Suresh" <an*******@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
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/quickst.../datagrid1.src
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 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

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
2
by: needin4mation | last post by:
I can't find out if Microsoft supports "Classic" asp or if they only support asp.net? I'm not really sure what support means in either context, really, except that they tell customers not to use...
12
by: mcp6453 | last post by:
My small company has a web site that is developed in "Classic ASP", which is, I'm told, different from just "ASP". It is clear to me that we are not using ASP.NET. The site is hosted on a shared...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.