Results 1 to 6 of 6

Thread: Web Forms not Showing up

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Posts
    306

    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?

  2. #2
    Member
    Join Date
    Dec 2000
    Posts
    53
    its hard to be sure why it isnt coming up wiht out seeing the code

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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

    <aspatagrid...

    you should NOT see that in the pages source in the browser.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Posts
    306
    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

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Posts
    306

    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

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width