|
-
Aug 1st, 2002, 01:27 PM
#1
Thread Starter
Hyperactive Member
Web Forms not Showing up
This is basically my first attempt at ASP.Net. I am going through one of the ASP.Net Walk Through Projects that comes with MSDN. All I have on the Web Form is a Datagrid that is bound to a pubs database table. Seems very simple but when I Start're up all I see is a blank webpage with no controls.
The source code for the webpage show's that the Datagrid is there. Where, or better yet why isn't the datagrid or any WebForm showing up?
-
Aug 2nd, 2002, 07:51 AM
#2
Member
its hard to be sure why it isnt coming up wiht out seeing the code
-
Aug 2nd, 2002, 08:21 AM
#3
either
a) you didnt set the page extension to aspx
b) you didnt isntall the .net framework
c) you didnt put runat="server" in the control
or
d) one of the IIS components registry got messed up.
d is very common, but I cant remember where the article was that tells how to fix it. It involves re-registering a dll
But I dont remember which one.
Can anyone else shed some light here.
Basically you said you saw the Datagrid code/. meaning you probably saw this
<asp atagrid...
you should NOT see that in the pages source in the browser.
-
Aug 2nd, 2002, 08:53 AM
#4
Thread Starter
Hyperactive Member
I'm thinking it something wrong with Either IIS or the Framework. I'm currently installing the Framework and VS.Net on a computer where I know IIS is working correctly.
I don't think there is a problem with the code. Cause I'll I did was drag and drop the Datagrid Control on the form. SQLDataAdapter and a Dataset control. And to set those up I just used the wizard. Everything seem to set up okay before I tried to view the page.
And today I can't even open the Project I created. Hopefully things will work better on the other computer.
Thanks for the help guys
-
Aug 2nd, 2002, 10:37 AM
#5
Thread Starter
Hyperactive Member
Cander You where right
I found this on another site and when I ran it Everything worked well. Actaully now I have a Login Failure, User not associated with a trusted SQL Server connection. But at least it's prossessing the <ASP> tags now.
From a command prompt, change your directory to \winnt\microsoft.net\framework\v1.0.3705 and run the following command:
aspnet_regiis -i
-
Aug 5th, 2002, 08:23 AM
#6
aspnet_regiis -i
that is the d) option I was referring to. I need to make a note of that as that is asked alot, but I had lost the link to the fix for it.
As far as your SQL problem, well that probably just means you have an incorrect connection string.
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
|