|
-
Apr 19th, 2002, 08:05 AM
#1
Thread Starter
Addicted Member
DataGrid no showing up
Ok, I solved the wwwrooot$ issue-thanks!
I am building a sample app as described in the book "Visual Sudio.Net Walkthroughs" that came with the software.
I am building the ASP app that starts on page 96. I built the
data grid over titles dataset on Pub db. When I actually
run the thing, I get nothing but a blank screen. I added static
text to insure the form is loading, it is. I checked and rechecked
the instructions to be sure I did it right. Still it did not return
ant datagrid. The data is there. Unfortuantly the software
says that the components to debug are not on the server (???)
so I cant debug. Any suggestions?
Tom
-
Apr 19th, 2002, 08:38 AM
#2
Fanatic Member
Without having the book you mention, it's a little difficult to help. I use ASP.NET without VS.Net.
Real programmers use Notepad.
OK.....Uhmmmmmmm......
1) Using IIS local with latest NetFramework installed ?? Other non-data APS.Net pages run ok ?? Using web-hosting co that actually has ASP.Net working ?? (www.brinkster.com officially has it for General members, but it doesn't work)
2) can you response.write all the data out ??
3) <% Page debug="true" %> is at the top of page ???
4) Your actually binding the data ??
obj.DataSource = DataReader/DataList/whatever
obj.DataBind()
5) Can you fill grid using just an array ???
Dim arr as ArrayList= new ArrayList()
arr.Add ("test")
arr.Add ("test2")
obj.DataSource = arr
obj.DataBind()
6) Tracing set on ???
-
Apr 19th, 2002, 08:59 AM
#3
Thread Starter
Addicted Member
1) Using IIS local with latest NetFramework installed ??
Using what came out of the box (1.0)
Other non-data APS.Net pages run ok ??
Yes
>>> Using web-hosting co that actually has ASP.Net working ??
what do you mean "co"? We are using a NT 4.0 server as
an "intranet" sandbox. Nothing in production just yet
www.brinkster.com officially has it for General members, but it doesn't work)
>>>>2) can you response.write all the data out ??
Do not know how to do that. This is my first Foray into anything ASP or .NET for that matter
>>>>>3) Your actually binding the data ??
on the page load I am using "datagrid1.databind()" just like
the book tells me to.
>>>5) Can you fill grid using just an array ???
Dim arr as ArrayList= new ArrayList()
arr.Add ("test")
arr.Add ("test2")
obj.DataSource = arr
obj.DataBind()
Gonna tryit
>>>6) Tracing set on ???
Do not know how to do that (excuse my wet ears)
Thanks
Tom
-
Apr 19th, 2002, 09:05 AM
#4
Thread Starter
Addicted Member
Datagrid
Loading an array to a datagrid did not workeither
Tom
-
Apr 19th, 2002, 09:12 AM
#5
Fanatic Member
Originally posted by Tom Yasnowski
1) Using IIS local with latest NetFramework installed ??
Using what came out of the box (1.0)
Other non-data APS.Net pages run ok ??
Yes
.
.
.
Thanks
Tom
Sorry to throw so much at you, but when you post, it's a good idea to include as much info as possible.
OK......non-data ASP.Net pages run ok so we can assume IIS(your web server) and the NET Framework(sw to run NET code in IIS) are installed ok.
Just noticed your next post about the arrays....This is just a small sample from a book ??? Post the code. Just replace any details about database names and passwords with "X"'s.
-
Apr 19th, 2002, 09:15 AM
#6
Thread Starter
Addicted Member
datagrid
I will try to post the code,
But I am not sure I f I can "gather it all up" like you
can in VB.. stay tuned
-
Apr 19th, 2002, 09:41 AM
#7
-
Apr 19th, 2002, 09:50 AM
#8
Thread Starter
Addicted Member
I think we have a problem..
I did a s you said, sure enough, I got the text but
no data grid. So we got some system bug?
Tom
-
Apr 19th, 2002, 10:01 AM
#9
Fanatic Member
Re: I think we have a problem..
Originally posted by Tom Yasnowski
I did a s you said, sure enough, I got the text but
no data grid. So we got some system bug?
Tom
The same error as before ??
"components to debug are not on the server " ??
This sample is as simple as it gets. After this, I would say your setup on the server is hosed in some way.(again, copy to a single file with a ASPX extension)
If this doesn't work, take any error message and search at
MSDN at Micorsoft.com
<html>
<body>
<h3><font face="Verdana">Declaring Server Controls</font></h3>
This sample demonstrates how to declare the <asp:label> server control and
manipulate its properties within a page.
<p>
<hr>
<asp:label id="Message1" font-size="16" font-bold="true" forecolor="red" runat=server>This is Message One</asp:label>
<br>
<asp:label id="Message2" font-size="20" font-italic="true" forecolor="blue" runat=server>This is Message Two</asp:label>
<br>
<asp:label id="Message3" font-size="24" font-underline="true" forecolor="green" runat=server>This is Message Three</asp:label>
</body>
</html>
-
Apr 19th, 2002, 12:34 PM
#10
Thread Starter
Addicted Member
Datagrid
Yes, I did run your sample and got the same type of results as
did the app. There is no error message I can see. Everything
acts "normal" I also tried out the Web service exmple from
this site and it doesn't work right either. When I try to "view
with browser" as Karl Moore instructs; I get the OS asking if
I want to open or save to disk the service. When I say open,
I get nothing but a source code string. I also can't find the service when I tried to add the Web refernce to the VB app. I suspect my install was bothced. I had to put the stuff on the D: drives because of space limitations on C:. The server was built using FAT so my disk space was only 2GIG. Going to have it rebuilt as NTFS
Tom
-
Apr 19th, 2002, 02:25 PM
#11
Fanatic Member
Re: Datagrid
Originally posted by Tom Yasnowski
Yes, I did run your sample and got the same type of results as
did the app. There is no error message I can see. Everything
acts "normal" I also tried out the Web service exmple from
this site and it doesn't work right either. When I try to "view
with browser" as Karl Moore instructs; I get the OS asking if
I want to open or save to disk the service. When I say open,
I get nothing but a source code string. I also can't find the service What oerating system and version of IIS are you running when I tried to add the Web refernce to the VB app. I suspect my install was bothced. I had to put the stuff on the D: drives because of space limitations on C:. The server was built using FAT so my disk space was only 2GIG. Going to have it rebuilt as NTFS
Tom
NTFS isn't going to help you. I have Windows 2000 and IIS running on a FAT32 system with no problems.
Instead of trying to "view with browser", just type the local url in. I get the same "open or download" when I try to open an ASPX page because I have an editor set as the default for those files.
Make sure that ASPX page is in the wwwroot folder and try naming it Default.aspx. The just type in your local url.
http://yourservername/
Deafult.aspx should load auto. If not, then IIS isn't setup right.
John
-
Apr 22nd, 2002, 06:28 AM
#12
Thread Starter
Addicted Member
John
Went into the IIS service manager and made sure under "enable
default document" that the original "default.html" page was keyed
in. When I key in "http:/tetbox1/" It does not go there, I just get a directory listing. When I select the original default.html from there it displays ok. When I substitute the .aspx sample, I still get the text, no data grid. When I substitute the web service, It want to open/save. Same old same old. So I guess my IIS is not quite right?
Thanks
Tom
-
Apr 23rd, 2002, 05:35 AM
#13
Lively Member
i just did a datagrid yesterday, and i'm just trying to remember off the top of my head what i did as i also got nothing on my screen the first few times. that normally means that there's no data... (so i figured out!)
did you try to test your sqldataadapter?
i think if you go to it's page properties or advanced properties, there is somewhere that it shows you the sql statement and all the fields that it will return.
click on the fill button. did any data appear?
i will go and check out this example when i have a chance...
-
Apr 23rd, 2002, 06:50 AM
#14
Thread Starter
Addicted Member
DataGrid
Yes! As a matter of fact I did find that, and it filled the data A-ok.
However, I think I go to the root. A co-worker was doing some frontpage ASP on the same server and he got an error message that the server is not set up to run ASP. So I think that is the problem. I would of been nice if I got a message like that. I guess we are runniong IIS 3.0, we will upgrade to 4.0 and see what happens
Thanks
Tom
-
Apr 24th, 2002, 06:49 AM
#15
Lively Member
should'nt you upgrade to iis 5?
why don't you try it out on your local machine first?
i tried the example and it worked fine from my machine...
-
Apr 24th, 2002, 07:57 AM
#16
Thread Starter
Addicted Member
AC,
I think 4.0 is all the guy had at the time.
There is yet another update. ASP runs fine, but the ASPX is
what is not running correctly. I found this out when I went
to a MS help guide installed on the machine. It was executing some ASP pages just fine.
When you say "run on your local machine", I am not quite sure what you mean. I am developing on a server that has IIS and
VS.NET loaded. I attempt to execute the ASPX I created on that same machine and am getting these problems. If I try to
execute the ASPX from my other NT workstation as is it was
a client with a browser, I am getting the same results.
However, my workstation has just been upgraded to 2000 professional, the server still remains as NT 4.0
Thanks again
Tom
-
Apr 24th, 2002, 08:40 AM
#17
Lively Member
when i say locally, i mean install vs .net on your own machine. it should install a web server with it i think? (iis 5)
then first develop and test on your own machine and then go and look why it's not running on the server.
when you say that vs .net is installed on the server, does that mean that all the development tools are also installed on it? or only the framework?
what are the error messages that you get?
-
Apr 24th, 2002, 08:51 AM
#18
Thread Starter
Addicted Member
DATAGRID
ac,
I have the framework and .net development tools installed on the NT 4.0 server. I am executing the developed ASPX pages on that
same machine. **Everything on one machine**. When I execute the aspx page, I get no error message that I can see. It just shows only the static text, but no DB operations such as the datagrid. I was just told by the NT guy that IIS 5.0 does not work with NT 4.0
Thanks
Tom
PS does AC stand for Allis Chalmers by chance? (I am a AC nut)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|